CN114257996A - Device discovery method and device - Google Patents

Device discovery method and device Download PDF

Info

Publication number
CN114257996A
CN114257996A CN202010996238.XA CN202010996238A CN114257996A CN 114257996 A CN114257996 A CN 114257996A CN 202010996238 A CN202010996238 A CN 202010996238A CN 114257996 A CN114257996 A CN 114257996A
Authority
CN
China
Prior art keywords
user equipment
broadcast
message
short
parameters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010996238.XA
Other languages
Chinese (zh)
Inventor
黄中帅
蓝县辉
王洋
蒋钟寅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202010996238.XA priority Critical patent/CN114257996A/en
Priority to PCT/CN2021/113291 priority patent/WO2022057559A1/en
Publication of CN114257996A publication Critical patent/CN114257996A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0274Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
    • H04W52/028Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof switching on or off only a part of the equipment circuit blocks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The embodiment of the application provides a device discovery method, which is applied to an intelligent sensing device inside first user equipment, wherein a processor and a short-distance communication device are also arranged inside the first user equipment, and the method comprises the following steps: receiving short-range communication parameters from the processor before the processor is dormant, the short-range communication parameters including scanning parameters; during the sleep period of the processor, instructing the short-distance communication device to scan according to the scanning parameters; acquiring a first message received by scanning, wherein the first message is broadcasted by second user equipment and at least comprises a second user equipment identifier, and the second user equipment identifier is the identifier of the second user equipment; and storing the second user equipment identification so that the processor can find the second user equipment according to the second user equipment identification after being awakened. By applying the device discovery method provided by the embodiment of the application, the user equipment can discover other user equipment under the condition that the processor is in a sleep state, and the power consumption of the equipment can be effectively reduced.

Description

Device discovery method and device
Technical Field
The present application relates to the field of short-distance communication technologies, and in particular, to a method and an apparatus for discovering a device.
Background
With the increase of the variety and number of user devices such as mobile phones, tablets, TVs, PCs, speakers, watches, and car machines, intelligent devices have been covered in many scenes, such as home, office, social, sports, and automobiles. The following is the demand of the user for device intelligence, such as real-time acquisition of a peripheral device list, fast completion of link establishment of multiple devices, synchronization of device state information and service information with low power consumption under the condition that an Application Processor (hereinafter abbreviated as AP) is dormant, operation of different devices connected with the same account, file sharing between different devices, and the like.
At present, short-distance communication and scanning are required to be started when user equipment acquires a peripheral equipment list, and the real-time performance is poor; when the bright screen device finds the sleeping device, the sleeping device needs to wake up the AP in real time to reply to a low power consumption Bluetooth (BLE) broadcast, which causes too high power consumption and affects user experience; when the state of the device changes, the broadcast is synchronized through low-power-consumption Bluetooth communication, and the AP is frequently awakened, so that the power consumption is too high.
Disclosure of Invention
In order to solve the above problem, embodiments of the present application provide a device discovery method, apparatus, and system. According to the method, the intelligent sensing device executes the short-distance communication, so that the problem of power consumption increase caused by frequent awakening of the processing module AP to execute the short-distance communication under the condition that the processing module AP is dormant is solved.
In a first aspect, an embodiment of the present application provides a device discovery method, which is applied to an intelligent sensing device inside first user equipment, where a processor and a short-range communication device are further disposed inside the first user equipment, and the method includes: receiving short-range communication parameters from the processor before the processor is dormant, the short-range communication parameters including scanning parameters; during the sleep period of the processor, instructing the short-distance communication device to scan according to the scanning parameters; acquiring a first message received by scanning, wherein the first message is broadcasted by second user equipment and at least comprises a second user equipment identifier, and the second user equipment identifier is the identifier of the second user equipment; and storing 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.
By applying the device discovery method provided by the embodiment of the application, the first user equipment can keep an online state through the intelligent sensing module under the condition that the processing module is dormant, and short-distance communication broadcasting and/or scanning are/is executed, so that second user equipment around the first user equipment is discovered, link establishment information of the second user equipment is acquired, and power consumption of the device is effectively reduced.
In one embodiment, the short-range communication parameters include broadcast parameters; the method further comprises the following steps: 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 comprises at least the first user equipment identity and the second user equipment identity; the first user equipment identity is an identity of the first user equipment.
By applying the device discovery method provided by the embodiment of the application, the first user equipment does not need to wake up the processing module in a dormant state, and the online state is kept through the intelligent sensing module, so that the detection of the surrounding second user equipment is discovered and carried out correspondingly, the mutual discovery among the user equipment is realized, the discovery and link establishment speed among the user equipment can be improved, and the use experience of a user is optimized.
By applying the device discovery method provided by the embodiment of the application, the power consumption of the user equipment which is kept in the online state in the dormant state is greatly reduced, and the power consumption of the whole machine caused by the power consumption is also reduced.
In one embodiment, the short-range communication parameters include broadcast parameters; the method further comprises the following steps: instructing the short-range communication device to broadcast a third message according to the broadcast parameters before acquiring the first message received by scanning; the third message at least comprises the first user equipment identity, wherein the first user equipment identity is the identity of the first user equipment; the first message is a reply to the third message.
By applying the device discovery method provided by the embodiment of the application, the online state can be kept during the dormancy period, and the dormant first user equipment can actively detect other bright second user equipment.
In one embodiment, the method further comprises: after acquiring the first message received by scanning, instructing the short-distance communication device to broadcast a fourth message according to the broadcast parameters; the fourth message is used for indicating the second user equipment to stop broadcasting the first message; the fourth message comprises at least the first user equipment identity and the second user equipment identity.
By applying the device discovery method provided by the embodiment of the application, after the device is discovered by the opposite terminal and the response is obtained, the reply to the detection can be stopped, and the power consumption is further reduced.
In one embodiment, the method further comprises: acquiring a fifth message received by scanning before instructing the short-range communication device to broadcast the second message according to the broadcast parameters, the fifth message being broadcast by the at least one third user equipment; the fifth message comprises at least one third user equipment identity, wherein the at least one third user equipment identity is an identity of the at least one third user equipment; the second message is a reply to the first message and a fifth message; the second message further comprises the at least one third user equipment identity.
By applying the device discovery method provided by the embodiment of the application, in the state that the first user equipment is dormant, the intelligent sensing module broadcasts a message including two or more user equipment identifications in an aggregation processing mode, and replies online query requests of the two or more user equipment simultaneously, so that the user equipment can acquire lists of online user equipment in each accessible range and obtain link establishment information during the dormant period, and can discover and maintain the online state with the plurality of online user equipment, thereby effectively reducing the broadcast power consumption of the dormant equipment and avoiding downtime caused by general broadcast.
In one embodiment, the short-range communication parameters include broadcast parameters; the broadcast parameters further comprise 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 a second broadcast weight; the first message further comprises 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 a first broadcast weight; the method further comprises the following steps: acquiring a fifth message broadcast by at least one third user equipment received through scanning; the fifth message comprises 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 a third broadcast time and a 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; according to the broadcast parameters, indicating the short-distance communication device to broadcast a sixth message in a time interval of a broadcast time corresponding to the maximum broadcast weight and a timing duration corresponding to the maximum broadcast weight; the sixth message comprises the maximum broadcast weight, the maximum broadcast time, the maximum timing duration and the maximum identification of the target equipment; the broadcast time and the timing duration are values of the broadcast time and the timing duration corresponding to the maximum broadcast weight, and the identifier of the target device comprises 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 for propagating the maximum broadcast weight out to enable synchronization of the frequency and timing of the short-range communication of the at least one third user equipment.
By applying the device discovery method provided by the embodiment of the application, the second user device and the third user device which are bright-screened discover each other through the dormant first user device, and can keep short-distance communication with the dormant first user device. After the first user equipment is awakened, the online user equipment list can be acquired at the first time, and the short-distance communication efficiency is improved; a message packet M6 broadcasted by the first user equipment can simultaneously respond to short-distance communication requests of a plurality of bright-screen devices, so as to achieve the purposes of reducing power consumption and improving short-distance communication efficiency; the first user equipment broadcasts the message packet M6 to perform maximum broadcast weight propagation and normalization, and synchronizes the broadcast frequency and opportunity of multiple bright-screen devices, so as to quickly discover the online user equipment and reduce power consumption; after the second user equipment or the third user equipment is disconnected, the maximum broadcast weight is still reserved, and the communication states of other user equipment in the cluster can be kept synchronous and orderly.
In one embodiment, the method further comprises: instructing the short-range communication device to broadcast a seventh message in a discovery window according to the broadcast parameters, wherein the seventh message is used for discovering at least one fourth user equipment outside the cluster; wherein the discovery window is a time interval outside a communication/synchronization window; the communication/synchronization window is a time interval with the starting time being a first broadcast time and the duration being a first timing duration; the seventh message comprises at least the first user equipment identity, a maximum broadcast weight, a timing duration and a broadcast time; wherein the broadcast time and the timing duration are values of the broadcast time and the timing duration corresponding to the maximum broadcast weight; the cluster is a network formed by a plurality of user equipment which synchronously broadcast and scan.
By applying the device discovery method provided by the embodiment of the present application, after several times of collision adjustment, the communication/synchronization windows of the first user equipment and the fourth user equipment are aligned. The user equipment which is not in the same cluster realizes mutual discovery, and after the communication/synchronization window of each user equipment realizes synchronization, each user equipment can work at the same time, so that the maximum efficiency of keeping the user equipment in an online state is achieved.
In one embodiment, the first message includes the second user equipment identity, and the method further includes: and acquiring and storing the second user equipment identification by analyzing the first message.
By applying the device discovery method provided by the embodiment of the application, the second user equipment identifier can be obtained in a dormant state, and the discovery and the link establishment speed with the second user equipment are improved.
In an embodiment, at least the second ue identity and the first ue identity are obtained by parsing the first message, where the first ue identity is an identity of a target device replied to by the first message.
By applying the device discovery method provided by the embodiment of the application, the second user equipment identifier and the first user equipment identifier can be obtained by analyzing the first message in the dormant state, so that the discovery among the user equipment and the link establishment speed can be improved.
In one embodiment, the short-range communication includes at least one of bluetooth communication and bluetooth low energy communication; the method further comprises receiving a Bluetooth driver from the processor before the processor is dormant and running the Bluetooth driver.
By applying the device discovery method provided by the embodiment of the application, the Bluetooth communication can be kept online in a dormant state.
In a second aspect, an embodiment of the present application provides a device discovery method, which is applied to a processor inside a first user equipment, and the method includes: issuing short-distance communication parameters including scanning parameters to the intelligent sensing device before dormancy so that the intelligent sensing device instructs a short-distance communication module to scan according to the scanning parameters during dormancy; after awakening, acquiring at least one second user equipment identifier stored in the intelligent sensing device, and discovering the at least one second user equipment; the at least one second user equipment identifier is an identifier of the at least one second user equipment, and the at least one second user equipment identifier is obtained by the intelligent sensing device from a message broadcast by the at least one second user equipment.
In one embodiment, the short-range communication parameters further include broadcast parameters, the method further comprising: and descending a Bluetooth access protocol and the broadcast parameters to the intelligent sensing device before dormancy.
By applying the device discovery method provided by the embodiment of the present application, after a certain time, the processing module is awakened, and the processor runs the application program, so that the second user equipment can be discovered according to the reported second user equipment identifier.
In a third aspect, an embodiment of the present application provides a device discovery apparatus, which is located in a first user equipment, where the first user equipment is further provided with a processor and a short-range communication device, and the apparatus includes a communication filtering unit, a built-in integrated circuit driving unit, and a communication analysis unit;
the communication filtering unit is used for receiving short-distance communication parameters from the processor before the processor is in sleep, wherein the short-distance communication parameters comprise scanning parameters;
the built-in integrated circuit driving unit instructs the short-distance communication device to scan according to the scanning parameters during the sleep period of the processor; relation with short-distance communication device and user equipment
The communication analysis unit is used for acquiring a first message received by scanning, wherein the first message is broadcasted by a second user equipment and at least comprises a second user equipment identifier, and the second user equipment identifier is the identifier of the second user equipment; and storing 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.
In a fourth aspect, an embodiment of the present application provides an intelligent sensing apparatus, which includes a second memory and a data processor; the data processor is configured to execute the computer-executable instructions stored in the second memory, and the data processor executes the computer-executable instructions to perform the device discovery method according to any one of the above embodiments, so as to keep the first user equipment on-line in short-range communication in a sleep state.
In a fifth aspect, an embodiment of the present application provides a device discovery apparatus, which is located in a first user equipment, where an intelligent sensing apparatus and a short-distance communication apparatus are further disposed in the first user equipment, and the apparatus includes a sleep preparation unit and a wakeup acquisition message unit;
the sleep preparation unit is used for issuing short-distance communication parameters to the intelligent sensing device before sleep, wherein the short-distance communication parameters comprise scanning parameters, so that the intelligent sensing device instructs the short-distance communication module to scan according to the scanning parameters during sleep;
the awakening and acquiring message unit is used for acquiring at least one second user equipment identifier stored in the intelligent sensing device after awakening and discovering the at least one second user equipment; the second user equipment identifier is the identifier of the second user equipment, and the second user equipment identifier is obtained by the intelligent sensing device from a message broadcast by the second user equipment.
In a fifth aspect, an embodiment of the present application provides a processing device disposed in a first user equipment, where the processing device includes a processor and a first memory, the processor is configured to execute an application program stored in the first memory, and the processor runs the application program to perform the device discovery method according to any one of the foregoing embodiments, and instructs an intelligent sensing apparatus to receive short-range communication parameters before a sleep state, so as to keep short-range communication online during the sleep state.
In a sixth aspect, an embodiment of the present application provides a user equipment capable of maintaining short-range communication in a sleep state, where the user equipment includes at least a processor, an intelligent sensing device, and a short-range communication device; the processor is configured to execute an application stored in the first memory, and the processor executes the application to perform the method for discovering a device according to any one of the above embodiments, and instructs the smart sensor device to receive the short-range communication parameters before the sleep state so as to keep the short-range communication online during the sleep state;
the intelligent sensing device at least comprises a second memory and a data processor; the data processor is configured to execute the computer executable instructions stored in the second memory, and the data processor executes the computer executable instructions to perform the method of discovering the device according to any of the above embodiments, and keeps the short-range communication device online in a sleep state.
By applying the device discovery method provided by the embodiment of the application, the user equipment can perform short-distance communication broadcasting and/or short-distance communication scanning through the intelligent sensing device under the condition that the processor is dormant, so that other user equipment can be discovered, the equipment link establishment information can be acquired, the equipment state can be synchronized, and the power consumption of the equipment can be effectively reduced. In addition, in one or more embodiments, when the user uses the method, the operation speed can be improved, and the use experience of the user can be optimized.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments disclosed in the present application, the drawings required to be used in the description of the embodiments will be briefly introduced below, and it is apparent that the drawings in the following description are only embodiments disclosed in the present application, and it is obvious for those skilled in the art that other drawings can be obtained based on the drawings without inventive efforts.
Fig. 1 is a device architecture diagram of a device wake-up scheme in a distributed scenario provided in scheme 1;
fig. 2 is a flowchart of waking up a sleeping device through short-range communication in the distributed scenario provided in scheme 1;
fig. 3 is a flowchart of a short-range communication bidirectional broadcast provided by scheme 2;
FIG. 4 is a block diagram of an apparatus according to an embodiment of the present disclosure;
fig. 5 is a flowchart illustrating a method for discovering a device, in which a hibernating device is discovered by a bright-screen device according to an embodiment of the present application;
fig. 6 is a flowchart illustrating that a sleeping device actively discovers other devices in a device discovery method according to an embodiment of the present application;
fig. 7(a) is a schematic diagram of a device discovery method applied to a mobile phone a and a television TV according to an embodiment of the present application;
fig. 7(b) is a schematic diagram of a device discovery method applied to a mobile phone a and two television TVs according to an embodiment of the present application;
fig. 8 is a schematic diagram of an online user equipment communication/synchronization window and a discovery window in a device discovery method according to an embodiment of the present application;
fig. 9 is a schematic diagram illustrating a plurality of bright-screen devices and a plurality of sleeping devices in a device discovery method according to an embodiment of the present application discovering and synchronously communicating with each other;
fig. 10 is a diagram illustrating an effect of device communication/synchronization window alignment in a device discovery method according to an embodiment of the present application;
fig. 11 is a schematic diagram illustrating that two devices in different synchronization in a device discovery method according to an embodiment of the present application quickly discover in a discovery window;
fig. 12(a) is a schematic format diagram of a heartbeat probe packet in a discovery method of a device according to an embodiment of the present application;
fig. 12(b) is a schematic diagram illustrating a format of a heartbeat reply packet in a device discovery method according to an embodiment of the present application;
fig. 12(c) is a schematic diagram illustrating a format of a fast discovery packet in a device discovery method according to an embodiment of the present application;
fig. 12(d) is a schematic diagram illustrating a format of an end packet in a device discovery method according to an embodiment of the present application;
fig. 13(a) is a schematic diagram of an intelligent sensing device provided in an embodiment of the present application;
fig. 13(b) is a schematic view of a processing apparatus provided in an embodiment of the present application;
fig. 14 is a schematic diagram of a user equipment according to an embodiment of the present application.
Detailed Description
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is 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.
In the following description, references to the terms "first \ second \ third, etc. or module a, module B, module C, etc. are used solely to distinguish between similar objects and do not denote a particular order or importance to the objects, but rather the specific order or sequence may be interchanged as appropriate to enable embodiments of the application described herein to be practiced in an order other than that shown or described herein.
In the following description, reference to reference numerals indicating steps, such as S110, S120 … …, etc., does not necessarily indicate that the steps are performed in this order, and the order of the preceding and following steps may be interchanged or performed simultaneously, where permissible.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the application.
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Fig. 1 is a device architecture diagram of a device wake-up scheme in a distributed scenario provided in scheme 1, and as shown in fig. 1, a user equipment may include one or more processors (only one is shown in the figure) and a communication device.
The processor may run an operating system of the user equipment, such as Android, iOS, windows os, Liunix, hong meng operating systems, and the like. The processor may run a specific application. In the scheme 1, a processor is configured with a processing module AP, and the processor executes a device wake-up scheme in a distributed scenario by running an application APP of the processing module AP. The communication device is configured with a short-range communication module BT for performing bluetooth low-power communication.
The processing module AP can be divided into several modules by adopting a layered architecture, each module having a clear role and division of labor. The modules communicate with each other through software interfaces. In the scheme 1, the processor runs an Android system, and the Android system is divided into four modules, which are an application module APP, a software architecture module FW, a protocol stack module HAL (HAL for short), and a Kernel module KEL (KEL for short) from top to bottom.
The application program module APP comprises a series of application program units such as setting, sharing, connecting and waking up, and provides a data interface for publishing tasks and subscribing services.
The software architecture module FW provides an application programming interface and a programming architecture for the application unit of the application module APP. The software architecture module FW includes a bluetooth architecture including some predefined short-range communication functions, such as a BLE broadcast function and a BLE scan function, and an architecture manager.
The protocol stack module HAL provides a uniform access interface for different hardware devices. The protocol stack module HAL comprises the bluetooth protocol stack and other protocol services.
The kernel module KEL is a layer between hardware and software. The kernel module at least includes various drivers, such as Universal Asynchronous Receiver Transmitter (UART).
The short-distance communication module BT performs asynchronous data receiving and transmitting transmission with the processing module AP through the UART interface to realize a short-distance communication function. The UART interface is a general serial data bus for asynchronous communication, which may be a bidirectional communication bus that converts data to be transmitted between serial communication and parallel communication. Short-range communications, including at least any of the various implementations of the existing bluetooth standard, including bluetooth low energy, future implementations of the bluetooth standard, and the like.
The short-range communication module BT includes a channel switching module and an internal logic module. The channel switching module carries out asynchronous scanning and sending of data through a UART interface and carries out short-distance data transmission. The internal logic module comprises a plurality of filters, and the filters are used for filtering short-distance communication scanning results and transmitting broadcast parameters meeting requirements in the scanning results to the processing module AP through the channel switching module; or filtering the downlink broadcast parameters of the processing module AP received by the channel switching module, and broadcasting the data meeting the requirements.
In the device architecture shown in fig. 1, a data transmission path is that a data interface is started in an application module APP, the data interface calls a bluetooth architecture, a bluetooth driver of a kernel module KEL is called through a bluetooth protocol of a protocol stack, the bluetooth driver starts a short-distance communication module BT through a UART interface, and the short-distance communication module BT performs BLE broadcasting according to broadcasting parameters and issues BLE communication services; the short-distance communication module BT performs BLE scanning to receive BLE subscription services of other user equipment.
Fig. 2 is a flowchart of waking up a sleeping device through short-range communication in a distributed scenario. According to the EMUI10.1 version, in a distributed scene, the device A and the at least one device B are automatically networked before a service request, and the device A can directly obtain a list of the at least one device B trusted by the same account on line when the service request is carried out. Device a periodically refreshes the list to learn the presence status of online device B in the list.
In fig. 2, the processing module AP1 of the device a with a bright screen executes a start broadcast instruction of the application APP1, and BLE broadcasting is performed through the short-range communication module BT 1; the processing module AP2 of at least one device B scans the broadcast message to the device a through the short-range communication module BT2 during the start scanning instruction process of the application APP2, reports the broadcast message to the processing module AP2, and processes the online scanning result by the application APP 2.
Device a sends a message packet to at least one device B every 5min, and then at least one device B, whether dormant or not, needs to reply to the message indicating presence (proximity) in response, and no response upon timeout indicates absence. In this scheme, if it is necessary for device a to discover device B, device a continues to perform BLE communication broadcast, device B performs BLE scanning, and device B responds and replies to the message broadcast by device a to indicate that device B is online and confirms that device a discovers device B. Or, the user manually starts the device B to always perform BLE communication scanning, and when the device a performs BLE communication broadcasting, the device B scans the broadcast message of the device a, replies the broadcast message, which indicates that the device B is online, and confirms that the device a finds the device B.
The reply device a may be implemented after the short-range communication module BT2 in the sleep state wakes up the processing module AP 2.
According to the scheme, user discovery and connection among user equipment trusted by the same account can be realized, and the short-distance communication module BT carries out short-distance communication according to a short-distance communication task issued by the processing module AP.
The above scheme has at least the disadvantages that the communication task executed by the device B and the subscription service receiving need to be processed and executed by the processing module AP, which causes the processing module AP to be periodically waken up, resulting in a certain increase in power consumption, and the increase in the power consumption of the whole device, and the increase in the peripheral online devices also causes the power consumption of the whole device to be increased doubly.
Fig. 3 is a flowchart of the short-range communication bidirectional broadcast provided by scheme 2. According to the scheme, mutual discovery between the devices is realized by performing bidirectional broadcasting between the device A and the device B. As shown in fig. 3, when device a needs to discover device B, device a initiates a short-range communication broadcast and scans. Device B is always in scan mode. Device B finds the broadcast of device a by scanning and then responds to device a by issuing broadcast information via short-range communication. The broadcast information responded by the device B comprises a local device name, a user nickname, a local telephone number, a security abstract and the like. The device A obtains the broadcast information responded by the device B through short-distance communication scanning, displays the device name, the user nickname and the telephone number of the device B, searches the head portrait of the device B on the local or cloud through the mark of the device B, and displays the head portrait to the user. The device A is connected with the device B through short-distance communication to provide a data path for the subsequent service.
At least one disadvantage in the short-range communication two-way broadcast provided in fig. 3 is that device B does not perceive the occurrence of this condition after device a discovers device B, and thus device B broadcasts all the time, resulting in increased power consumption by device B. If there are more devices around the device that want to discover device B, the power consumption of device B may multiply as the number of devices around increases. If the device a or the device B in this scheme is a sleeping device, the processing module AP also needs to be woken up to achieve the purpose of mutual discovery between the devices, so that the problem of power consumption increase of the processor AP which is periodically woken up exists.
Based on the defects of the discovery mechanisms of the scheme 1 and the scheme 2, which cause large power consumption of the device, one embodiment of the application provides the user equipment, which can drive the short-distance communication device to execute the short-distance communication task through the intelligent sensing device under the condition that the processor is in a sleep state. The device is additionally provided with an intelligent sensing device on the basis of the device architecture provided by the figure 1.
The smart sensor device is a smart sensor hub (Sensorhub) or co-processor for interfacing and processing data from various sensor devices. The smart sensor device may include, but is not limited to, a low-power processing module or a low-power processing circuit such as an Application Processor (Application Processor), a Micro-programmed Control Unit (MCU), and the like. Among them, the smart sensor hub (Sensorhub) is a solution based on a combination of software and hardware on a low power consumption MCU and a lightweight RTOS operating system, and its main function is to connect and process data from various sensor devices.
In the following embodiments of the present application, a SensorHub + short-range communication scheme is used to implement online device discovery, device link establishment information exchange, device state information synchronization, and the like, where the intelligent sensing device may process short-range communication parameters of the downlink of the processor and parse message packets of the uplink of the short-range communication device.
Fig. 4 is a block diagram of an apparatus according to an embodiment of the present application. As shown in fig. 4, the apparatus includes a processor, a smart sensor device, and a short-range communication device; in an embodiment of the present application, a processor is configured with a processing module AP, and the processor executes an application APP of the processing module AP to implement a method described in one or more embodiments below, and instructs the smart sensor apparatus to maintain the short-range communication function in the sleep state before the sleep state.
The smart sensor device is configured with a smart sensor module SH, executes an application program of the smart sensor module SH, implements the method described in one or more embodiments below, keeps the short-distance communication of the device online in a dormant state, and acquires device link establishment information in the same cluster, and synchronizes the device communication state.
The short-range communication apparatus is configured with the short-range communication module BT, and executes the program of the short-range communication module BT to implement the method described in one or more embodiments below, performing short-range communication.
The device provided by the embodiment of the application performs data transmission through the interface I3C between the intelligent sensing module SH and the short-distance communication module BT under the condition that the processor is in a sleep state, so that the short-distance communication function is realized. The I3C interface is an extended internal integrated circuit interface (I3C), and the I3C interface is an extended bidirectional synchronous serial bus including a serial data line (SDA) and a Serial Clock Line (SCL). I3C can support more sensors on the same bus without adding extra logic signals to support interrupt or sleep mode.
In particular, the processing module AP runs an application module, a software architecture module, a protocol stack module and a kernel module.
The application module comprises a series of application units, short-distance communication is carried out on the discovery and on-line maintenance of the equipment in a dormant state, and message data are transmitted between the Android equipment and the IOS equipment under the condition of connecting the Internet. The application unit may include a setting unit, a sharing unit, a connecting unit, a waking unit, and a data interface unit as in the configuration of scheme 1. Wherein, the setting unit sets up the bluetooth communication mode; the sharing unit issues a Bluetooth communication sharing protocol; the connecting unit is connected with the Bluetooth device; the awakening unit awakens the dormant Bluetooth equipment; the data interface unit provides interfaces of application programs such as an application data interface for issuing a Bluetooth task and subscribing service; the basic software and hardware configurations and drivers are provided for this application.
The software architecture module FW also includes a sensor architecture unit 401 and the like. The sensor architecture unit 401 provides an application program oriented to the smart sensor module SH for the application program.
The protocol stack module HAL also comprises a sensor protocol unit 402. The sensor protocol unit 402 provides a uniform access protocol for the smart sensor module SH, and downloads the access protocol to the smart sensor module SH.
The kernel module KEL further comprises a sensor-sharing driving unit 403. The sensor sharing driving unit 403 stores a bluetooth driving program for the intelligent sensing 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 intelligent sensing module SH.
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, and they form a new data path, so that the processing module AP can downlink the bluetooth driver and the short-distance communication parameters to the smart sensor module SH before sleeping, instruct the smart sensor module SH to keep the short-distance communication online during sleeping, and acquire data related to the short-distance communication during sleeping after waking up.
As shown in fig. 4, the smart sensor module SH includes a communication filtering unit 421, a communication analyzing unit 422, and a built-in integrated circuit driver 423. Specifically, the communication filtering unit 421 performs filtering processing on the downlink broadcast parameters, and edits and generates a message packet; the communication analysis unit 422 analyzes the received message packet to obtain the broadcast parameters of the opposite terminal device; the built-in integrated circuit driver 423 runs a bluetooth driver, and performs data transmission of a message packet with the control unit 414 built in the short-range communication module BT through the I3C interface. The control unit 414 provides communication control of the I3C interface for the short-range communication module BT, and performs asynchronous data transmission and reception with the short-range communication module BT, thereby implementing a short-range communication function.
The device shown in fig. 4 differs from the device shown in fig. 1 by the modification of the processing module AP and the addition of the smart sensor module SH. Specifically, before the processing module AP is dormant, the processing module AP sends the bluetooth driver and the short-range communication broadcast parameters to the sensor sharing driver unit 403 in a downlink manner through the sensor architecture unit 401 and the sensor protocol unit 402; during the sleep period of the processing module AP, the smart sensor module SH executes a bluetooth driver and applications related to short-distance communication, such as broadcasting, scanning and synchronization, after the smart sensor module SH reads the broadcast parameters in the sensor sharing driver unit 403, the communication filter unit 421 filters the downlink broadcast parameters, generates a message packet with useful data after filtering, determines the executed applications and services, such as message type, device ID, frequency and timing of communication, etc., according to the service information carried in the message packet, and then invokes the inter-integrated circuit driver 423 to start the I3C interface to transmit the message packet, and transmits the message packet to the short-distance communication module BT.
In some embodiments of the present application, the message scanned by the short-range communication module BT is transmitted upstream in the reverse direction of the downlink transmission path, and it should be noted that, in the state where the processing module AP is dormant, the message scanned by the short-range communication module BT is transmitted to the communication analysis unit 422 through the I3C interface, the analyzed broadcast parameter is filtered by the communication filtering unit 421, and the filtered useful data is stored in the sensor sharing driving unit 403 for the processing module AP to read immediately after waking up.
An embodiment of the present application provides a device discovery method, which is applied to an intelligent sensing apparatus of a first user equipment shown in fig. 4, and the method includes: the intelligent sensing device receives short-distance communication parameters from the processor before the processing module AP is dormant, wherein the short-distance communication parameters comprise scanning parameters; during the sleep period of the processor, the intelligent sensing device instructs the short-distance communication module to scan according to the scanning parameters; acquiring a message packet M1 broadcasted by the second user equipment received by scanning, wherein the message packet M1 at least comprises an identifier of the second user equipment, and the identifier of the second user equipment is the identifier of the second user equipment; and storing the second user equipment identification so that the processor can find the second user equipment according to the identification of the second user equipment after being awakened.
Fig. 5 is a flowchart illustrating a method for discovering a device, in which a hibernating device is discovered by a bright-screen device according to an embodiment of the present application. As shown in fig. 5, the first user equipment receives short-range communication parameters from the application APP1 during the sleep period of the processing module AP1, where the short-range communication parameters include scanning parameters; instructs the short-range communication module BT1 to perform a short-range communication scan according to the scan parameters. In some embodiments, the short-range communication may be BLE communication, the short-range communication parameters may further include broadcast parameters, and the first user equipment may perform the following steps S5011-S5013.
S5011, before the first ue enters the sleep state, the processing module AP1 executes the application APP1, and sends the short-range communication parameters to the smart sensor module SH1 in advance, where the short-range communication parameters include scanning parameters.
S5012, the intelligent sensing module SH1 obtains the scanning parameters, then starts an I3C interface to transmit the scanning task, and the scanning task is transmitted to the short-distance communication module BT 1.
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.
The second user equipment is always in the bright screen state and the processing module AP2 is working. When the second user equipment needs to find out which user equipments are in the surroundings, the application module APP2 is run, starting the broadcast and scanning.
In particular, the second user equipment may perform the following steps S5021-S5023.
S5021, the application APP2 sends the short-range communication parameters including the scanning parameters and the message packet M1 to the processing module AP 2.
S5022, the processing module AP2 downlink-scans the parameter and message packet M1 to the short-range communication module BT2,
s5023, the short-range communication module BT2 performs short-range communication, broadcasting the message package M1. The message bundle M1 may be marked as a first message in which at least an identification of the second user equipment is included.
The first user equipment performs 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.
And executing S5032, analyzing the message packet M1 by the intelligent sensing module SH1, wherein the analyzed result at least comprises the identifier of the second user equipment.
The smart sensor module SH1 saves the identity 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 shared driving unit 403.
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 including at least an identification of the first user equipment and an identification of the second user equipment. Message packet M2 is denoted as the second message, message packet M2 is a reply to discovery message packet M1.
Specifically, the first user equipment performs steps S5041-S5042, which may be performed as follows.
S5041, the smart sensor module SH1 reads broadcast parameters from the sensor sharing driver unit 403, where the broadcast parameters at least include the identifier of the first user equipment and the identifier of the second user equipment, and the communication filter unit 421 edits the broadcast parameters to generate a message packet M2. Wherein the identity of the first user equipment is used to indicate the source of the message bundle M2; the identity of the second user equipment is used to indicate the reply destination for the message package M2. The smart sensor module SH1 activates the I3C interface to instruct the short-range communication module BT1 to broadcast the message packet M2.
S5042, the short-range communication module BT1 broadcasts the message packet M2.
The second user equipment performs S505, and the short-range communication module BT2 reports the scanned message packet M2 to the processing module AP 2.
After the dormant first ue processor is awakened, the processing module AP1 immediately executes the application APP1 to read the identifier of the online second ue in the sensor sharing driving unit 403, and pushes the subscription data and the service to the second ue.
In some embodiments, there are multiple online devices around the first user equipment in the dormant state, and the smart sensor module SH1 parses multiple message packets broadcast by the multiple online devices respectively, and stores the device identifier in each parsing result to obtain a list of multiple online device identifiers. The processor executes the application program APP1 first time after being awakened to obtain a list of the surrounding online device identifications, and pushes services or data one by one according to the device identifications in the list.
By applying the device discovery method provided by the embodiment of the application, the first user equipment can keep an online state through the intelligent sensing module SH1 under the condition that the processing module AP1 is dormant, short-distance communication broadcasting and/or scanning are/is executed, so that the second user equipment around is discovered, the link establishment information of the second user equipment is acquired, and the power consumption of the device is effectively reduced.
By applying the device discovery method provided by the embodiment of the application, the first user equipment does not need to wake up the processing module AP1 in the dormant state, the online state is kept through the intelligent sensing module SH1, mutual discovery among the user equipment is realized, the discovery and link establishment speed among the user equipment can be improved, and the use experience of a user is optimized.
By applying the device discovery method provided by one embodiment of the application, the power consumption of the user equipment which is kept in the online state in the dormant state is greatly reduced, and the power consumption of the whole machine caused by the power consumption is also reduced.
One embodiment of the present application provides a device discovery method for a first user device that is dormant to actively discover other second user devices that are bright, where the smart sensor module SH1 further performs, during the dormant period of the processing module AP 1: receiving short-range communication parameters from the APP1, the short-range communication parameters including broadcast parameters; instructing the short-range communication module BT1 to broadcast the message bundle M3 according to the broadcast parameters before acquiring the message bundle M1 broadcast by the second user equipment received by the scanning; the message bundle M3 comprises at least a first user equipment identity; after receiving the message packet M3, the second user equipment replies to the first user equipment with a message packet M1 indicating that it is online.
Fig. 6 is a flowchart of a method for discovering a device according to an embodiment of the present application, where the sleeping device actively discovers another device, and a specific flowchart is shown in fig. 6. Before the first ue enters the sleep state, the processing module AP1 executes the application APP1 to issue the scanning parameters and executes steps S6011-S6013.
S6011, the processing module AP1 issues the short-distance communication broadcast parameters to the intelligent sensing module SH1, and instructs the intelligent sensing module SH1 to start broadcasting and scanning.
S6012, the intelligent sensing module SH1 sends the edited message packet M3 to the short-distance communication module BT1 according to the broadcast parameters, and instructs the short-distance communication module BT to start BLE broadcasting and scanning. The message package M3 may be denoted as a third message for discovering at least one second user equipment that is online in the surroundings.
S6013, the short-range communication module BT broadcasts the message bundle M3.
Specifically, the smart sensor module SH1 reads short-range communication broadcast parameters from the sensor sharing driver unit 403, where the broadcast parameters at least include the identifier of the first user equipment, and the identifier of the first user equipment is the identifier of the first user equipment. The communication filtering unit 421 performs editing processing on the broadcast parameters, generates a message packet M3, then activates an I3C interface to transmit the message packet M3 to the short-distance communication module BT1, and activates a BLE communication broadcast message packet M3.
The second user equipment is always in the bright state and the application APP2 of the processing module AP2 starts scanning and performs steps S6021-S6023.
S6021, the short-range communication module BT2 scans the received 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 APP 2.
S6022, the application APP2 issues 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.
S6023, the short-range communication module BT2 broadcasts the message package M1. The target device information carried in the message packet M1 includes the second user device identifier and the first user device identifier. Message bundle M1 is used to reply to message bundle M3.
The short-range communication module BT1 of the first user equipment scans the obtained message packet M1, and the smart sensor module SH1 performs S6031-S6032.
S6031, the message packet M1 is parsed, and the parsing result at least includes the second ue identifier and the first ue identifier. The smart sensor module SH1 determines that the target device of the message packet M1 is the first user device according to the parsing result, and sets the identifier of the second user device broadcasting the message packet M1 to be online.
And S6032, storing the second user equipment identification.
After receiving the message packet M1, the smart sensor module SH1 generates a message packet M4 according to the broadcast parameters, where the broadcast parameters of the message packet M4 at least include a second ue id, which is used to instruct the second device to stop broadcasting the message packet M1 to the first ue. The first user equipment performs S6041-S6042.
S6041, the smart sensor module SH1 instructs the short-range communication module BT1 to broadcast the message packet M4, marking the message packet M4 as the fourth message.
S6042, the short-range communication module BT1 performs BLE broadcast message packet M4.
The second ue receiving the message packet M4 executes S605, reports the scanning result, and the processor AP2 responds to the message packet M4 to stop broadcasting the message packet M1 to the first ue.
The first user equipment executes S606, and the intelligent sensing module SH1 reports the second user equipment identifier to the application APP 1.
After a certain time, if the processing module AP1 is woken up, the processor runs the application APP1, and finds the second user equipment according to the reported second user equipment identifier.
In the embodiment shown in fig. 5, the first user equipment can respond to the broadcast detection of the second user equipment which is bright and is on line during the dormancy by performing short-distance communication broadcast and/or scanning through the intelligent sensing module SH1 during the dormancy.
In the embodiment shown in fig. 6, the first user equipment can actively detect the user equipment online in the surrounding in the sleep state by performing short-range communication broadcasting and/or scanning through the smart sensor module SH1 during the sleep. The intelligent sensing module SH1 performs short-distance communication broadcast and/or scanning message packet M4, and the device receiving the message packet M4 indicates that the device is found by the opposite end, so that the reply to the detection can be stopped, and the power consumption is further reduced. The message package M4 may also be applied to a device in the bright screen state in the embodiment shown in fig. 5.
The device discovery method provided by the embodiment of the application can sink the Bluetooth driving program, the short-distance communication Stack and the service to the intelligent sensing module SH, realize the quick discovery and the quick handshake of the online device under the condition that the processing module AP is dormant, and keep the online device in a linear state in the dormant period. Under the condition that the processor is dormant, the intelligent sensing device indicates the short-distance communication device to execute a short-distance communication task, so that other online user equipment can be found, and the power consumption of the equipment can be effectively reduced. The user equipment does not need to wake up the processor in the dormant state to realize mutual discovery between the equipment. Furthermore, in one or more of the following embodiments, a speed increase may be obtained when a user uses a user device, thereby optimizing the user experience.
Fig. 7(a) is a schematic diagram of a device discovery method applied to a mobile phone a and a television TV according to an embodiment of the present application. As shown in fig. 7(a), taking a first user equipment with a mobile phone a as a dormant state and taking a television TV with bluetooth as a second user equipment as an example, there is a mobile phone a in the dormant state around the television TV, wherein the mobile phone a has the architecture and functions as shown in fig. 4, and comprises a processing module AP, a smart sensor module SH and a short-range communication module BT. When the processing module AP of the mobile phone a is in the sleep state, the short-distance communication module BT and the smart sensor module SH of the mobile phone a are always in the running state. When a television TV needs to find surrounding devices which can perform short-distance communication, the method can be realized by the following steps:
s701, the television TV initiates online detection, broadcasts a message packet M1, and inquires whether the mobile phone A is around. The broadcast parameters carried by the message packet M1 at least include a local device ID, a timing duration and a broadcast time. The broadcast implementation thereof refers to S6021-S6023, which are not described in detail here.
S702, the short-range communication module BT of the handset a in the dormant state reports the received message packet M1 to the smart sensor module SH. After receiving the message packet M1, the intelligent sensing module SH performs online response; the message packet M1 is replied to by broadcasting a message packet M2 through short-range communication, wherein the broadcast parameters of the message packet M2 include at least the local device ID, the target device 1. Wherein the target device 1 is identified as a television TV.
S703, the intelligent sensing module SH sends the message packet M2 to the short-distance communication module BT; and storing the TV identification so that after the processor is awakened, the processor runs the processing module AP to find the TV according to the TV identification.
S704, the short-range communication module BT starts short-range communication to broadcast the heartbeat reply packet M2.
In some embodiments, an aggregated processing manner may also be adopted to broadcast a message packet including two or more ue identities, and reply to online query requests of two or more ues at the same time. Specifically, the smart sensor module SH acquires at least one message packet M5 received through scanning before instructing the short-range communication device to broadcast the second message according to the broadcast parameters, the at least one message packet M5 being broadcast by at least one third user equipment, respectively; each message bundle M5 includes an identification 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 with a message packet M2, and the identifier of each third user device in the message packet M2 is the target device for the reply.
Fig. 7(b) is a schematic diagram of a device discovery method applied to a mobile phone a and multiple television TVs according to an embodiment of the present application. As shown in fig. 7(b), at least one third user device exists, the third user device takes the second TV2 with bluetooth as an example, and the second TV2 with bluetooth needs to find surrounding devices capable of short-distance communication, which is implemented by the following steps:
s701', two TV1 and TV2 with bluetooth respectively initiate online inquiry, wherein the TV1 broadcasts a message package M1 through short-range communication to inquire whether the handset a is around; the TV2 broadcasts a message packet M5 via short-range communication, the message packet M5 including at least one second TV identification. Message bundle M5 is denoted as the fifth message.
S702', the short-distance communication module BT of the mobile phone A in the dormant state reports the received message packet M1 and the message packet M5 to the intelligent sensing module SH respectively, and the intelligent sensing module SH analyzes the message packet M1 and the message packet M5 respectively and stores the identifier of the TV1 and the identifier of the TV 2.
S703', for the message bundle M1 and the message bundle M5, the smart sensor module SH uses an aggregation processing method to edit a message bundle M2, and downlink the message bundle M2 to the short-range communication module BT. The message packet M2 carries both the TV1 id and the TV2 id.
S704', the short-range communication module BT broadcasts the message package M2 while responding to the TV1 and the TV 2.
Specifically, the processing mode of the aggregated message packet M2 is to read the broadcast parameters parsed by the message packet M1 and the message packet M5 from the sensor shared driving unit 403, where the broadcast parameters include the identifier of the TV1 and the identifier of the TV2, and the communication filtering unit 421 performs aggregation processing on the identifier of the TV1 and the identifier of the TV2 to generate a message packet M2. The broadcast parameters of the message bundle M2 include at least a message type, a local device ID, target device 1, and target device 2. Where target device 1 and target device 2 are an identification of television TV1 and an identification of television TV2, respectively. The smart sensor module SH feeds a message packet M2 into the short-range communication module BT, which broadcasts the message packet M2 in response to the TV1 and the TV 2.
For the online query requests of more than two user equipments, under the condition that the processor of the handset a is dormant, the same aggregation processing mode can be adopted to reply to more than two user equipments simultaneously through one message packet M2.
The method for discovering the dormant device provided by the embodiment of fig. 7(b) is applied to discover the dormant device, and in the dormant state of the mobile phone a, the intelligent sensing module SH broadcasts a message including two or more user device identifications in a polymerization processing mode, and replies online query requests of the two or more user devices simultaneously, so that the user devices can acquire lists of the online user devices in each accessible range and obtain link establishment information during the dormant period, and discover and maintain the online state with a plurality of online user devices.
In the process of discovering the dormant device and maintaining the online state, the short-distance communication time of different user equipment in a bright screen state around one dormant device is not synchronous, and the disorder of the time axis causes the time for the user equipment to discover the dormant device by broadcasting to increase irregularly, so that the power consumption is increased. In the process of discovering and maintaining the online state of the dormant device by using short-distance communication broadcast, all user equipment in a bright screen state around the dormant device needs to appoint the frequency and the opportunity of short-distance communication in a networking cluster, and broadcast and scanning tasks are executed in a unified short-distance communication time interval. The short-range communication time interval is a communication/synchronization window.
Fig. 8 is a schematic diagram of a task timing window divided by short-range communication performed by a user equipment. As shown in fig. 8, the task of short-range communication of the user equipment is divided into a communication/synchronization window and a discovery window in time series. The communication/synchronization window is used for the user equipment with the same pace in the cluster to perform broadcasting and scanning in the time interval, perform short-distance communication handshake and complete the task of mutual discovery. And setting the time interval from the end of the communication/synchronization window to the start of the next communication/synchronization window as a discovery window. The discovery window is used for randomly broadcasting the inquiry information and discovering the user equipment with inconsistent outside cluster pace.
For different user equipments in the bright screen state, respective communication/synchronization windows are aligned to a uniform time interval, and it is also necessary to consider that the sensitivity of power consumption, broadcast randomness and address of the different user equipments are different, and these factors may affect the frequency and timing of short-distance communication. For example, when inquiring surrounding user equipment, a television TV is often connected with an external power supply, the electric quantity of the television TV can be taken at any time, the requirement on power consumption sensitivity is low, and the short-distance communication frequency of the television TV can be set to be scanned/broadcast once every 1 minute; the battery power of the mobile phone is limited, and the requirement on power consumption sensitivity is higher, so that the broadcasting frequency of the short-distance communication broadcast of the mobile phone is lower, and the short-distance communication broadcast can be set to be scanned/broadcast once every 5 minutes; PAD sensitivity to power consumption requires a power consumption intermediate between that of a mobile phone and a television TV, which can be scanned/broadcast every 3 minutes. Meanwhile, the address of the user equipment is related to the distance of the short-distance communication, and the power consumption, frequency and opportunity of the short-distance communication are also influenced.
In view of the above-mentioned factors affecting the frequency and timing of short-range communication, in one embodiment of the present application, a value of a device weight is set for each user equipment, and the device weight DW is defined as follows:
DW=dT*212+Pcons*29+RF*24+MAC[1]*22+MAC[0];
dT is the value of the set user equipment model, for example, dT of the handset is 1, dT of the tv is 2, dT of the PAD is 3, and so on. Pcons is a value of power consumption sensitivity, and is related to the user equipment model, for example, Pcons for a handset is 0.7, Pcons for a television is 0.2, Pcons for a PAD is 0.4, and so on. RF is a set random factor. MAC is the device address, 6 bits of data, MAC [0] is the first digit of the device address, MAC [1] is the second digit of the device address.
In order to reduce power consumption during querying of the user equipment in the bright screen state, time intervals of communication/synchronization windows of a plurality of bright screen user equipments are aligned, and a broadcast weight may be set for each user equipment, wherein a value of the broadcast weight is default to a value of a device weight of the local equipment. Within an accessible range, each user equipment broadcasts the maximum value of the broadcast weights of all the surrounding user equipment known by the user equipment along with the message packet M6, and after receiving the message packet M6, the user equipment in the bright screen state adjusts the frequency and the opportunity of broadcasting/scanning along with the equipment with the maximum broadcast weight, so that the time intervals of the communication/synchronization window and the communication/synchronization window of the equipment with the maximum broadcast weight are aligned, short-distance communication is carried out in the aligned communication/synchronization window, synchronous communication is achieved, the time for discovering each other with the sleeping equipment is shortened, and the power consumption is reduced. The message packet M6 may be denoted as a sixth message for agreeing on the frequency and timing of short-range communication.
Based on the above concept, an embodiment of the present application provides a device discovery method, which synchronizes the frequency and the timing of sending a first message by a plurality of bright-screen devices after the plurality of bright-screen devices discover a sleeping device and other online user devices within the reach.
Taking two bright screen devices as an example, on the basis of the foregoing embodiment, during the processing module AP is in a sleep state, the first user equipment receives the short-distance communication parameters from the APP, and further includes a second broadcast weight, a second broadcast time, and a second timing duration, where the second broadcast time and the second timing duration correspond to the second broadcast weight; (ii) a The first message further comprises a first broadcast weight, a first broadcast time and a first timing duration; wherein the first broadcast time and the first timing length correspond to a first broadcast weight. The smart sensor module SH1 also performs: acquiring a fifth message broadcast by at least one third user equipment received through scanning; the fifth message further comprises 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 a 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; instructing the short-range communication device to broadcast a sixth message according to the short-range communication broadcast parameters within a time range in which the first broadcast time is a first timing length, in a case where the maximum broadcast weight is the first broadcast weight; instructing the short-range communication device to broadcast a sixth message according to the short-range communication broadcast parameter within a time range in which the third broadcast time is a third timing duration, in a case where the maximum broadcast weight is the third broadcast weight; the sixth message comprises the maximum broadcast weight, the synchronous broadcast time and the synchronous timing duration; wherein the synchronized broadcast time and the same timing duration are the values of the broadcast time and the timing duration corresponding to the maximum broadcast weight; the sixth message is used for spreading the maximum broadcast weight, so that the broadcast time and the timing duration of the short-distance communication of the three user equipment are consistent, and the frequency and the opportunity of the synchronous short-distance communication are realized. This is further illustrated by fig. 9.
Fig. 9 is a schematic diagram illustrating mutual discovery and synchronous communication between a plurality of bright-screen devices and a hibernating device in a device discovery method according to an embodiment of the present application. As shown in fig. 9, the first user equipment is in a dormant state, and the second user equipment and the third user equipment are in a bright screen state, where the second user equipment and the first user equipment can discover each other through short-distance communication, the third user equipment and the first user equipment can discover each other through short-distance communication, and the second user equipment and the third user equipment cannot discover each other directly through short-distance communication. The first user equipment, the second user equipment and the at least one third user equipment realize mutual discovery and synchronous communication by performing the following steps.
S901, the second user equipment with bright screen actively initiates broadcasting and scanning, a message packet M1 is broadcasted, and the message packet M1 at least comprises second user equipment identification and first broadcast weight W1First broadcast time NT1And a first timing time duration T1. Wherein the first broadcast time and the first timing length correspond to a first broadcast weight.
S902, the dormant first user equipment initiates short-distance communication scanning to receive the message packet M1, and simultaneously replies a message packet M2 to the second user equipment. The message packet M2 comprises at least a first user equipment identity, a device weight DW, a second broadcast weight W2A second broadcasting time NT2A second timing length T2And a second user equipment identity; second broadcast weight W2Default to the value of the device weight DW of the first user equipment.
When the dormant first user equipment scans and receives the message packet M1, the message packet M1 is analyzed, and the analysis result is stored. In some possible embodiments, when the dormant first ue scans for the received message packet M1, it parses and stores the values of the broadcast parameters carried in the message packet M1, where the parsing result at least includes the second ue id, and the first broadcast weight W1First timing time length T1And a first broadcasting time NT1
S903, the third user equipment in the bright screen state actively initiates broadcasting and scanning, a broadcast message packet M5 and a message packet M5 are marked as a fifth message, and the fifth message comprises a third user equipment identifier, a third broadcast weight, a third broadcast time and a third timing duration; wherein the third user equipment identity is an identity of the third user equipment, and the third broadcast time and the third timing duration correspond to a third broadcast weight.
S904, the first user equipment receives the message packet M5, analyzes the message packet M5, and obtains and stores the third user equipment identifier and the third broadcast weight W of the third user equipment3A third timing duration T3And a third broadcasting time NT3(ii) a Compare the first broadcast weight W1Second broadcast weight W2And a received third broadcast weight W3Updating the maximum broadcast weight, timing time and broadcast time received by the local device.
The maximum broadcast weight received at the local device is W1In case of (2), the short-range communication module BT is instructed1At a first broadcast time NT1At a first time period T1Broadcast the message package M6. The sixth message comprises the maximum broadcast weight W, the maximum broadcast time T and the maximum timing duration NT; where the broadcast time T and the timing duration NT are the values of the broadcast time and the timing duration of the device corresponding to the maximum broadcast weight W. When W is equal to W1,T=T1,NT=NT1
The maximum broadcast weight received at the local device is W3In case of (2), the short-range communication module BT is instructed1At a third broadcast time NT3At the third timing period T3Broadcast the message package M6. At this time, the maximum broadcast weight W in the sixth message is W3Broadcast time T ═ T3And a timing duration NT N T3
S905, the third user equipment executes the scanning to receive the message packet M6, analyzes the message packet M6, and obtains the broadcast weight W, the broadcast time T and the timing duration NT.
Comparing local broadcast weights W3And a broadcast weight W, the local broadcast weight W3If the broadcast weight W is less than the broadcast weight W, the third user equipment broadcasts the message packet M5 within the time range of the timing duration T at the broadcast time NT; local broadcast weight W3If the broadcast weight W is greater than or equal to the broadcast weight W, the third UE broadcasts at the broadcast time NT according to the original broadcast parameters3Time of day at a timing duration T3Broadcast the message package M5.
S906, the second user equipment scans the received message packet M2 and compares the local broadcast weight W1And broadcast weight W obtained by parsing the message2Local broadcast weight W1Less than the broadcast weight W2In case of (2), the second user equipment is at the broadcast time NT2Time of day at a timing duration T2The next message packet M1 is broadcast. If the broadcast weight W1Greater than or equal to the broadcast weight W2In this case, the second ue broadcasts the message packet M1 within the time range of the timing duration T at the broadcast time NT according to the original broadcast parameters.
S907, after the dormant first ue scans and receives the message bundle M1 and the message bundle M5 in the same time period, it broadcasts the same message bundle M6 to the second ue and the third ue, where the message bundle M6 may include the second ue id and the third ue id, where the second ue id and the third ue id are ids of target devices.
Through the above steps S901-S907, the timing and frequency of the second ue broadcasting message bundle M1 and the third ue broadcasting message bundle M5 can be synchronized, and the second ue and the third ue can synchronously scan and receive the message bundle M6 replied by the first ue.
The above embodiment is also applicable to a plurality of third ues in a bright screen state simultaneously querying the first dormant ue, where the first dormant ue broadcasts the same message packet M6 to each ue, and the message packet M6 aggregates the ue ids, and each ue id is an id of each target device broadcasting the reply.
Specifically, the first ue scans different message packets M1 sent by n-1 ues, the communication analysis unit 422 respectively parses each message packet M1, obtains the identifier, broadcast weight, timing duration, and broadcast time of each device carried in each message packet M1, processes the identifier, broadcast weight, timing duration, and broadcast time of each ue obtained by parsing each message packet M1, and sends the processed identifier, broadcast weight, timing duration, and broadcast time to the sensor sharing driver unit 403 for storage, the communication filter unit 421 determines the maximum broadcast weight for the n broadcast weights stored in the sensor sharing driver unit 403, edits the corresponding message packet M6 according to the maximum broadcast weight, the maximum broadcast weight W in the message packet M6 is the maximum 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 comprises an identification of n-1 target devices.
The message packet M6 is broadcasted through the short-distance communication module, so that the third user equipment with the broadcast weight less than the maximum broadcast weight can know the timing duration and the broadcast time of the user equipment with the maximum broadcast weight, and the third user equipment aligns the broadcast timing duration and the broadcast time with the timing duration and the broadcast time corresponding to the maximum broadcast weight, thereby achieving the purpose of synchronously broadcasting and scanning a plurality of third user equipment in a bright screen state. The network of a plurality of synchronized broadcast and scanned third user equipments is a cluster.
As shown in fig. 9, in a cluster, if the first dormant ue finds one of the ues is disconnected, the maximum broadcast weight remains in the sensor sharing driver unit 403, and the maximum broadcast weight is not modified due to the offline of the ue, and the synchronization status of each other device in the cluster does not change.
Through the embodiment, the bright second user equipment and the third user equipment can mutually discover each other through the dormant first user equipment and can mutually keep short-distance communication with the dormant first user equipment. After the first user equipment is awakened, the online user equipment list can be acquired at the first time, and the short-distance communication efficiency is improved; a message packet M6 broadcasted by the first user equipment can simultaneously respond to short-distance communication requests of a plurality of bright-screen devices, so as to achieve the purposes of reducing power consumption and improving short-distance communication efficiency; the first user equipment broadcasts the message packet M6 to perform maximum broadcast weight propagation and normalization, and synchronizes the broadcast frequency and opportunity of multiple bright-screen devices, so as to quickly discover the online user equipment and reduce power consumption; after the second user equipment or the third user equipment is disconnected, the maximum broadcast weight is still reserved, and the communication states of other user equipment in the cluster can be kept synchronous and orderly.
One possible implementation manner of the synchronous broadcast and scanning of the user equipments in a cluster is to align the shared maximum broadcast weight of each bright-screen online user equipment by using the communication duration and the communication time agreed by the timing duration and the broadcast time of the message packet M6 on the basis of the scheme provided by the above embodiment. The communication/synchronization window is a time interval with the starting time being the broadcast time and the duration being the timing duration. The communication/synchronization windows of all devices in a cluster are aligned to different degrees based on the communication/synchronization window communication window of the device with the maximum broadcast weight, and each online user device synchronously broadcasts and scans in the aligned communication windows. The alignment procedure of the communication/synchronization window communication windows of the user equipments in the same Cluster (Cluster) may adopt all or part of the flow of the above embodiments S901-S907.
Fig. 10 is a diagram of an effect of aligning a communication/synchronization window in a user equipment discovery method according to an embodiment of the present application. As shown in fig. 10, the mobile phone and the television TV have discovered each other; the communication/synchronization window of the mobile phone and the communication/synchronization window of the television TV are aligned, and the mobile phone and the television TV perform short-distance communication and information interaction in the aligned communication/synchronization windows.
Fig. 11 is a schematic diagram illustrating that two devices in different synchronization in a device discovery method according to an embodiment of the present application quickly discover in a discovery window.
As shown in fig. 11, in the initial stage of the fourth ue starting, the first ue in the dormant state broadcasts the message packet M1 outside the communication/synchronization window of the fourth ue, and the first ue receives the message packet M1' broadcasted by the fourth ue outside the communication/synchronization window, and neither the first ue nor the fourth ue obtains a reply in the communication window.
In the time range of the discovery window (Idle _ Interval), i.e. the time Interval outside the communication/synchronization window of the first user equipment and the communication/synchronization window of the fourth user equipment, the first user equipment instructs the short-range communication module to randomly broadcast the message packet M7 according to the short-range communication broadcast parameters, and detects at least one fourth user equipment outside the query Cluster (Cluster) and outside the local communication/synchronization window time range. The first user equipment and the fourth user equipment respectively execute the following steps to realize the first mutual discovery:
s1101, the first ue broadcasts a message packet M7 in its discovery window, where the message packet M7 may be denoted as a seventh message, and the seventh message at least includes the first ue id, the broadcast weight W, the timing duration T, and the broadcast time NT. The broadcast weight W is the maximum value of the broadcast weights of the user equipments in the cluster where the first user equipment is located, and the timing duration and the broadcast time correspond to the maximum broadcast weight.
S1102, the fourth user equipment broadcasts a message packet M7 ', the message packet M7' includes at least the equipment ID of the fourth user equipment4Broadcast weight W4Timing duration T4And broadcast time NT4
After the discovery window is collided for multiple times, the short-distance communication interaction between the first user equipment and the fourth user equipment is successful. S1103-S1104 are performed.
S1103, the first UE scans and receives the M7 'message packet broadcasted by the fourth UE, parses the M7' message packet to obtain the ID and broadcast weight W of the fourth UE in the discovery window4Timing duration T4And broadcast time NT4Wherein the fourth user equipment identity is an identity of the fourth user equipment. By comparing broadcast weights W4And a value of the broadcast weight W, the communication/synchronization window of the first user equipment being aligned with reference to the communication/synchronization window of the device having the largest broadcast weight with the larger value as the largest broadcast weight.
S1104, the fourth ue receives the message packet M7 broadcasted by the first ue; the message packet M7 is analyzed to obtain the equipment identification ID of the first user equipment1Broadcast weight W2Timing duration T2And broadcast time NT2. By comparing broadcast weights W4And W2The communication/synchronization window of the fourth user equipment is aligned with respect to the communication/synchronization window of the equipment having the largest broadcast weight, with the larger value being the largest weight.
Wherein, the communication/synchronization window of the first user equipment is aligned with reference to the communication/synchronization window of the device with the largest broadcast weight, or the communication/synchronization window of the fourth user equipment is aligned with reference to the communication/synchronization window of the device with the largest broadcast weight, and the specific steps may refer to the method of S904-S907, which is not described herein again.
S1105, in the aligned communication/synchronization window, the first user equipment broadcasts the message packet M1, then receives the message packet M2 replied by the fourth user equipment, the fourth user equipment joins the cluster where the first user equipment is, thus realizing that the user equipment in the bright screen state within the reach joins the cluster quickly to realize the synchronization of short-distance communication.
As shown in fig. 11, within the discovery window, a plurality of random windows are required, and the message packet M7 including key information is broadcast in the random windows, thereby increasing the speed of first discovery.
After several collision adjustments, the communication/synchronization windows of the first and fourth user equipments are aligned. The user equipment which is not in the same cluster realizes mutual discovery, and after the communication/synchronization window of each user equipment realizes synchronization, each user equipment can work at the same time, so that the maximum efficiency of keeping the user equipment in an online state is achieved.
In any of the above embodiments, message packet M1 and message packet M3 may be heartbeat probe packets, message packets M2, M5, and M6 may be heartbeat reply packets, message packet M7 may be quick discovery packets, and message packet M4 may be end packets.
Specifically, the heartbeat detection packet is a detection message broadcast by a device in a bright screen state and a sleep state, the broadcast parameters of the heartbeat detection packet include a message type, a sequence number, a local device, a broadcast weight, a local weight, a timing duration, and a broadcast time, and a specific message format is shown in fig. 12 (a).
The heartbeat reply packet is a reply message broadcasted by the user equipment which scans the heartbeat detection packet, and the broadcast parameters of the heartbeat reply packet comprise a message type, a serial number, a maximum broadcast weight, local equipment, a timing time and a broadcast time, and the target equipment 1-target equipment n. The specific message format is shown in fig. 12 (b).
In some embodiments, through information interaction of the heartbeat detection packet and the heartbeat reply packet, the corresponding user equipment can synchronize the frequency and the opportunity of short-distance communication.
The fast discovery packet is detection information broadcasted by the user equipment at random time outside a communication/synchronization window, and can fast discover other user equipment which needs to be added into the cluster and has inconsistent cadence; the broadcast parameters of the fast discovery packet include message type, sequence number, local device, broadcast weight, timing duration time, and broadcast time. The specific message format is shown in fig. 12 (c).
The end packet is a reply message broadcasted by the user equipment which scans the heartbeat reply packet, indicates that the heartbeat reply packet of the user equipment at the opposite end has been received, and can stop replying the broadcast of the equipment. The message parameters of the end packet at least comprise one or a combination of a message type, a sequence number, the local device and the target device 1-the target device n. The specific message format is shown in fig. 12 (d).
Wherein, the main broadcast parameters in the message packet are defined as follows:
the message type is the type identification of the message packet: for example, the value of the message type is 1, and the message packet is a heartbeat probe packet; the value of the message type is 2, and the message packet is a heartbeat reply packet; the value of the message type is 3, and the message packet is a quick discovery packet; the type of the message packet may be determined based on the value of the message type.
The sequence number is the message packet sequencing identifier of the current broadcast.
The local device is an identification of the local device.
The broadcast weight defaults to a device weight value of the local device, and if a value greater than the device weight of the local device is detected, the broadcast weight value is the greater device weight value.
The device weight is a value of a weight preset by the local device.
The maximum broadcast weight is the value with the maximum broadcast weight in the message packet of the surrounding online devices scanned by the local device.
The timing duration is a time interval set by a communication/synchronization window of the local device.
The broadcast time is the set time of the next broadcast.
The target device is the identifier of the target device broadcasting the heartbeat reply packet, the identifiers of the target devices are aggregated into a target device list, the target device identifier list comprises the identifier of the target device broadcasting the heartbeat reply packet, the device scanning the heartbeat reply packet can check whether the identifier of the device is in the target list, and if the identifier is in the target list, the condition that the heartbeat reply packet replies the device is shown.
In a second aspect, the present application further provides a device discovery apparatus, referring back to fig. 4, including a communication filtering unit, a communication analyzing unit, and a built-in integrated circuit driving unit; the communication filtering unit is used for receiving short-distance communication parameters from the processor before the processor is in sleep, wherein the short-distance communication parameters comprise scanning parameters; the built-in integrated circuit driving unit is used for indicating the short-distance communication device to scan according to the scanning parameters during the sleep period of the processor; the communication analysis unit is used for acquiring a first message broadcast by the second user equipment received by scanning, wherein the first message at least comprises a second user equipment identifier; and storing the second user equipment identifier so that the APP finds the second user equipment according to the second user equipment identifier after the processor is awakened.
The implementation manner and the beneficial effects of the functions or the uses of each module included in the discovery apparatus of the device can be referred to in each embodiment of the discovery method of the device, and thus, the description is omitted when describing the intelligent sensing apparatus of the device.
In a third aspect, the present application also provides an intelligent sensing apparatus, as shown in fig. 13(a), an intelligent sensing apparatus 1300 includes a data processor 1301 and a second memory 1302; the second memory 1302 may be the sensor sharing driving unit 403, the data processor 1301 is configured to execute a computer executable instruction stored in the second memory, and the data processor 1301 executes the computer executable instruction to perform the device discovery method according to any of the above embodiments, so as to keep the first user equipment on-line in short-distance communication in a sleep state.
The present application further provides a processing device accordingly, as shown in fig. 13(b), 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, and the processor 1311 executes the computer executable instructions to perform the device discovery method according to any one of the above embodiments, issues short-range communication parameters before a sleep state, and keeps the short-range communication online during the sleep state.
In a fourth aspect, the present application provides a user equipment capable of maintaining short-range communication in a sleep state, as shown in fig. 14, the user equipment comprising a processing device 1310, a smart sensor apparatus 1300, and a short-range communication apparatus 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, and the processor 1311 executes the computer executable instructions to perform the device discovery method according to any one of the above embodiments, issues short-range communication parameters before a sleep state during which the short-range communication device remains on-line. The smart sensor apparatus 1300 includes a data processor 1301 and a second memory 1302; the second memory 1302 may be the sensor sharing driving unit 403, the data processor 1301 is configured to execute the computer executable instructions stored in the second memory, and the data processor 1301 executes the computer executable instructions to perform the apparatus discovery method according to any of the above embodiments, so as to keep the short-range communication device on-line in the sleep state.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments illustrated herein, and that various obvious changes, rearrangements and substitutions may be made therein by those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application.

Claims (17)

1. A device discovery method is applied to an intelligent sensing device in first user equipment, wherein a processor and a short-distance communication device are also arranged in the first user equipment, and the method comprises the following steps:
receiving short-range communication parameters from the processor before the processor is dormant, the short-range communication parameters including scanning parameters;
during the sleep period of the processor, instructing the short-distance communication device to scan according to the scanning parameters; acquiring a first message received by scanning, wherein the first message is broadcasted by second user equipment and at least comprises a second user equipment identifier, and the second user equipment identifier is the identifier of the second user equipment; and storing 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.
2. The method of claim 1, wherein the short-range communication parameters comprise broadcast parameters; the method further comprises the following steps:
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 comprises at least the first user equipment identity and the second user equipment identity; the first user equipment identity is an identity of the first user equipment.
3. The method of claim 1, wherein the short-range communication parameters comprise broadcast parameters; the method further comprises the following steps:
instructing the short-range communication device to broadcast a third message according to the broadcast parameters before acquiring the first message received by scanning; the third message at least comprises the first user equipment identity, wherein the first user equipment identity is the identity of the first user equipment;
the first message is a reply to the third message.
4. The method of claim 3, further comprising:
after acquiring the first message received by scanning, instructing the short-distance communication device to broadcast a fourth message according to the broadcast parameters; the fourth message is used for indicating the second user equipment to stop broadcasting the first message; the fourth message comprises at least the first user equipment identity and the second user equipment identity.
5. The method of claim 2, further comprising:
acquiring a fifth message received by scanning before instructing the short-range communication device to broadcast the second message according to the broadcast parameters, the fifth message being broadcast by the at least one third user equipment;
the fifth message comprises at least one third user equipment identity, wherein the at least one third user equipment identity is an identity of the at least one third user equipment;
the second message is a reply to the first message and a fifth message;
the second message further comprises the at least one third user equipment identity.
6. The method of claim 1, wherein the short-range communication parameters comprise broadcast parameters; the broadcast parameters further comprise 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 a second broadcast weight;
the first message further comprises 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 a first broadcast weight;
the method further comprises the following steps:
acquiring a fifth message broadcast by at least one third user equipment received through scanning;
the fifth message comprises 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 a third broadcast time and a 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;
according to the broadcast parameters, indicating the short-distance communication device to broadcast a sixth message in a time interval of a broadcast time corresponding to the maximum broadcast weight and a timing duration corresponding to the maximum broadcast weight;
the sixth message comprises the maximum broadcast weight, the maximum broadcast time, the maximum timing duration and the maximum identification of the target equipment; the broadcast time and the timing duration are values of the broadcast time and the timing duration corresponding to the maximum broadcast weight, and the identifier of the target device comprises 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 for propagating the maximum broadcast weight out to enable synchronization of the frequency and timing of the short-range communication of the at least one third user equipment.
7. The method of claim 6, further comprising:
instructing the short-range communication device to broadcast a seventh message in a discovery window according to the broadcast parameters, wherein the seventh message is used for discovering at least one fourth user equipment outside the cluster; wherein the discovery window is a time interval outside a communication/synchronization window; the communication/synchronization window is a time interval with the starting time being a first broadcast time and the duration being a first timing duration; the seventh message comprises at least the first user equipment identity, a maximum broadcast weight, a timing duration and a broadcast time; wherein the broadcast time and the timing duration are values of the broadcast time and the timing duration corresponding to the maximum broadcast weight; the cluster is a network formed by a plurality of user equipment which synchronously broadcast and scan.
8. The method of claim 1, wherein the first message includes the second user equipment identity, the method further comprising: and acquiring and storing the second user equipment identification by analyzing the first message.
9. The method of claim 3, further comprising: and at least obtaining the second user equipment identification and the first user equipment identification by analyzing the first message, wherein the first user equipment identification is the identification of the target equipment replied by the first message.
10. The method of any of claims 1-7, wherein the short-range communication comprises at least one of a Bluetooth communication and a Bluetooth low energy communication; the method further comprises receiving a Bluetooth driver from the processor before the processor is dormant and running the Bluetooth driver.
11. A device discovery method applied to a processor in a first user equipment, the method comprising:
issuing short-distance communication parameters including scanning parameters to the intelligent sensing device before dormancy so that the intelligent sensing device instructs a short-distance communication module to scan according to the scanning parameters during dormancy;
after awakening, acquiring at least one second user equipment identifier stored in the intelligent sensing device, and discovering the at least one second user equipment; the at least one second user equipment identifier is an identifier of the at least one second user equipment, and the at least one second user equipment identifier is obtained by the intelligent sensing device from a message broadcast by the at least one second user equipment.
12. The method of claim 11, wherein the short-range communication parameters further include broadcast parameters, the method further comprising: and descending a Bluetooth access protocol and the broadcast parameters to the intelligent sensing device before dormancy.
13. A discovery device of a device is positioned in a first user device, and a processor and a short-distance communication device are also arranged in the first user device;
the communication filtering unit is used for receiving short-distance communication parameters from the processor before the processor is in sleep, wherein the short-distance communication parameters comprise scanning parameters;
the built-in integrated circuit driving unit instructs the short-distance communication device to scan according to the scanning parameters during the sleep period of the processor;
the communication analysis unit is used for acquiring a first message received by scanning, wherein the first message is broadcasted by a second user equipment and at least comprises a second user equipment identifier, and the second user equipment identifier is the identifier of the second user equipment; and storing 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.
14. An intelligent sensor apparatus, comprising a second memory and a data processor; the data processor is configured to execute the computer executable instructions stored in the second memory, the data processor executes the computer executable instructions to perform the method of discovering the device according to any one of claims 1-12, and the first user device is kept on-line for short-range communication in a dormant state.
15. A discovery device of a device is positioned in a first user device, and an intelligent sensing device and a short-distance communication device are also arranged in the first user device;
the sleep preparation unit is used for issuing short-distance communication parameters to the intelligent sensing device before sleep, wherein the short-distance communication parameters comprise scanning parameters, so that the intelligent sensing device instructs the short-distance communication module to scan according to the scanning parameters during sleep;
the awakening and acquiring message unit is used for acquiring at least one second user equipment identifier stored in the intelligent sensing device after awakening and discovering the at least one second user equipment; the second user equipment identifier is an identifier of second user equipment, and the second user equipment identifier is obtained by the intelligent sensing device from a message broadcast by the second user equipment.
16. A processing device disposed in a first user device, the processing device comprising a processor and a first memory, the processor being configured to execute an application stored in the first memory, the processor running the application to perform the discovery method of a device of any one of claims 11-12, the processor instructing a smart sensor device to receive short-range communication parameters before a sleep state to keep short-range communication online during the sleep state.
17. A user equipment capable of maintaining short-range communication in a sleep state, the user equipment comprising at least a processor, a smart sensor device and a short-range communication device; the method is characterized in that:
the processor is configured to execute the application stored in the first memory, the processor executes the application to perform the method of discovering a device according to any one of claims 11-12, instructing the smart sensor device to receive the short-range communication parameters before the sleep state to keep the short-range communication online during the sleep state;
the intelligent sensing device at least comprises a second memory and a data processor; the data processor is configured to execute computer-executable instructions stored in the second memory, the data processor executing the computer-executable instructions to perform the method of discovering the device of any of claims 1-12, keeping the short-range communication device online in a dormant state.
CN202010996238.XA 2020-09-21 2020-09-21 Device discovery method and device Pending CN114257996A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010996238.XA CN114257996A (en) 2020-09-21 2020-09-21 Device discovery method and device
PCT/CN2021/113291 WO2022057559A1 (en) 2020-09-21 2021-08-18 Equipment discovery method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010996238.XA CN114257996A (en) 2020-09-21 2020-09-21 Device discovery method and device

Publications (1)

Publication Number Publication Date
CN114257996A true CN114257996A (en) 2022-03-29

Family

ID=80776411

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010996238.XA Pending CN114257996A (en) 2020-09-21 2020-09-21 Device discovery method and device

Country Status (2)

Country Link
CN (1) CN114257996A (en)
WO (1) WO2022057559A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115514587A (en) * 2022-09-20 2022-12-23 杭州萤石软件有限公司 Communication device, method, electronic device and storage medium
WO2024002282A1 (en) * 2022-07-01 2024-01-04 华为技术有限公司 Method and apparatus for sensing device, and chip and device
WO2024022256A1 (en) * 2022-07-27 2024-02-01 华为技术有限公司 Method for managing connection between devices, and device and system
CN117693001A (en) * 2023-11-27 2024-03-12 青岛登云智谷科技有限公司 Low-power distribution network and operation monitoring system and method based on BLE protocol

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115529579B (en) * 2022-04-12 2023-06-20 荣耀终端有限公司 Equipment discovery method and device
CN115038147B (en) * 2022-07-08 2024-02-02 海能达通信股份有限公司 Channel scanning method and related device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8068433B2 (en) * 2007-11-26 2011-11-29 Microsoft Corporation Low power operation of networked devices
CN103619056B (en) * 2013-12-02 2018-01-12 华为终端(东莞)有限公司 A kind of method and terminal for reporting sensing data
CN104284326A (en) * 2014-10-31 2015-01-14 北京元心科技有限公司 Mobile terminal power saving method, system, application processor and wireless module
CN113490191B (en) * 2020-01-14 2024-05-31 荣耀终端有限公司 Bluetooth communication method, medium and electronic device thereof

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024002282A1 (en) * 2022-07-01 2024-01-04 华为技术有限公司 Method and apparatus for sensing device, and chip and device
WO2024022256A1 (en) * 2022-07-27 2024-02-01 华为技术有限公司 Method for managing connection between devices, and device and system
CN115514587A (en) * 2022-09-20 2022-12-23 杭州萤石软件有限公司 Communication device, method, electronic device and storage medium
CN115514587B (en) * 2022-09-20 2024-03-08 杭州萤石软件有限公司 Communication device, method, electronic device and storage medium
CN117693001A (en) * 2023-11-27 2024-03-12 青岛登云智谷科技有限公司 Low-power distribution network and operation monitoring system and method based on BLE protocol
CN117693001B (en) * 2023-11-27 2024-05-17 青岛登云智谷科技有限公司 Low-power distribution network and operation monitoring system and method based on BLE protocol

Also Published As

Publication number Publication date
WO2022057559A1 (en) 2022-03-24

Similar Documents

Publication Publication Date Title
CN114257996A (en) Device discovery method and device
CN111263339B (en) Wireless communication method and device with wireless communication function
US9357342B2 (en) Short-range wireless controller filtering and reporting
WO2018000134A1 (en) Bluetooth connection method and terminal
AU2011200595B2 (en) Wireless support for portable media player devices
JP6013598B2 (en) Immediate connection after device discovery
CN105052209A (en) Polling beacon
CN107809756B (en) Bluetooth controller, module, terminal, system and Bluetooth connection method
CN111935517B (en) Awakening method and device of intelligent set top box, electronic equipment and storage medium
US10945207B2 (en) Beacon signal processing system and filtering method of reducing wake-up frequency
US20240215088A1 (en) Device networking method, electronic device, and storage medium
CN110753387B (en) Monitoring method of downlink control channel and control method of downlink control channel monitoring
WO2022037564A1 (en) Transmission control method and apparatus, and related device
CN111343615A (en) Method and apparatus for short-range communication
US10772041B2 (en) Beacon signal processing system
CN111587591B (en) Service discovery in wireless networks
CN112888029B (en) Communication method, computer equipment and computer readable storage medium
WO2018186846A1 (en) Facilitating connection establishment to wireless network
WO2018171087A1 (en) Wireless wake up method, control device and station device
CN105792389A (en) Scanning method and system for use in coexistence of dual modes and single channel
WO2018051947A1 (en) Communication device, communication method, and program
WO2023051082A1 (en) Data transmission method based on wireless network (wi-fi), and electronic device
CN114786244B (en) Soft access device control method, apparatus, device, storage medium and program product
CN111918381B (en) Wireless synchronous modulation method and device
US20200236180A1 (en) Apparatus and method for communication, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination