Device discovery method and device

By introducing intelligent sensing devices into user equipment, short-distance communication scanning and broadcasting are performed during sleep, the problem of excessive power consumption in sleep state is solved, low-power device discovery and chain building are realized, and user equipment usage efficiency is improved.

CN114257996BActive Publication Date: 2025-09-02HUAWEI TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010996238.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-21
Publication Date
2025-09-02
Estimated Expiration
2040-09-21

AI Technical Summary

Technical Problem

In the prior art, when the user equipment synchronizes the device state through low-power Bluetooth communication in a sleep state, frequent wake-up processing modules lead to excessive power consumption, affecting the user experience.

Method used

By setting up an intelligent sensing device inside the user equipment, the processor receives short-distance communication parameters before sleeping, the intelligent sensing device performs scanning and broadcasting during sleep, obtains the surrounding device identification and saves it. After the processor wakes up, the device discovers the device based on the identification, and realizes device discovery and chain building.

Benefits of technology

In the sleep state of the processor, the intelligent sensing module is kept online, reducing device power consumption, improving device discovery and link building speed, and optimizing user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114257996B_ABST
    Figure CN114257996B_ABST
Patent Text Reader

Abstract

The embodiment of the present application proposes a device discovery method, which is applied to an intelligent sensing device inside a first user device. A processor and a short-range communication device are also provided inside the first user device. The method includes: receiving short-range communication parameters from the processor before the processor goes into sleep mode, the short-range communication parameters including scanning parameters; instructing the short-range communication device to scan according to the scanning parameters during the processor sleep mode; obtaining a first message received by scanning, the first message being broadcast by a second user device and including at least a second user device identifier, wherein the second user device identifier is an identifier of the second user device; and saving the second user device identifier so that the processor can discover the second user device according to the second user device identifier after being awakened. By applying the device discovery method provided by the embodiment of the present application, the user device can discover other user devices when the processor is in sleep mode, and can effectively reduce the power consumption of the device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of short-distance communication technology, and in particular to a device discovery method and apparatus. Background Art

[0002] With the increasing variety and number of user devices—such as mobile phones, tablets, TVs, PCs, speakers, watches, and car computers—smart devices have become ubiquitous in multiple scenarios, including home, office, social, sports and health, and automotive. This has led to increasing user demands for smarter devices, such as real-time access to a list of surrounding devices, rapid multi-device link establishment, low-power synchronization of device status and service information while the application processor (AP) is in sleep mode, continued operation across multiple devices under the same account, and file sharing between devices.

[0003] Currently, user devices need to enable short-range communication and scanning to obtain a list of surrounding devices, which has poor real-time performance. When a device with a bright screen discovers a dormant device, the dormant device needs to wake up the access point (AP) in real time to respond to Bluetooth Low Energy (BLE) broadcasts, resulting in excessive power consumption and affecting the user experience. When the device status changes, synchronization is achieved through Bluetooth Low Energy communication broadcasts, which also frequently wakes up the AP, resulting in excessive power consumption. Summary of the Invention

[0004] To solve the above problems, embodiments of the present application provide a device discovery method, apparatus, and system. The method solves the problem of increased power consumption caused by frequently waking up the processing module AP to perform short-range communication when the processing module AP is dormant by performing short-range communication through an intelligent sensor device.

[0005] In a first aspect, an embodiment of the present application provides a device discovery method, which is applied to an intelligent sensing device inside a first user device, wherein a processor and a short-range communication device are also provided inside the first user device, and the method includes: before the processor goes into sleep, receiving short-range communication parameters from the processor, wherein the short-range communication parameters include scanning parameters; during the processor's sleep period, instructing the short-range communication device to scan according to the scanning parameters; obtaining a first message received by scanning, wherein the first message is broadcast by a second user device and includes at least a second user device identifier, wherein the second user device identifier is an identifier of the second user device; and saving the second user device identifier so that the second user device can be discovered according to the second user device identifier after the processor is awakened.

[0006] By applying a device discovery method provided in this embodiment of the present application, the first user device can remain online through the intelligent sensing module when the processing module is in sleep mode, perform short-range communication broadcasting and / or scanning, thereby discovering the surrounding second user device and obtaining the link establishment information of the second user device, effectively reducing the power consumption of the device.

[0007] In one embodiment, the short-range communication parameters include broadcast parameters; the method further includes: instructing the short-range communication device to broadcast a second message according to the broadcast parameters; the second message is a reply to the first message; the second message includes at least the first user equipment identifier and the second user equipment identifier; the first user equipment identifier is the identifier of the first user equipment.

[0008] By applying a device discovery method provided in this embodiment of the present application, the first user device does not need to wake up the processing module in the sleep state, and remains online through the intelligent sensing module, thereby detecting the second user device around it and responding accordingly, realizing mutual discovery between user devices, and improving the discovery and link establishment speed between user devices, thereby optimizing the user experience.

[0009] By applying the device discovery method provided in this embodiment of the present application, the power consumption of the user device in a sleep state while maintaining an online state will be greatly reduced, and the resulting power consumption of the entire device will also be reduced accordingly.

[0010] In one embodiment, the short-range communication parameters include broadcast parameters; the method also includes: before obtaining the first message received by scanning, instructing the short-range communication device to broadcast a third message according to the broadcast parameters; the third message includes at least the first user equipment identifier, wherein the first user equipment identifier is the identifier of the first user equipment; the first message is a reply to the third message.

[0011] By applying a device discovery method provided in this embodiment of the present application, it is possible to maintain an online state during sleep, and enable a dormant first user device to actively detect other second user devices with bright screens.

[0012] In one embodiment, the method further includes: after obtaining the first message received by scanning, instructing the short-range communication device to broadcast a fourth message according to the broadcast parameters; the fourth message is used to instruct the second user equipment to stop broadcasting the first message; the fourth message includes at least the first user equipment identifier and the second user equipment identifier.

[0013] By applying the device discovery method provided in this embodiment of the present application, after being discovered by the opposite device and receiving a response, the device can stop responding to the probe, thereby further reducing power consumption.

[0014] In one embodiment, the method further includes: before instructing the short-range communication device to broadcast the second message according to the broadcast parameters, obtaining a fifth message received by scanning, wherein the fifth message is broadcast by the at least one third user device; the fifth message includes at least one third user device identifier, wherein the at least one third user device identifier is the identifier of the at least one third user device; the second message is a reply to the first message and the fifth message; the second message also includes the at least one third user device identifier.

[0015] By applying a device discovery method provided by this embodiment of the present application, when the first user device is in a dormant state, the intelligent sensing module adopts an aggregated processing method to broadcast a message including two or more user device identifiers, and simultaneously responds to online query requests from the two or more user devices. This enables the user device to obtain a list of online user devices within a reachable range and link establishment information during the dormant period, discover each other and maintain an online state with multiple online user devices, effectively reducing the broadcast power consumption of the dormant device and avoiding downtime caused by excessive broadcasting.

[0016] In one embodiment, the short-range communication parameters include broadcast parameters; the broadcast parameters also include a second broadcast weight, a second broadcast time, and a second timing duration; wherein the second broadcast time and the second timing duration correspond to the second broadcast weight; the first message also includes a first broadcast weight, a first broadcast time, and a first timing duration; wherein the first broadcast time and the first timing duration correspond to the first broadcast weight; the method also includes: obtaining a fifth message broadcast by at least one third user device received by scanning; the fifth message includes a third user device identifier, a third broadcast weight, a third broadcast time, and a third timing duration; wherein the third user device identifier is the identifier of the third user device, and the third broadcast time and the third timing duration correspond to the third broadcast weight; comparing the The values ​​of the first broadcast weight, the second broadcast weight and the third broadcast weight are used to obtain the maximum broadcast weight; the short-range communication device is instructed to broadcast the sixth message within the time interval of the broadcast time corresponding to the maximum broadcast weight and the timing duration corresponding to the maximum broadcast weight according to the broadcast parameter; the sixth message includes the maximum broadcast weight, broadcast time, timing duration and the identifier of the target device; wherein the broadcast time and timing duration are the values ​​of the broadcast time and timing duration corresponding to the maximum broadcast weight, and the identifier of the target device includes the second user device identifier and / or at least one third user device identifier; the sixth message is a reply to the first message and / or the fifth message, and is used to spread the maximum broadcast weight so that the frequency and timing of short-range communication of at least one third user device can be synchronized.

[0017] By applying a device discovery method provided in this embodiment of the present application, the second user device with the screen on and the third user device can discover each other through the dormant first user device, and can maintain short-range communication with the dormant first user device. After waking up, the first user device can obtain the list of online user devices in the first time, thereby improving the efficiency of short-range communication; a message packet M6 broadcast by the first user device can simultaneously respond to the short-range communication requests of multiple devices with the screen on, thereby achieving the purpose of reducing power consumption and improving the efficiency of short-range communication; the first user device broadcasts the message packet M6 to carry out the propagation and normalization of the maximum broadcast weight, synchronize the broadcast frequency and timing of multiple devices with the screen on, so as to quickly discover online user devices and reduce power consumption; after the second user device or the third user device goes offline, the maximum broadcast weight is still retained, and the communication status of other user devices in the cluster can continue to remain synchronized and orderly.

[0018] In one embodiment, the method also includes: instructing the short-range communication device to broadcast a seventh message in the discovery window according to the broadcast parameters, and the seventh message is used to discover at least one fourth user equipment outside the cluster; wherein the discovery window is a time interval outside the communication / synchronization window; the communication / synchronization window is a time interval whose starting moment is the first broadcast time and whose duration is the first timing duration; the seventh message includes at least the first user equipment identifier, the maximum broadcast weight, the timing duration and the broadcast time; wherein the broadcast time and the timing duration are the values ​​of the broadcast time and the timing duration corresponding to the maximum broadcast weight; the cluster is a network composed of several user equipment that broadcast and scan simultaneously.

[0019] Using the device discovery method provided in this embodiment of the present application, after several collision adjustments, the communication / synchronization windows of the first and fourth user devices are aligned. User devices not in the same cluster can discover each other. After the communication / synchronization windows of each user device are synchronized, each user device can operate at the same time, achieving maximum efficiency in maintaining the user device online.

[0020] In one embodiment, the first message includes the second user equipment identifier, and the method further includes: obtaining and saving the second user equipment identifier by parsing the first message.

[0021] By applying a device discovery method provided in this embodiment of the present application, it is possible to obtain a second user equipment identifier in a dormant state, thereby achieving discovery with the second user equipment and improving the link establishment speed.

[0022] In one embodiment, at least the second user equipment identifier and the first user equipment identifier are obtained by parsing the first message, wherein the first user equipment identifier is an identifier of a target device to which the first message is replied.

[0023] By applying a device discovery method provided in this embodiment of the present application, it is possible to obtain the second user equipment identifier and the first user equipment identifier by parsing the first message in a dormant state, thereby realizing discovery between user equipments and improving the link establishment speed.

[0024] In one embodiment, the short-range communication includes at least one of Bluetooth communication and Bluetooth low energy communication; the method further includes receiving a Bluetooth driver from the processor and running the Bluetooth driver before the processor goes into sleep mode.

[0025] By applying a device discovery method provided in this embodiment of the present application, Bluetooth communication can be kept online in a dormant state.

[0026] In the second aspect, an embodiment of the present application provides a device discovery method, which is applied to a processor inside a first user device, and the method includes: sending short-range communication parameters to the intelligent sensing device before sleep, and the short-range communication parameters include scanning parameters, so that the intelligent sensing device instructs the short-range communication module to scan according to the scanning parameters during sleep; after waking up, obtaining at least one second user device identifier saved by the intelligent sensing device, and discovering the at least one second user device; wherein, the at least one second user device identifier is respectively the identifier of the at least one second user device, and the at least one second user device identifier is respectively obtained by the intelligent sensing device from the message broadcast by the at least one second user device.

[0027] In one embodiment, the short-range communication parameters further include broadcast parameters, and the method further includes: downloading a Bluetooth access protocol and the broadcast parameters to the smart sensor device before hibernation.

[0028] By applying a device discovery method provided in this embodiment of the present application, after a certain moment, the processing module is awakened, the processor runs the application program, and can discover the second user equipment based on the reported second user equipment identifier.

[0029] In a third aspect, an embodiment of the present application provides a device discovery apparatus, located in a first user device, wherein the first user device is further provided with a processor and a short-range communication device, the apparatus including a communication filtering unit, a built-in integrated circuit driving unit, and a communication analysis unit;

[0030] The communication filtering unit is used to receive short-range communication parameters from the processor before the processor goes into sleep mode, wherein the short-range communication parameters include scanning parameters;

[0031] The built-in integrated circuit driving unit instructs the short-range communication device to scan according to the scanning parameters during the dormancy period of the processor; and the relationship between the short-range communication device and the user equipment

[0032] The communication analysis unit is used to obtain a first message received by scanning, where the first message is broadcast by a second user device and includes at least a second user device identifier, wherein the second user device identifier is an identifier of the second user device; and save the second user device identifier so that the processor can discover the second user device according to the second user device identifier after being awakened.

[0033] In a fourth aspect, an embodiment of the present application provides an intelligent sensing device, which includes a second memory and a data processor; the data processor is used to execute computer execution instructions stored in the second memory, and the data processor runs the computer execution instructions to execute the device discovery method described in any one of the above embodiments, and keeps the first user device online in short-range communication in a sleep state.

[0034] In a fifth aspect, an embodiment of the present application provides a device discovery apparatus, located in a first user device, wherein the first user device is further provided with an intelligent sensing device and a short-range communication device, the apparatus including a sleep preparation unit and a wake-up message acquisition unit;

[0035] The sleep preparation unit is used to send short-range communication parameters to the intelligent sensor device before sleep, and the short-range communication parameters include scanning parameters, so that the intelligent sensor device instructs the short-range communication module to scan according to the scanning parameters during sleep;

[0036] The wake-up message acquisition unit is used to obtain at least one second user device identifier saved by the intelligent sensing device after wake-up, and discover the at least one second user device; wherein, the second user device identifier is the identifier of the second user device, and the second user device identifier is obtained by the intelligent sensing device from the message broadcast by the second user device.

[0037] In a fifth aspect, an embodiment of the present application provides a processing device, which is arranged inside a first user device, and the processing device includes a processor and a first memory. The processor is used to execute an application stored in the first memory, and the processor runs the application to execute a device discovery method described in any one of the above embodiments, instructing the smart sensor device to receive short-range communication parameters before the sleep state to keep the short-range communication online during the sleep state.

[0038] In a sixth aspect, an embodiment of the present application provides a user equipment capable of maintaining short-range communication in a sleep state, the user equipment comprising at least a processor, an intelligent sensor device, and a short-range communication device; the processor is configured to execute an application stored in a first memory, the processor running the application to perform a device discovery method described in any one of the above embodiments, instructing the intelligent sensor device to receive short-range communication parameters before entering the sleep state, so as to maintain short-range communication online during the sleep state;

[0039] The intelligent sensing device includes at least a second memory and a data processor; the data processor is used to execute computer-executable instructions stored in the second memory, and the data processor runs the computer-executable instructions to execute the discovery method of the device described in any one of the above embodiments, keeping the short-range communication device online in a sleep state.

[0040] By applying a device discovery method provided in an embodiment of the present application, a user device can perform short-range communication broadcasts and / or short-range communication scans through an intelligent sensor device while the processor is in sleep mode, thereby discovering other user devices, obtaining device link establishment information, synchronizing device status, and effectively reducing device power consumption. In sleep mode, the user device does not need to wake up the processor to achieve mutual discovery between devices, which can increase the speed of device discovery, device link establishment, and data synchronization. In addition, in one or more embodiments, when a user uses this method, the operation speed can be increased, optimizing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions of the multiple embodiments disclosed in this application, the following is a brief introduction to the drawings required for the description of the embodiments. Obviously, the drawings described below are only the multiple embodiments disclosed in this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0042] Figure 1 The device architecture diagram of the device wake-up solution in the distributed scenario provided for Solution 1;

[0043] Figure 2 Flowchart for waking up dormant devices through short-range communication in a distributed scenario provided for Solution 1;

[0044] Figure 3 Short-range communication two-way broadcast flow chart provided for solution 2;

[0045] Figure 4 A schematic diagram of a device provided in an embodiment of the present application;

[0046] Figure 5 A flowchart of a dormant device being discovered by a device with a bright screen in a device discovery method provided in an embodiment of the present application;

[0047] Figure 6 A flowchart of a dormant device actively discovering other devices in a device discovery method provided in an embodiment of the present application;

[0048] FIG7( a ) is a schematic diagram of a device discovery method provided in an embodiment of the present application applied to a mobile phone A and a TV;

[0049] FIG7( b ) is a schematic diagram of a device discovery method provided in an embodiment of the present application applied to a mobile phone A and two TVs;

[0050] Figure 8 A schematic diagram of a communication / synchronization window and a discovery window of an online user device in a device discovery method provided in an embodiment of the present application;

[0051] Figure 9 A schematic diagram of mutual discovery and synchronous communication between multiple screen-on devices and sleep devices in a device discovery method provided in an embodiment of the present application;

[0052] Figure 10 A diagram illustrating the device communication / synchronization window alignment effect in a device discovery method provided in an embodiment of the present application;

[0053] Figure 11 A schematic diagram of a device discovery method according to an embodiment of the present application showing rapid discovery of two devices with different synchronization within a discovery window;

[0054] FIG12( a ) is a schematic diagram of the format of a heartbeat detection packet in a device discovery method provided in an embodiment of the present application;

[0055] FIG12( b ) is a schematic diagram of the format of a heartbeat reply packet in a device discovery method provided by an embodiment of the present application;

[0056] FIG12( c ) is a schematic diagram of the format of a fast discovery packet in a device discovery method provided in an embodiment of the present application;

[0057] FIG12( d ) is a schematic diagram of the format of an end packet in a device discovery method provided in an embodiment of the present application;

[0058] FIG13( a ) is a schematic diagram of an intelligent sensing device provided in an embodiment of the present application;

[0059] FIG13( b ) is a schematic diagram of a processing device provided in an embodiment of the present application;

[0060] Figure 14A schematic diagram of a user device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0061] In the following description, reference is made to “some embodiments”, which describes a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0062] In the following description, the terms "first\second\third, etc." or module A, module B, module C, etc. are only used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that the specific order or sequence can be interchanged where permitted so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0063] In the following description, the numbers representing the steps, such as S110, S120, etc., do not necessarily mean that the steps must be executed in this manner. If permitted, the order of the steps can be interchanged or they can be executed simultaneously.

[0064] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application pertains. The terms used herein are for the purpose of describing the embodiments of this application only and are not intended to limit this application.

[0065] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0066] Figure 1 The device architecture diagram of the device wake-up solution in the distributed scenario provided for Solution 1 is as follows: Figure 1 As shown, the user equipment may include one or more (only one is shown in the figure) processors and communication devices.

[0067] The processor can run the user device's operating system, such as Android, iOS, Windows OS, Liunix, and Hongmeng OS. The processor can also run specific applications. In Solution 1, the processor is configured with a processing module AP, which executes the device wake-up solution in a distributed scenario by running the application APP of the processing module AP. The communication device is configured with a short-range communication module BT, which is used to perform Bluetooth low-power communication.

[0068] A layered architecture allows the processing module (AP) to be divided into several modules, each with a clear role and division of labor. Modules communicate with each other via software interfaces. In Solution 1, the processor runs the Android system, which is divided into four modules: the application module (APP), the software architecture module (FW), the protocol stack module (HAL), and the kernel module (KEL).

[0069] The application module APP includes a series of application units such as settings, sharing, connection, wake-up, etc., and provides a data interface for publishing tasks and subscribing to services.

[0070] The software framework module FW provides the application programming interface and programming architecture for the application unit of the application module APP. The software framework module FW includes the Bluetooth framework and framework manager. The Bluetooth framework includes some predefined short-range communication functions, such as the BLE broadcast function and the BLE scan function.

[0071] The protocol stack module HAL provides a unified access interface for different hardware devices. The protocol stack module HAL includes the Bluetooth protocol stack and other protocol services.

[0072] The kernel module KEL is a layer between hardware and software and includes at least various drivers, such as a Universal Asynchronous Receiver Transmitter (UART) driver.

[0073] The short-range communication module BT implements short-range communication by asynchronously transmitting and receiving data with the processing module AP via a UART interface. The UART interface is a universal serial data bus used for asynchronous communication. This bus can be bidirectional and converts data between serial and parallel communication. Short-range communication includes at least one of the various implementations of the existing Bluetooth standard, including Bluetooth low energy and future implementations of the Bluetooth standard.

[0074] The short-range communication module (BT) consists of a channel switching module and an internal logic module. The channel switching module asynchronously scans and transmits data over a UART interface for short-range data transmission. The internal logic module includes multiple filters, which filter short-range communication scan results and transmit those that meet the required broadcast parameters to the processing module (AP) via the channel switching module. Alternatively, the channel switching module filters the broadcast parameters received from the processing module (AP) and broadcasts the data that meets the requirements.

[0075] exist Figure 1In the device architecture shown, the data transmission path is to start the data interface in the application module APP, the data interface calls the Bluetooth architecture, calls the Bluetooth driver of the kernel module KEL through the Bluetooth protocol of the protocol stack, and the Bluetooth driver starts the short-range communication module BT through the UART interface. The short-range communication module BT performs BLE broadcast according to the broadcast parameters and publishes BLE communication services; the short-range communication module BT performs BLE scanning to receive BLE subscription services from other user devices.

[0076] Figure 2 This is a flowchart for waking a dormant device through short-range communication in a distributed scenario. According to EMUI 10.1, in a distributed scenario, device A and at least one device B automatically establish a network before a service request. When making a service request, device A can directly obtain a list of at least one online device B trusted by the same account. Device A periodically refreshes the list to monitor the online status of any online device Bs listed.

[0077] exist Figure 2 In the process, the processing module AP1 of the device A with the screen on executes the start broadcast instruction of the application APP1 and performs BLE broadcast through the short-range communication module BT1; the processing module AP2 of at least one device B scans the broadcast message of device A through the short-range communication module BT2 during the process of executing the start scan instruction of the application APP2, and reports the broadcast message to the processing module AP2, and the application APP2 processes the online scanning results.

[0078] Device A sends a message packet to at least one device B every 5 minutes. Regardless of whether device B is dormant or not, at least one device B must respond to this message to indicate that it is online (nearby). If it times out without a response, it is offline. In this solution, if device A needs to discover device B, device A is continuously broadcasting BLE communications, while device B performs BLE scanning. Device B responds and replies to the messages broadcast by device A, indicating that device B is online and confirming that device A has discovered device B. Alternatively, the user can manually initiate device B to continuously scan for BLE communications. When device A is broadcasting BLE communications, device B scans device A's broadcast messages and replies to them, indicating that device B is online and confirming that device A has discovered device B.

[0079] The short-range communication module BT2 in the sleep state can realize the reply to the device A after waking up the processing module AP2.

[0080] This solution can realize user discovery and connection between user devices trusted by the same account. The short-distance communication module BT performs short-distance communication based on the short-distance communication tasks issued by the processing module AP.

[0081] At least one disadvantage of the above solution is that the communication tasks and subscription service acceptance performed by device B must be processed and executed by the processing module AP, resulting in periodic wake-up of the processing module AP, causing a certain degree of increase in power consumption, and the power consumption of the entire device increases accordingly. The increase in surrounding online devices also causes the power consumption of the entire device to double.

[0082] Figure 3 The short-range communication two-way broadcast flow chart provided for solution 2. This solution enables mutual discovery between devices through two-way broadcast between device A and device B. Figure 3 As shown in the figure, when device A needs to discover device B, device A initiates a short-range communication broadcast and scans. Device B is always in scanning mode. After device B discovers device A's broadcast through scanning, it responds to device A with a broadcast message via short-range communication. The broadcast message in response from device B includes the device name, user nickname, phone number, and security summary. Device A scans through short-range communication and receives the broadcast message in response from device B, displaying device B's device name, user nickname, and phone number. Device A uses device B's identification to search for device B's profile picture locally or in the cloud and displays it to the user. Device A connects to device B via short-range communication, providing a data path for subsequent business operations.

[0083] exist Figure 3 At least one drawback of the proposed short-range communication two-way broadcast is that after device A discovers device B, device B is unaware of this occurrence, so device B continues broadcasting, increasing its power consumption. If more devices attempt to discover device B, device B's power consumption increases exponentially with the number of nearby devices. If either device A or device B is dormant in this solution, the processing module AP also needs to be awakened to enable mutual discovery, thus increasing power consumption due to periodic AP wake-up.

[0084] Based on the defect that the discovery mechanism of Solution 1 and Solution 2 causes large power consumption of the device, an embodiment of the present application provides a user device that can drive the short-range communication device to perform short-range communication tasks through an intelligent sensor device when the processor is dormant. Figure 1 Based on the provided device architecture, an intelligent sensing device is added.

[0085] Smart sensing devices are intelligent sensor hubs or coprocessors used to connect and process data from various sensor devices. These devices may include, but are not limited to, low-power processing modules or circuits such as low-power application processors (APPs) and micro-programmed control units (MCUs). A smart sensor hub is a hardware and software solution based on a low-power MCU and a lightweight RTOS operating system. Its primary function is to connect and process data from various sensor devices.

[0086] In the following embodiments of the present application, the SensorHub+short-range communication solution is used to realize online device discovery, exchange of device link establishment information, and synchronization of device status information, etc., wherein the intelligent sensor device can process the short-range communication parameters downstream of the processor and parse the message packets upstream of the short-range communication device.

[0087] Figure 4 This is a schematic diagram of a device provided in one embodiment of the present application. Figure 4 As shown, the device includes a processor, an intelligent sensing device and a short-range communication device; in an embodiment of the present application, the processor is configured with a processing module AP, and the processor executes the application APP of the processing module AP to implement the method described in one or more embodiments below, and instructs the intelligent sensing device to maintain the short-range communication function of the device in the sleep state before the sleep state.

[0088] The intelligent sensing device is configured with an intelligent sensing module SH. The intelligent sensing device executes the application of the intelligent sensing module SH to implement the method described in one or more embodiments below, keeps the short-distance communication of the device online in the sleep state, obtains the link establishment information of the devices in the same cluster, and synchronizes the communication status of the devices.

[0089] The short-range communication device is configured with a short-range communication module BT. The short-range communication device executes a program of the short-range communication module BT to implement the method described in one or more embodiments below to perform short-range communication.

[0090] An embodiment of the present application provides a device that, when the processor is in sleep mode, transmits data via an I3C interface between a smart sensor module SH and a short-range communication module BT, thereby achieving short-range communication functionality. The I3C interface is an extended inter-integrated circuit interface (Improved Inter Integrated Circuit, or I3C for short). The I3C interface is an extended bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). I3C can support more sensors on the same main line without adding additional logic signals to support interrupt or sleep modes.

[0091] Specifically, the processing module AP runs the application module, the software architecture module, the protocol stack module and the kernel module.

[0092] The application module includes a series of application units, which are used for short-range communication for discovering and maintaining devices in sleep mode, and for transmitting message data between Android and IOS devices when connected to the Internet. The application unit can include a setting unit, a sharing unit, a connection unit, a wake-up unit, and a data interface unit with the same configuration as Solution 1. Among them, the setting unit sets the Bluetooth communication mode; the sharing unit publishes the Bluetooth communication sharing protocol; the connection unit connects the Bluetooth device; the wake-up unit wakes up the dormant Bluetooth device; the data interface unit provides application interfaces such as the application data interface for publishing Bluetooth tasks and subscribing to services; and provides basic software and hardware configuration and drivers for this application.

[0093] The software architecture module FW further includes a sensor architecture unit 401, etc. The sensor architecture unit 401 provides an application program for the smart sensor module SH.

[0094] The protocol stack module HAL further includes a sensor protocol unit 402. The sensor protocol unit 402 provides a unified access protocol for the smart sensor module SH and transmits the access protocol to the smart sensor module SH.

[0095] The kernel module KEL further includes a sensor sharing driver unit 403. The sensor sharing driver unit 403 stores a Bluetooth driver for the smart sensor module SH and provides a common storage space for the downlink short-distance communication parameters of the sensor protocol unit 402 and the uplink short-distance communication parameters of the smart sensor module SH.

[0096] The sensor architecture unit 401, the sensor protocol unit 402 and the sensor sharing driver unit 403 are new functional units added to the processing module AP in the device architecture shown in Scheme 1. They constitute a new data path, enabling the processing module AP to download the Bluetooth driver and short-range communication parameters to the smart sensor module SH before hibernation, instructing the smart sensor module SH to keep the short-range communication online during hibernation and obtain data related to the short-range communication during hibernation after waking up.

[0097] like Figure 4 As shown, the smart sensor module SH includes a communication filtering unit 421, a communication analysis unit 422, and an integrated circuit driver 423. Specifically, the communication filtering unit 421 filters and processes the downlink broadcast parameters and generates a message packet; the communication analysis unit 422 parses the received message packet to obtain the broadcast parameters of the peer device; and the integrated circuit driver 423 runs the Bluetooth driver and transmits the message packet data with the control unit 414 built into the short-range communication module BT via the I3C interface. The control unit 414 provides communication control for the I3C interface of the short-range communication module BT, performing asynchronous data transmission and reception with the short-range communication module BT, thus realizing the short-range communication function.

[0098] Figure 4 The equipment shown is Figure 1 The difference between the devices shown is the improvement of the processing module AP and the addition of the smart sensor module SH. Specifically, before the processing module AP goes into sleep mode, it sends the Bluetooth driver and short-range communication broadcast parameters downlinked to the sensor sharing driver unit 403 through the sensor architecture unit 401 and the sensor protocol unit 402 in sequence. During the sleep period of the processing module AP, the smart sensor module SH executes the Bluetooth driver and applications related to short-range communication, such as broadcasting, scanning, and synchronization. After the smart sensor module SH reads the broadcast parameters from the sensor sharing driver unit 403, the communication filtering unit 421 filters the downlink broadcast parameters, generates a message packet with the useful data after filtering, determines the application and service to be executed based on the service information carried in the message packet, such as the message type, device ID, frequency and timing of communication, etc., and then calls the built-in integrated circuit driver 423 to start the I3C interface for message packet transmission, and transmits the message packet to the short-range communication module BT.

[0099] In some embodiments of the present application, the messages scanned by the short-range communication module BT are transmitted upstream in the reverse direction of the above-mentioned downlink transmission path. It should be noted that when the processing module AP is in sleep state, the messages scanned by the short-range communication module BT are transmitted to the communication analysis unit 422 through the I3C interface, and the parsed broadcast parameters are filtered by the communication filtering unit 421. The useful data after filtering is stored in the sensor shared driving unit 403 for immediate reading after the processing module AP wakes up.

[0100] An embodiment of the present application provides a device discovery method for Figure 4 The method of the smart sensing device of the first user equipment shown includes: the smart sensing device receives short-range communication parameters from the processor before the processing module AP goes into sleep, the short-range communication parameters including scanning parameters; during the sleep period of the processor, the smart sensing device instructs the short-range communication module to scan according to the scanning parameters; obtains a message packet M1 broadcast by the second user equipment received through scanning, the message packet M1 at least including an identifier of the second user equipment, wherein the second user equipment identifier is an identifier of the second user equipment; and saves the second user equipment identifier so that the processor can discover the second user equipment according to the identifier of the second user equipment after waking up.

[0101] Figure 5 A flowchart of a device being discovered by a device with a bright screen in a device discovery method provided in one embodiment of the present application. Figure 5 As shown, while the processing module AP1 is dormant, the first user device receives short-range communication parameters from the application APP1, the short-range communication parameters including scan parameters, and instructs the short-range communication module BT1 to perform a short-range communication scan based on the scan parameters. In some embodiments, the short-range communication may be BLE communication, and the short-range communication parameters may further include broadcast parameters. The first user device may then execute the following steps S5011-S5013.

[0102] S5011: Before the first user equipment enters the dormant state, the processing module AP1 executes the application program APP1 and pre-downloads short-range communication parameters to the smart sensor module SH1, where the short-range communication parameters include scanning parameters.

[0103] S5012, the intelligent sensor module SH1 obtains the scanning parameters, and then starts the I3C interface to transmit the scanning task, and the scanning task is transmitted to the short-range communication module BT1.

[0104] S5013, the short-range communication module BT1 starts BLE communication scanning, so that the first user equipment performs BLE communication scanning through the smart sensor module SH1 in the background.

[0105] The second user device is in a screen-on state all the time, and the processing module AP2 is working. When the second user device needs to find out which user devices are around, it runs the application module APP2 and starts broadcasting and scanning.

[0106] Specifically, the second user equipment may execute the following steps S5021-S5023.

[0107] S5021 , the application APP2 transmits the short-range communication parameters to the processing module AP2 , where the short-range communication parameters include scanning parameters and the message packet M1 .

[0108] S5022, the processing module AP2 sends downlink scanning parameters and message packet M1 to the short-range communication module BT2,

[0109] S5023: The short-range communication module BT2 performs short-range communication and broadcasts a message packet M1. The message packet M1 may be marked as a first message, and the first message includes at least an identifier of the second user equipment.

[0110] The first user equipment executes step S5031, and the short-range communication module BT1 uplinks the scanned message packet M1 to the smart sensor module SH1 through the I3C interface.

[0111] Execute S5032, the smart sensor module SH1 parses the message packet M1, and the parsing result includes at least the identifier of the second user equipment.

[0112] The smart sensor module SH1 stores the identifier of the second user equipment. Specifically, the smart sensor module SH1 stores the identifier of the second user equipment obtained by parsing the message packet M1 in the sensor sharing driving unit 403 .

[0113] The smart sensor module SH1 instructs the short-range communication module BT1 to broadcast a message packet M2 according to the short-range communication broadcast parameters. The message packet M2 includes at least the identifier of the first user equipment and the identifier of the second user equipment. The message packet M2 is recorded as the second message and is a reply to the discovery message packet M1.

[0114] Specifically, the first user equipment may execute the following steps S5041-S5042.

[0115] At S5041, the smart sensor module SH1 reads the broadcast parameters from the sensor sharing driver unit 403. These broadcast parameters include at least the identifiers of the first and second user devices. The communication filtering unit 421 edits these broadcast parameters and generates a message packet M2. The identifier of the first user device indicates the source of message packet M2, while the identifier of the second user device indicates the reply destination of message packet M2. The smart sensor module SH1 activates the I3C interface and instructs the short-range communication module BT1 to broadcast message packet M2.

[0116] S5042, the short-range communication module BT1 broadcasts a message packet M2.

[0117] The second user equipment executes S505, and the short-range communication module BT2 reports the scanned message packet M2 to the processing module AP2.

[0118] After the dormant processor of the first user equipment is awakened, the processing module AP1 immediately executes the application APP1 to read the identifier of the online second user equipment in the sensor sharing driving unit 403 and push the subscription data and services to the second user equipment.

[0119] In some embodiments, multiple online devices are located near a dormant first user device. The intelligent sensor module SH1 parses multiple message packets broadcast by the multiple online devices and saves the device identifiers in each parsed result to obtain a list of multiple online device identifiers. Upon awakening, the processor immediately executes the application APP1 to obtain a list of the surrounding online device identifiers and pushes services or data to each device identified in the list.

[0120] By applying a device discovery method provided in an embodiment of the present application, the first user device can remain online through the intelligent sensing module SH1 when the processing module AP1 is in sleep mode, perform short-range communication broadcasting and / or scanning, thereby discovering the surrounding second user device, obtaining the link establishment information of the second user device, and effectively reducing the power consumption of the device.

[0121] By applying a device discovery method provided in an embodiment of the present application, the first user device does not need to wake up the processing module AP1 in a sleep state, and maintains an online state through the intelligent sensing module SH1 to achieve mutual discovery between user devices, which can improve the discovery and link establishment speed between user devices, thereby optimizing the user experience.

[0122] By applying a device discovery method provided by an embodiment of the present application, the power consumption of a user device in a sleep state while remaining online can be significantly reduced, and the resulting power consumption of the entire device can also be reduced accordingly.

[0123] An embodiment of the present application provides a device discovery method, which is used for a dormant first user device to actively discover other second user devices with bright screens, wherein the smart sensor module SH1 also performs the following during the dormancy period of the processing module AP1: receiving short-range communication parameters from the APP1, the short-range communication parameters including broadcast parameters; before obtaining the message packet M1 broadcast by the second user device received by scanning, instructing the short-range communication module BT1 to broadcast a message packet M3 according to the broadcast parameters; the message packet M3 includes at least the first user device identifier; after receiving the message packet M3, the second user device replies to the message packet M1 to the first user device, indicating that it is online.

[0124] Figure 6 A flowchart of a device discovery method provided by an embodiment of the present application, in which a dormant device actively discovers other devices, the specific process is as follows Figure 6 Before the first user equipment enters the dormant state, the processing module AP1 executes the application APP1 to send the scanning parameters and executes steps S6011-S6013.

[0125] S6011, the processing module AP1 sends the short-range communication broadcast parameters to the smart sensor module SH1, instructing the smart sensor module SH1 to start broadcasting and scanning.

[0126] S6012: The smart sensor module SH1 sends the edited message package M3 to the short-range communication module BT1 according to the broadcast parameters, instructing the short-range communication module BT to start BLE broadcasting and scanning. The message package M3 can be recorded as the third message, used to discover at least one second user device online nearby.

[0127] S6013, the short-range communication module BT broadcasts a message packet M3.

[0128] Specifically, the smart sensor module SH1 reads short-range communication broadcast parameters from the sensor sharing driver unit 403. The broadcast parameters include at least the first user device identifier, where the first user device identifier is the identifier of the first user device. The communication filtering unit 421 edits and processes the broadcast parameters to generate a message packet M3. It then activates the I3C interface to transmit the message packet M3 to the short-range communication module BT1, initiating BLE communication broadcasting of the message packet M3.

[0129] The second user equipment is in a screen-on state, and the application APP2 of the processing module AP2 starts scanning and executes steps S6021 to S6023.

[0130] S6021, the short-range communication module BT2 scans and receives the message packet M3, the processing module AP2 executes the application APP2 and reports the scanning result to the processing module AP2, and the processing module AP2 reports the scanning result to the application APP2.

[0131] S6022, the application APP2 sends a start broadcast instruction to the processing module AP2, and the processing module AP2 instructs the short-range communication module BT2 to start BLE broadcast.

[0132] S6023, the short-range communication module BT2 broadcasts a message packet M1. The target device information carried in the message packet M1 includes the second user equipment identifier and the first user equipment identifier. The message packet M1 is used to reply to the message packet M3.

[0133] The short-range communication module BT1 of the first user equipment scans the obtained message packet M1, and the smart sensor module SH1 executes S6031-S6032.

[0134] S6031: Parse the message packet M1. The parsing result includes at least the second user device identifier and the first user device identifier. The smart sensor module SH1 confirms that the target device of the message packet M1 is the first user device based on the parsing result, and sets the second user device identifier broadcasting the message packet M1 as online.

[0135] S6032: Save the second user equipment identifier.

[0136] After receiving the message packet M1, the smart sensor module SH1 generates a message packet M4 according to the broadcast parameters. The broadcast parameters of the message packet M4 include at least the second user device identifier, which is used to instruct the second device to stop broadcasting the message packet M1 to the first user device. The first user device executes S6041-S6042.

[0137] S6041 , the smart sensor module SH1 instructs the short-range communication module BT1 to broadcast a message packet M4 , and records the message packet M4 as a fourth message.

[0138] S6042, the short-range communication module BT1 broadcasts a BLE message packet M4.

[0139] The second user equipment that receives the message package M4 executes S605 to report the scanning result. The processor AP2 responds to the message package M4 and stops broadcasting the message package M1 to the first user equipment.

[0140] The first user equipment executes S606 , and the smart sensor module SH1 reports the second user equipment identifier to the application program APP1 .

[0141] After a certain moment, if the processing module AP1 is awakened, the processor runs the application program APP1 and discovers the second user equipment according to the reported second user equipment identifier.

[0142] exist Figure 5In the illustrated embodiment, the first user device performs short-range communication broadcasting and / or scanning via the smart sensor module SH1 during sleep, and can respond to broadcast detection of the second user device with the screen turned on, thereby remaining online during sleep.

[0143] exist Figure 6 In the embodiment shown, the first user device performs short-range communication broadcasting and / or scanning through the smart sensor module SH1 during sleep, and can actively detect surrounding online user devices in sleep state. The smart sensor module SH1 performs short-range communication broadcasting and / or scanning message packet M4. The device that receives the message packet M4 indicates that it has been discovered by the other end and can stop responding to the detection, further reducing power consumption. The message packet M4 can also be used Figure 5 The device in the embodiment shown is in a screen-on state.

[0144] The device discovery method provided in the embodiment of the present application can sink the Bluetooth driver and short-range communication stack and services to the intelligent sensor module SH, and realize rapid discovery of online devices, rapid handshake, and maintain online status during the sleep period when the processing module AP is dormant. When the processor is dormant, the intelligent sensor device instructs the short-range communication device to perform short-range communication tasks, thereby discovering other online user devices, which can effectively reduce the power consumption of the device. The user device does not need to wake up the processor in the dormant state to realize mutual discovery between devices. In addition, in one or more embodiments below, when the user uses the user device, the speed can be improved, thereby optimizing the user experience.

[0145] FIG7(a) is a schematic diagram of a device discovery method provided by an embodiment of the present application applied to a mobile phone A and a TV. As shown in FIG7(a), taking mobile phone A as the first user device in a dormant state and TV with Bluetooth as the second user device, there is a dormant mobile phone A around TV, wherein mobile phone A has the following Figure 4 The architecture and functionality shown include a processing module AP, a smart sensor module SH, and a short-range communication module BT. While the processing module AP in mobile phone A is in sleep mode, the short-range communication module BT and the smart sensor module SH remain operational. When the TV needs to locate nearby devices capable of short-range communication, it can do so by following these steps:

[0146] S701: The TV initiates online detection and broadcasts a message packet M1 to inquire whether mobile phone A is nearby. The broadcast parameters carried in the message packet M1 include at least the local device ID, the timer duration, and the broadcast time. The broadcast implementation method is described in S6021-S6023 and will not be repeated here.

[0147] At step S702, the short-range communication module BT of mobile phone A, which is in sleep mode, reports the received message packet M1 to the smart sensor module SH. Upon receiving message packet M1, the smart sensor module SH responds online by broadcasting a short-range communication message packet M2 in response to message packet M1. The broadcast parameters of message packet M2 include at least the local device ID and target device 1, which is the TV ID.

[0148] S703, the smart sensor module SH sends the message packet M2 to the short-distance communication module BT; saves the TV ID so that after the processor is awakened, the processor runs the processing module AP and finds the TV according to the TV ID.

[0149] S704, the short-distance communication module BT starts short-distance communication and broadcasts the heartbeat reply packet M2.

[0150] In some embodiments, an aggregated processing method can also be used to broadcast a message packet including the identifiers of two or more user devices, and simultaneously reply to online query requests from two or more user devices. Specifically, before instructing the short-range communication device to broadcast the second message according to the broadcast parameters, the smart sensor module SH obtains at least one message packet M5 received through scanning, and at least one message packet M5 is broadcast by at least one third user device respectively; each message packet M5 includes the identifier of a user device. After receiving the message packet M5, the smart sensor module SH replies to the second user device and at least one third user device together, replying with a message packet M2, with the identifier of each third user device in the message packet M2, and using each third user device as the target device for the reply.

[0151] Figure 7(b) is a schematic diagram of a device discovery method provided by an embodiment of the present application, applied to a mobile phone A and multiple TVs. As shown in Figure 7(b), there is at least one third user device, for example, a second Bluetooth-enabled TV TV2. The second Bluetooth-enabled TV TV2 needs to find nearby devices capable of short-range communication, which is achieved by the following steps:

[0152] In step S701', two Bluetooth-enabled televisions, TV1 and TV2, each initiate an online query. TV1 broadcasts a message packet M1 via short-range communication to inquire whether mobile phone A is nearby. TV2 also broadcasts a message packet M5 via short-range communication. Message packet M5 includes at least one second TV identifier. Message packet M5 is recorded as the fifth message.

[0153] S702′, the short-range communication module BT of the dormant mobile phone A reports the received message packets M1 and M5 to the smart sensor module SH respectively. The smart sensor module SH parses the message packets M1 and M5 respectively and saves the identifiers of the television TV1 and the television TV2.

[0154] S703': the smart sensor module SH uses an aggregated processing method to edit a message packet M2 for the message packet M1 and the message packet M5, and transmits the message packet M2 to the short-range communication module BT. The message packet M2 carries both the TV1 identifier and the TV2 identifier.

[0155] S704 ′, the short-range communication module BT broadcasts a message packet M2 , and responds to both the TV 1 and the TV 2 .

[0156] Specifically, the aggregated message packet M2 is processed by reading the parsed broadcast parameters of the message packets M1 and M5 from the sensor sharing driver unit 403, including the identifiers of TV1 and TV2. The communication filtering unit 421 aggregates the identifiers of TV1 and TV2 to generate a message packet M2. The broadcast parameters of the message packet M2 include at least the message type, the local device ID, target device 1, and target device 2. Target device 1 and target device 2 are the identifiers of TV1 and TV2, respectively. The smart sensor module SH sends the message packet M2 to the short-range communication module BT, which broadcasts the message packet M2 and responds to both TV1 and TV2.

[0157] For online query requests from more than two user devices, when the processor of mobile phone A is in sleep mode, the same aggregated processing method can be adopted to reply to more than two user devices simultaneously through one message packet M2.

[0158] The dormant device discovery method provided in the embodiment of FIG7(b) is applied to perform dormant device discovery. When mobile phone A is in dormant state, the intelligent sensor module SH adopts an aggregated processing method to broadcast a message including two or more user device identifiers, and simultaneously responds to online query requests of the two or more user devices. This enables the user device to obtain a list of online user devices within a reachable range and link establishment information during dormancy, and to discover and maintain an online state with multiple online user devices. This solution can effectively reduce the broadcast power consumption of dormant devices and avoid downtime caused by excessive broadcasting.

[0159] During the process of discovering dormant devices and keeping them online, different user devices with active screens near a dormant device perform short-range communication at different times. This chaotic timeline causes the time it takes for user devices to broadcast dormant device discovery to increase erratically, leading to increased power consumption. Using short-range communication broadcasts to discover dormant devices and keep them online requires that within a networking cluster, all user devices with active screens near a dormant device agree on the frequency and timing of short-range communication, performing broadcast and scanning tasks within a unified short-range communication time interval. This short-range communication time interval is called the communication / synchronization window.

[0160] Figure 8 Schematic diagram of task timing windows divided for short-range communication of user equipment. Figure 8 As shown, the short-range communication tasks of user devices are divided into a communication / synchronization window and a discovery window according to the time sequence. The communication / synchronization window allows synchronized user devices within the cluster to broadcast and scan during this time period, perform short-range communication handshakes, and complete mutual discovery. The time interval between the end of one communication / synchronization window and the beginning of the next communication / synchronization window is defined as the discovery window. The discovery window is used to randomly broadcast query messages to discover out-of-sync user devices outside the cluster.

[0161] To align the communication / synchronization windows of different user devices (user devices) with their screens on to a consistent time interval, it's also important to consider the power sensitivity, broadcast randomness, and device addresses of different user devices. These factors can affect the frequency and timing of short-range communications. For example, when querying nearby user devices, a TV is often connected to an external power source, allowing for on-demand power consumption and lower power sensitivity. Therefore, the TV's short-range communication frequency can be set to scan / broadcast once every minute. Mobile phones have limited battery life and higher power sensitivity, so the frequency of short-range communication broadcasts for mobile phones is lower, perhaps every five minutes. PADs, with power sensitivity requirements between mobile phones and TVs, can scan / broadcast once every three minutes. Furthermore, the user device's address is related to the distance of short-range communications, which also affects the power consumption, frequency, and timing of short-range communications.

[0162] Taking into account the above factors affecting the frequency and timing of short-range communications, in one embodiment of the present application, a device weight value is set for each user equipment, and the device weight DW is defined as follows:

[0163] DW=dT*2 12 +Pcons*2 9 +RF*2 4 +MAC[1]*2 2+MAC[0];

[0164] Where dT is the value of the user device model, for example, the dT value of a mobile phone is 1, the dT value of a TV is 2, and the dT value of a PAD is 3. Pcons is the power consumption sensitivity value, which is related to the user device model. For example, the Pcons value of a mobile phone is 0.7, the Pcons value of a TV is 0.2, and the Pcons value of a PAD is 0.4. RF is the set random factor. MAC is the device address, which is a 6-bit data, with MAC[0] being the first digit of the device address and MAC[1] being the second digit of the device address.

[0165] In order to reduce the power consumption during the query process of user devices in the bright screen state, the time intervals of the communication / synchronization windows of multiple bright screen user devices are aligned, and a broadcast weight can be set for each user device. The value of the broadcast weight defaults to the value of the device weight of the local device. Within an accessible range, each user device will broadcast the maximum value of the broadcast weights of each surrounding user device it knows along with the message packet M6. After receiving the message packet M6, the user device in the bright screen state adjusts the frequency and timing of the broadcast / scan following the device with the largest broadcast weight, so that the communication / synchronization window is aligned with the time interval of the communication / synchronization window of the device with the largest broadcast weight, and short-distance communication is carried out within the aligned communication / synchronization window to achieve synchronous communication, shorten the time for mutual discovery with the dormant device, and reduce power consumption. The message packet M6 can be recorded as the sixth message, and the sixth message is used to agree on the frequency and timing of short-distance communication.

[0166] Based on the above concept, an embodiment of the present application proposes a device discovery method, which synchronizes the frequency and timing of sending the first message of multiple devices with bright screens after they discover dormant devices and other online user devices within reach.

[0167] Taking two devices with bright screens as an example, based on the above-mentioned embodiment, during the period when the processing module AP is in sleep mode, the first user device receives short-range communication parameters from the APP, which also include a second broadcast weight, a second broadcast time, and a second timing duration, wherein the second broadcast time and the second timing duration correspond to the second broadcast weight; the first message also includes the first broadcast weight, the first broadcast time, and the first timing duration; wherein the first broadcast time and the first timing duration correspond to the first broadcast weight. The intelligent sensing module SH1 also executes: obtaining the fifth message broadcast by at least one third user device received through scanning; the fifth message also includes a third broadcast weight, a third broadcast time and a third timing duration; wherein the third broadcast time and the third timing duration correspond to the third broadcast weight; comparing the values ​​of the first broadcast weight, the second broadcast weight and the third broadcast weight to obtain the maximum broadcast weight; when the maximum broadcast weight is the first broadcast weight, instructing the short-distance communication device to broadcast the sixth message within the time range of the first broadcast time and the first timing duration according to the short-distance communication broadcast parameters; when the maximum broadcast weight is the third broadcast weight, instructing the short-distance communication device to broadcast the sixth message within the time range of the third timing duration at the third broadcast time according to the short-distance communication broadcast parameters; the sixth message includes the maximum broadcast weight, the synchronous broadcast time and the synchronous timing duration; wherein the synchronous broadcast time and the synchronous timing duration are the values ​​of the broadcast time and the timing duration corresponding to the maximum broadcast weight; the sixth message is used to spread the maximum broadcast weight so that the broadcast time and the timing duration of the short-distance communication of the three user devices are consistent, so as to achieve the frequency and timing of synchronous short-distance communication. The following is through Figure 9 Further explanation.

[0168] Figure 9 A schematic diagram of mutual discovery and synchronous communication between multiple screen-on devices and sleep devices in a device discovery method provided in an embodiment of the present application. Figure 9 As shown, the first user device is in a dormant state, and the second and third user devices are in a screen-on state. The second and first user devices can discover each other via short-range communication, and the third and first user devices can discover each other via short-range communication. However, the second and third user devices cannot directly discover each other via short-range communication. The first, second, and at least one third user device achieve mutual discovery and synchronous communication by performing the following steps.

[0169] S901: The second user device with the screen turned on initiates a broadcast and scan, broadcasting a message packet M1. The message packet M1 includes at least the second user device identifier, a first broadcast weight W1, a first broadcast time NT1, and a first timing duration T1. The first broadcast time and the first timing duration correspond to the first broadcast weight.

[0170] S902: The dormant first user device initiates a short-range communication scan and receives a message packet M1. It then replies with a message packet M2 to the second user device. Message packet M2 includes at least the first user device identifier, device weight DW, second broadcast weight W2, second broadcast time NT2, second timer duration T2, and second user device identifier. The second broadcast weight W2 defaults to the device weight DW of the first user device.

[0171] When the dormant first user device scans and receives the message packet M1, it parses the message packet M1 and saves the parsing result. In some possible implementations, when the dormant first user device scans and receives the message packet M1, it parses and saves the values ​​of various broadcast parameters carried in the message packet M1, where the parsing result includes at least the second user device identifier, the first broadcast weight W1, the first timing duration T1, and the first broadcast time NT1.

[0172] S903, the third user device in the screen-on state actively initiates broadcasting and scanning, and broadcasts message package M5. Message package M5 is recorded as the fifth message. The fifth message includes the third user device identifier, the third broadcast weight, the third broadcast time and the third timing duration; wherein the third user device identifier is the identifier of the third user device, and the third broadcast time and the third timing duration correspond to the third broadcast weight.

[0173] S904, the first user device receives the message package M5 message, parses the message package M5 message, obtains and saves the third user device identifier, third broadcast weight W3, third timing duration T3 and third broadcast time NT3 of the third user device; compares the first broadcast weight W1, the second broadcast weight W2 and the received third broadcast weight W3 values, and updates the maximum broadcast weight, timing time and broadcast time received by the local device.

[0174] If the maximum broadcast weight received by the local device is W1, the short-range communication module BT1 is instructed to broadcast message packet M6 within the first broadcast time NT1 and the first time duration T1. The sixth message includes the maximum broadcast weight W, the broadcast time T, and the time duration NT; the broadcast time T and the time duration NT are the values ​​of the device corresponding to the maximum broadcast weight W. In this case, W = W1, T = T1, and NT = NT1.

[0175] When the maximum broadcast weight received by the local device is W3, the short-range communication module BT1 is instructed to broadcast the message packet M6 at the third broadcast time NT3 within the time range of the third timing duration T3. At this time, the maximum broadcast weight W=W3, broadcast time T=T3 and timing duration NT=NT3 in the sixth message.

[0176] S905 , the third user equipment performs scanning and receives the message packet M6 , parses the message packet M6 , and obtains the broadcast weight W, the broadcast time T, and the timing duration NT.

[0177] Comparing the local broadcast weight W3 and the broadcast weight W, when the local broadcast weight W3 is less than the broadcast weight W, the third user device broadcasts the message package M5 at the broadcast time NT within the time range of the timing duration T; when the local broadcast weight W3 is greater than or equal to the broadcast weight W, the third user device broadcasts the message package M5 at the broadcast time NT3 within the time range of the timing duration T3 according to the original broadcast parameters.

[0178] At step S906, the second user device scans and receives message packet M2, compares the local broadcast weight W1 with the broadcast weight W2 obtained by parsing the message, and if the local broadcast weight W1 is less than the broadcast weight W2, the second user device broadcasts the next message packet M1 at broadcast time NT2 within the time range of the scheduled duration T2. ​​If the broadcast weight W1 is greater than or equal to the broadcast weight W2, the second user device broadcasts the message packet M1 at broadcast time NT within the time range of the scheduled duration T according to the original broadcast parameters.

[0179] S907, after the dormant first user device scans and receives message package M1 and message package M5 respectively within the same time period, it broadcasts the same message package M6 to the second user device and the third user device. The message package M6 may include the second user device identifier and the third user device identifier, where the second user device identifier and the third user device identifier are the identifiers of the target devices.

[0180] After the above steps S901-S907, the timing and frequency of the second user equipment broadcasting message package M1 and the third user equipment broadcasting message package M5 can finally be synchronized, and the second user equipment and the third user equipment can synchronously scan and receive the message package M6 broadcasted by the first user equipment in reply.

[0181] The above embodiment is also applicable to multiple third user devices in the bright screen state simultaneously querying the dormant first user device. The dormant first user device broadcasts the same message package M6 to each user device, and the message package M6 aggregates the identifiers of each user device. Each user device identifier is the identifier of each target device of the broadcast reply.

[0182] Specifically, the first user device scans different message packets M1 sent by n-1 user devices, and the communication analysis unit 422 parses each message packet M1 respectively to obtain the identification, broadcast weight, timing duration and broadcast time of each device carried in each message packet M1, and processes the identification, broadcast weight, timing duration and broadcast time of each user device obtained by parsing each message packet M1 and sends them to the sensor sharing drive unit 403 for storage. The communication filtering unit 421 compares the n broadcast weights stored in the sensor sharing drive unit 403 to determine the maximum broadcast weight, and edits the corresponding message packet M6 according to the maximum broadcast weight. The value of the maximum broadcast weight W in the message packet M6 is the largest value among the n broadcast weights, the timing duration is the timing duration of the device corresponding to the maximum broadcast weight, and the broadcast time is the broadcast time of the device corresponding to the maximum broadcast weight. The target device includes the identification of n-1 target devices.

[0183] Message packet M6 is broadcast through the short-range communication module, allowing third user devices with a broadcast weight less than the maximum broadcast weight to learn the timing duration and broadcast time of the user device with the maximum broadcast weight. The third user devices align the timing duration and broadcast time of the broadcast with the timing duration and broadcast time corresponding to the maximum broadcast weight, thereby achieving the purpose of synchronous broadcasting and scanning by multiple third user devices in the bright screen state. A network consisting of multiple third user devices that broadcast and scan synchronously is called a cluster.

[0184] like Figure 9 As shown, in a cluster, if the dormant first user device finds that one of the user devices is offline, the maximum broadcast weight is still retained in the sensor sharing driver unit 403, and the maximum broadcast weight will not be modified due to the offline of the device, and the synchronization status of other devices in the cluster will not change.

[0185] Through the above embodiment, the second user device with the screen on and the third user device discover each other through the dormant first user device, and can maintain short-range communication with the dormant first user device. After waking up, the first user device can obtain the list of online user devices in the first time, thereby improving the efficiency of short-range communication; a message packet M6 broadcast by the first user device can simultaneously respond to the short-range communication requests of multiple devices with the screen on, thereby achieving the purpose of reducing power consumption and improving the efficiency of short-range communication; the first user device broadcasts the message packet M6 to carry out the maximum broadcast weight propagation and normalization, synchronize the frequency and timing of the broadcasts of multiple devices with the screen on, so as to quickly discover online user devices and reduce power consumption; after the second user device or the third user device goes offline, the maximum broadcast weight is still retained, and the communication status of other user devices in the cluster can continue to remain synchronized and orderly.

[0186] A possible implementation method for each user device in a cluster to perform synchronous broadcasting and scanning is to align the shared maximum broadcast weight of each online user device with a bright screen by agreeing on the communication duration and communication time through the timing duration and broadcast time of the message packet M6 on the basis of the solution provided in the above embodiment. Among them, the communication / synchronization window is a time interval with a starting moment of the broadcast time and a duration of the timing duration. The communication / synchronization windows of all devices in a cluster are aligned to varying degrees based on the communication / synchronization window of the device with the maximum broadcast weight, and each online user device broadcasts and scans synchronously within the aligned communication window. The alignment process of the communication / synchronization windows of each user device in the same cluster can adopt all or part of the processes of the above embodiments S901-S907.

[0187] Figure 10 This is a diagram showing the effect of communication / synchronization window alignment in a user equipment discovery method provided in an embodiment of the present application. Figure 10 As shown, the mobile phone and the TV have discovered each other; the communication / synchronization window of the mobile phone and the communication / synchronization window of the TV have been aligned, and the mobile phone and the TV perform short-range communication and exchange information within the aligned communication / synchronization windows.

[0188] Figure 11 A schematic diagram of a device discovery method according to an embodiment of the present application showing rapid discovery of two devices with different synchronization within a discovery window.

[0189] like Figure 11 As shown, in the initial stage of startup of the fourth user equipment, it is out of step with the first user equipment in the cluster. The time when the first user equipment in the dormant state broadcasts the message packet M1 is outside the communication / synchronization window of the fourth user equipment. The first user equipment receives the message packet M1′ broadcast by the fourth user equipment outside its communication / synchronization window. Neither the first user equipment nor the fourth user equipment receives a reply in its communication window.

[0190] Within the discovery window (Idle_Interval) time range, that is, the time interval outside the communication / synchronization window of the first user device and the communication / synchronization window of the fourth user device, the first user device instructs the short-range communication module to randomly broadcast a message packet M7 according to the short-range communication broadcast parameter to detect and query at least one fourth user device outside the cluster (Cluster) that is inconsistent with the local communication / synchronization window time range. The first user device and the fourth user device respectively perform the following steps to achieve the first mutual discovery:

[0191] S1101: A first user device broadcasts a message package M7 in its discovery window. Message package M7 may be recorded as the seventh message. The seventh message includes at least the first user device identifier, a broadcast weight W, a timing duration T, and a broadcast time NT. The broadcast weight W is the maximum broadcast weight among the broadcast weights of each user device in the cluster to which the first user device belongs, and the timing duration and broadcast time correspond to the maximum broadcast weight.

[0192] S1102 , the fourth user equipment broadcasts a message package M7 ′, where the message package M7 ′ includes at least the device ID 4 of the fourth user equipment, a broadcast weight W4 , a timing duration T4 , and a broadcast time NT4 .

[0193] After multiple collisions in the discovery window, the short-range communication interaction between the first user equipment and the fourth user equipment is successful. Execute S1103-S1104.

[0194] S1103: During the discovery window, the first user device scans and receives a message packet M7′ broadcast by a fourth user device. The first user device parses the message packet M7′ to obtain the fourth user device identifier, broadcast weight W4, timing duration T4, and broadcast time NT4. The fourth user device identifier is the identifier of the fourth user device. The first user device compares the broadcast weight W4 with the broadcast weight W, taking the larger value as the maximum broadcast weight. The first user device's communication / synchronization window is then aligned with the communication / synchronization window of the device with the maximum broadcast weight.

[0195] At step S1104, the fourth user device receives message packet M7 broadcast by the first user device. The fourth user device parses message packet M7 to obtain the first user device's device identifier ID1, broadcast weight W2, timing duration T2, and broadcast time NT2. By comparing broadcast weights W4 and W2, the larger of which is used as the maximum weight, the fourth user device's communication / synchronization window is aligned with the communication / synchronization window of the device with the maximum broadcast weight.

[0196] The communication / synchronization window of the first user device is aligned with the communication / synchronization window of the device with the maximum broadcast weight, or the communication / synchronization window of the fourth user device is aligned with the communication / synchronization window of the device with the maximum broadcast weight. The specific steps can refer to the methods of S904-S907 and will not be repeated here.

[0197] S1105: In the aligned communication / synchronization window, the first user device broadcasts a message packet M1, and then receives a reply message packet M2 from the fourth user device. The fourth user device joins the cluster where the first user device is located, enabling user devices in the bright screen state within the reachable range to quickly join the cluster and achieve synchronization of short-distance communications.

[0198] like Figure 11As shown, within the discovery window, multiple random windows are required, and the message packet M7 including key information is broadcasted in the random window, thereby increasing the speed of the first discovery.

[0199] After several collision adjustments, the communication / synchronization windows of the first and fourth user devices are aligned. User devices in different clusters can now discover each other. Once the communication / synchronization windows of each user device are synchronized, they can operate simultaneously, maximizing the efficiency of keeping the user devices online.

[0200] In any of the above embodiments, the message packets M1 and M3 may be heartbeat detection packets, the message packets M2, M5 and M6 may be heartbeat reply packets, the message packet M7 may be a quick discovery packet, and the message packet M4 may be an end packet.

[0201] Specifically, the heartbeat detection package is a detection message broadcast by devices in the screen-on state and the sleep state. The broadcast parameters of the heartbeat detection package include message type, sequence number, local device, broadcast weight, local weight, timing duration, and broadcast time. The specific message format is shown in Figure 12(a).

[0202] A heartbeat reply packet is a reply message broadcast by a user device that has scanned a heartbeat detection packet. The broadcast parameters of a heartbeat reply packet include the message type, sequence number, maximum broadcast weight, local device, timer duration, broadcast time, and target devices 1 to n. The specific message format is shown in Figure 12(b).

[0203] In some embodiments, through information exchange between the heartbeat detection packet and the heartbeat reply packet, the corresponding user equipment can synchronize the frequency and timing of short-range communication.

[0204] A rapid discovery packet is a probe message broadcast by a user device at random times outside the communication / synchronization window. This packet can quickly discover other out-of-sync user devices that need to join the cluster. The broadcast parameters of a rapid discovery packet include the message type, sequence number, local device, broadcast weight, timer duration, and broadcast time. The specific message format is shown in Figure 12(c).

[0205] The End packet is a reply message broadcast by a user device that has scanned a Heartbeat Reply packet. It indicates to the peer user device that it has received the Heartbeat Reply packet and can stop replying to its own broadcasts. The End packet's message parameters include at least the message type, sequence number, local device, and one or a combination of Target Devices 1 through Target Devices n. The specific message format is shown in Figure 12(d).

[0206] The main broadcast parameters in the above message package are defined as follows:

[0207] The message type is the type identifier of the message packet: for example, if the message type value is 1, the message packet is a heartbeat detection packet; if the message type value is 2, the message packet is a heartbeat reply packet; if the message type value is 3, the message packet is a quick discovery packet; the type of the message packet can be determined based on the value of the message type.

[0208] The sequence number is the sorting identifier of the message packets broadcast this time.

[0209] The local device is the identifier of the local device.

[0210] The broadcast weight defaults to the device weight of the local device. If a device weight greater than the local device's is detected, the broadcast weight will be the larger device weight.

[0211] The device weight is a weight value preset by the local device.

[0212] The maximum broadcast weight is the value with the largest broadcast weight among the message packets of surrounding online devices scanned by the local device.

[0213] The timing duration is the time interval set for the communication / synchronization window of the local device.

[0214] The broadcast time is the time when the next broadcast is scheduled to arrive.

[0215] The target device is the identifier of the target device of the broadcast heartbeat reply packet. Multiple target device identifiers are aggregated into a target device list. The target device identifier list includes the target device identifier of the broadcast heartbeat reply packet. The device that scans the heartbeat reply packet will check whether its own identifier is in the target list. If it is in the target list, it means that the heartbeat reply packet is replying to itself.

[0216] In the second aspect, the present application also provides a device discovery device, which returns Figure 4 As shown, it includes a communication filtering unit, a communication analysis unit and a built-in integrated circuit driving unit; the communication filtering unit is used to receive short-range communication parameters from the processor before the processor goes into sleep mode, and the short-range communication parameters include scanning parameters; the built-in integrated circuit driving unit is used to instruct the short-range communication device to scan according to the scanning parameters during the processor's sleep period; the communication analysis unit is used to obtain a first message broadcast by a second user device received through scanning, and the first message includes at least a second user device identifier; the second user device identifier is saved so that the APP can discover the second user device according to the second user device identifier after the processor is awakened.

[0217] The implementation of the functions or uses of each module included in the discovery device of the device, as well as the beneficial effects, can be found in the various embodiments of the discovery method of a device, so they will not be repeated when introducing the intelligent sensing device of the device.

[0218] In the third aspect, the present application also provides a corresponding intelligent sensing device, as shown in Figure 13(a), the intelligent sensing device 1300 includes a data processor 1301 and a second memory 1302; the second memory 1302 can be a sensor sharing drive unit 403, and the data processor 1301 is used to execute the computer execution instructions stored in the second memory. The data processor 1301 runs the computer execution instructions to execute the discovery method of the device described in any of the above embodiments, and keeps the first user device online in short-distance communication in a sleep state.

[0219] The present application also provides a processing device accordingly, as shown in Figure 13(b), the processing device 1310 includes a processor 1311 and a first memory 1312, the processor 1311 executes computer execution instructions stored in the first memory 1312, the processor 1311 runs the computer execution instructions to execute a device discovery method described in any of the above embodiments, sends short-range communication parameters before the sleep state, and the first user device maintains short-range communication online during the sleep state.

[0220] In a fourth aspect, the present application provides a user equipment capable of maintaining short-range communication in a dormant state, such as Figure 14 As shown, the user equipment includes a processing device 1310, an intelligent sensor device 1300, and a short-range communication device 1401; the processing device 1310 includes a processor 1311 and a first memory 1312, the processor 1311 executes computer-executable instructions stored in the first memory 1312, the processor 1311 runs the computer-executable instructions to perform a device discovery method described in any of the above embodiments, sends short-range communication parameters before the sleep state, and keeps the short-range communication device online during the sleep state. The intelligent sensor device 1300 includes a data processor 1301 and a second memory 1302; the second memory 1302 can be a sensor sharing drive unit 403, the data processor 1301 is used to execute the computer-executable instructions stored in the second memory, the data processor 1301 runs the computer-executable instructions to perform the device discovery method described in any of the above embodiments, and keeps the short-range communication device online in the sleep state.

[0221] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0222] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0223] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0224] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0225] In addition, 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.

[0226] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program code.

[0227] Note that the above are only preferred embodiments of the present application and the technical principles employed. Those skilled in the art will understand that the present application is not limited to the specific embodiments herein, and that various obvious changes, readjustments, and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application has been described in more detail through the above embodiments, the present application is not limited to the above embodiments and may include many other equivalent embodiments without departing from the scope of protection of the present application, all of which fall within the scope of protection of the present application.

Claims

1. A device discovery method, applied to an intelligent sensor device inside a first user device, wherein the first user device is further provided with a processor and a short-range communication device, characterized in that: The method comprises: Before the processor goes into sleep mode, receiving short-range communication parameters from the processor, the short-range communication parameters including scanning parameters; the short-range communication parameters including broadcast parameters; During the processor sleep period: The smart sensing device instructs the short-range communication device to broadcast a third message according to the broadcast parameters; the third message includes at least a first user equipment identifier, wherein the first user equipment identifier is the identifier of the first user equipment; the smart sensing device instructs the short-range communication device to scan according to the scan parameters; obtains a first message received through scanning, the first message is broadcast by the second user equipment and includes at least a second user equipment identifier, wherein the second user equipment identifier is the identifier of the second user equipment; saves the second user equipment identifier so that the second user equipment can be discovered according to the second user equipment identifier after the processor is awakened; the first message is a reply to the third message; the smart sensing device instructs the short-range communication device to broadcast a second message according to the broadcast parameters; the second message is a reply to the first message; the second message includes at least the first user equipment identifier and the second user equipment identifier; during the processor sleep period, after obtaining the first message received through scanning, the smart sensing device instructs the short-range communication device to broadcast a fourth message according to the broadcast parameters; the fourth message is used to instruct the second user equipment to stop broadcasting the first message; the fourth message includes at least the first user equipment identifier and the second user equipment identifier; After a certain time, if the processor is awakened, the processor discovers the second user equipment according to the second user equipment identifier reported by the smart sensor device.

2. The method according to claim 1, characterized in that The method further comprises: During the processor sleep period, the smart sensor device obtains a fifth message received through scanning before instructing the short-range communication device to broadcast a second message according to the broadcast parameter, where the fifth message is broadcast by at least one third user equipment; The fifth message includes at least one third user equipment identifier, wherein the at least one third user equipment identifier is an identifier of at least one third user equipment; The second message is a reply to the first message and the fifth message; The second message further includes the at least one third user equipment identifier.

3. The method according to claim 1, characterized in that The short-range communication parameters include broadcast parameters; the broadcast parameters also include a second broadcast weight, a second broadcast time, and a second timing duration; wherein the second broadcast time and the second timing duration correspond to the second broadcast weight; The first message further includes a first broadcast weight, a first broadcast time, and a first timing duration; wherein the first broadcast time and the first timing duration correspond to the first broadcast weight; The method further comprises: During the processor sleep period, the smart sensor device obtains a fifth message broadcast by at least one third user equipment received through scanning; The fifth message includes a third user equipment identifier, a third broadcast weight, a third broadcast time, and a third timing duration; wherein the third user equipment identifier is an identifier of the third user equipment, and the third broadcast time and the third timing duration correspond to the third broadcast weight; comparing the values ​​of the first broadcast weight, the second broadcast weight, and the third broadcast weight to obtain a maximum broadcast weight; Instructing the short-range communication device to broadcast a sixth message within a time interval corresponding to the maximum broadcast weight and the timing duration corresponding to the maximum broadcast weight according to the broadcast parameter; The sixth message includes the maximum broadcast weight, broadcast time, timing duration, and the identifier of the target device; wherein the broadcast time and timing duration are the values ​​of the broadcast time and timing duration corresponding to the maximum broadcast weight, and the identifier of the target device includes the second user equipment identifier and / or at least one third user equipment identifier; The sixth message is a reply to the first message and / or the fifth message, and is used to broadcast the maximum broadcast weight so that the frequency and timing of short-range communication of at least one third user equipment can be synchronized.

4. The method according to claim 3, characterized in that The method further comprises: During the period when the processor is dormant, the intelligent sensing device instructs the short-range communication device to broadcast a seventh message in the discovery window according to the broadcast parameters, and the seventh message is used to discover at least one fourth user device outside the cluster; wherein, the discovery window is a time interval outside the communication / synchronization window; the communication / synchronization window is a time interval whose starting moment is the first broadcast time and whose duration is the first timing duration; the seventh message includes at least the first user device identifier, the maximum broadcast weight, the timing duration and the broadcast time; wherein the broadcast time and the timing duration are the values ​​of the broadcast time and the timing duration corresponding to the maximum broadcast weight; the cluster is a network composed of several user devices that broadcast and scan simultaneously.

5. The method according to claim 1, wherein The first message includes the second user equipment identifier. The method further includes: during the processor hibernation period, the smart sensor device obtains and saves the second user equipment identifier by parsing the first message.

6. The method according to claim 1, characterized in that The method further includes: during the processor sleep period, the intelligent sensor device obtains at least the second user equipment identifier and the first user equipment identifier by parsing the first message, wherein the first user equipment identifier is the identifier of the target device to which the first message is replied.

7. The method according to any one of claims 1 to 6, characterized in that The short-range communication includes at least one of Bluetooth communication and Bluetooth low energy communication; the method further includes: before the processor goes into sleep mode, receiving a Bluetooth driver from the processor and running the Bluetooth driver.

8. A device discovery method, applied to a processor inside a first user device, wherein the first user device is also provided with an intelligent sensor device and a short-range communication device, characterized in that: The method comprises: Before entering sleep mode, the smart sensor device sends short-range communication parameters, including scanning parameters and broadcast parameters, to the smart sensor device so that the smart sensor device instructs the short-range communication module to scan and broadcast according to the scanning parameters and broadcast parameters during sleep mode. During hibernation: The smart sensing device instructs the short-range communication device to broadcast a third message according to the broadcast parameters; the third message includes at least a first user equipment identifier, wherein the first user equipment identifier is an identifier of the first user equipment; the smart sensing device instructs the short-range communication device to scan according to the scanning parameters; obtains a first message received by scanning, the first message is broadcast by the second user equipment and includes at least a second user equipment identifier, wherein the second user equipment identifier is an identifier of the second user equipment; saves the second user equipment identifier so that the processor can find the second user equipment according to the second user equipment identifier after being awakened; the first message is a reply to the third message; the smart sensing device instructs the short-range communication device to broadcast a second message according to the broadcast parameters; the second message is a reply to the first message; the second message includes at least the first user equipment identifier and the second user equipment identifier; After acquiring the first message received through scanning, the intelligent sensing device instructs the short-range communication device to broadcast a fourth message according to the broadcast parameter; the fourth message is used to instruct the second user equipment to stop broadcasting the first message; the fourth message includes at least the first user equipment identifier and the second user equipment identifier; After waking up: Obtain at least one second user device identifier stored by the intelligent sensing device and discover the at least one second user device; wherein the at least one second user device identifier is the identifier of the at least one second user device, and the at least one second user device identifier is obtained by the intelligent sensing device from a message broadcast by the at least one second user device.

9. The method according to claim 8, characterized in that The method further includes: before going into sleep mode, transmitting a Bluetooth access protocol to the smart sensor device.

10. A device discovery device, located in a first user device, wherein the first user device is further provided with a processor and a short-range communication device, characterized in that: The discovery device of the device includes a communication filtering unit, an internal integrated circuit driving unit and a communication analysis unit; The communication filtering unit is used to receive short-range communication parameters from the processor before the processor goes into sleep mode, wherein the short-range communication parameters include scanning parameters and broadcast parameters; The built-in integrated circuit driving unit instructs the short-range communication device to scan according to the scanning parameters during the processor sleep period; The communication analysis unit instructs the short-range communication device to broadcast a third message according to the broadcast parameters during the processor sleep period; the third message includes at least a first user equipment identifier, wherein the first user equipment identifier is the identifier of the first user equipment; obtains a first message received by scanning, the first message is broadcast by the second user equipment and includes at least a second user equipment identifier, wherein the second user equipment identifier is the identifier of the second user equipment; saves the second user equipment identifier so that the second user equipment can be found according to the second user equipment identifier after the processor is awakened; the first message is a reply to the third message; instructs the short-range communication device to broadcast a second message according to the broadcast parameters; the second message is a reply to the first message; the second message includes at least the first user equipment identifier and the second user equipment identifier; after obtaining the first message received by scanning, instructs the short-range communication device to broadcast a fourth message according to the broadcast parameters; the fourth message is used to instruct the second user equipment to stop broadcasting the first message; the fourth message includes at least the first user equipment identifier and the second user equipment identifier; After a certain time, if the processor is awakened, the processor discovers the second user equipment according to the second user equipment identifier reported by the discovery device of the device.

11. An intelligent sensing device, characterized in that: The intelligent sensing device includes a second memory and a data processor; the data processor is used to execute computer execution instructions stored in the second memory, and the data processor runs the computer execution instructions to execute the discovery method of the device described in any one of claims 1-7, and keeps the first user device online in short-range communication in a sleep state.

12. A device discovery device, located in a first user device, wherein the first user device is further provided with an intelligent sensor device and a short-range communication device, characterized in that: The discovery device of the device includes a sleep preparation unit and a wake-up message acquisition unit; The sleep preparation unit is used to send short-range communication parameters to the smart sensor device before sleep, wherein the short-range communication parameters include scanning parameters and broadcast parameters, so that the smart sensor device instructs the short-range communication module to scan and broadcast according to the scanning parameters and broadcast parameters during sleep; During sleep, the smart sensing device is used to instruct the short-range communication device to broadcast a third message according to the broadcast parameters; the third message includes at least a first user equipment identifier, wherein the first user equipment identifier is the identifier of the first user equipment; instruct the short-range communication device to scan according to the scanning parameters; obtain a first message received by scanning, the first message is broadcast by the second user equipment and includes at least a second user equipment identifier, wherein the second user equipment identifier is the identifier of the second user equipment; save the second user equipment identifier so that the discovery device of the device can discover the second user equipment according to the second user equipment identifier after being awakened; the first message is a reply to the third message; instruct the short-range communication device to broadcast a second message according to the broadcast parameters; the second message is a reply to the first message; the second message includes at least the first user equipment identifier and the second user equipment identifier; after obtaining the first message received by scanning, instruct the short-range communication device to broadcast a fourth message according to the broadcast parameters; the fourth message is used to instruct the second user equipment to stop broadcasting the first message; the fourth message includes at least the first user equipment identifier and the second user equipment identifier; The wake-up message acquisition unit is used to obtain at least one second user device identifier saved by the intelligent sensing device after being awakened, and discover the at least one second user device; wherein, the second user device identifier is the identifier of the second user device, and the second user device identifier is obtained by the intelligent sensing device from the message broadcast by the second user device.

13. A processing device, disposed inside a first user device, characterized in that: The processing device includes a processor and a first memory, the processor is used to execute an application stored in the first memory, and the processor runs the application to execute a device discovery method described in any one of claims 8-9, instructing the smart sensor device to receive short-range communication parameters before the sleep state to keep the short-range communication online during the sleep state.

14. A user equipment capable of maintaining short-range communication in a dormant state, the user equipment comprising at least a processor, an intelligent sensor device, and a short-range communication device; characterized in that: The processor is configured to execute an application stored in the first memory, wherein the processor runs the application to execute the device discovery method according to any one of claims 8 to 9, instructing the smart sensor device to receive short-range communication parameters before entering a sleep state, so as to maintain short-range communication online during the sleep state; The intelligent sensing device includes at least a second memory and a data processor; the data processor is used to execute computer-executable instructions stored in the second memory, and the data processor runs the computer-executable instructions to execute the discovery method of the device described in any one of claims 1 to 7, keeping the short-range communication device online in a sleep state.

Citation Information

Patent Citations

  • Wireless communication method and equipment with wireless communication function

    CN111263339A