WO2022089494A1 - 一种通信方法、装置和电子设备 - Google Patents
一种通信方法、装置和电子设备 Download PDFInfo
- Publication number
- WO2022089494A1 WO2022089494A1 PCT/CN2021/126777 CN2021126777W WO2022089494A1 WO 2022089494 A1 WO2022089494 A1 WO 2022089494A1 CN 2021126777 W CN2021126777 W CN 2021126777W WO 2022089494 A1 WO2022089494 A1 WO 2022089494A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- message
- online
- probe
- detection
- network
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
- H04W48/10—Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/005—Discovery of network devices, e.g. terminals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/18—Self-organising networks, e.g. ad-hoc networks or sensor networks
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Definitions
- the embodiments of the present application relate to the field of communication, and in particular, to a communication method, apparatus, and electronic device.
- the Internet of Things is an information carrier based on the Internet, traditional telecommunication networks, etc. It enables all common physical objects that can be independently addressed to form an interconnected network.
- the Internet of Things realizes the ubiquitous connection between objects and objects and between objects and people through various possible network accesses, so as to realize the intelligent perception, identification and management of objects and processes.
- various devices are networked by means of short-distance communication (for example, all devices in the home that log in to the same account form a device network) to cooperate to realize the application functions of the Internet of Things.
- the application fields of the Internet of Things continue to expand, and the application functions of the Internet of Things continue to enrich.
- the application initiating device needs to first confirm the online status of other devices in the network before executing the application function, and determine whether the device is in the network. This requires a method for detecting online devices in an IoT environment.
- the present application provides a communication method, apparatus and electronic device.
- the present application provides a communication method, including:
- the detection request message is broadcast and released based on the Bluetooth low energy technology, wherein the detection request message is a BLE broadcast message; the detection request message includes the network identifier of the device network targeted for online device detection; the detection request message The network identifier in the request message is used to make the device receiving the probe request message confirm whether the device networking targeted by the probe request message is the device networking to which it belongs;
- the probe response message is a BLE broadcast message
- the probe response message is that the online device detects The online device in the targeted device network, after receiving the probe request message, generates a response message according to the probe request message;
- the online device in the device networking is determined according to the probe response message.
- the data content type of the probe request message and the probe response message is set to a user-defined type, and the probe request message and the probe response message The network identifier is written in the data content of the message.
- the probe response packet includes a device identifier of a sending device of the probe response packet.
- the receiving, based on the Bluetooth low energy technology, a probe response message that is broadcast and released and includes the network identifier includes: , which contains the network identifier of the device networking targeted by the online device detection and the detection response message of the message identifier of the current device.
- the probe request message includes a message identifier of the current device.
- the detection response message that is broadcast and released based on the Bluetooth low energy technology and includes the network identifier and the message identifier of the current device includes:
- the probe response message is a BLE broadcast message
- the probe response message contains the message identifier of the current device
- the probe response message includes the network identifier of the device network targeted by the online device probe.
- the probe request message is generated based on a functional module that can be enabled in a dormant state, and/or an online device in the device network is determined.
- the method further includes:
- the Bluetooth low energy technology Based on the Bluetooth low energy technology, receive an online message published by broadcast and include the network identifier of the device network to which the current device belongs, wherein: the online message is a BLE broadcast message; the online message is the current The online device in the device network to which the device belongs, periodically publishes the message according to the preset second time interval;
- An online device in the device network to which the current device belongs is determined according to the online message.
- an embodiment of the present application provides a communication method, including:
- Receive broadcast packets based on Bluetooth low energy technology when receiving a probe request packet containing the network identifier of the device network to which the current device belongs, generate a probe response packet containing the network identifier according to the probe request packet , broadcast and release the probe response message based on Bluetooth low energy technology, wherein:
- the detection request message is a BLE broadcast message
- the probe response message is a BLE broadcast message
- the network identifier contained in the probe response packet is consistent with the probe request packet, and the network identifier in the probe response packet is used to receive the probe response packet at the device that issued the probe request packet When the message is sent, the device receiving the probe response message is instructed to confirm whether the probe response message corresponds to the probe request message.
- the probe response packet further includes a device identifier of the current device, and the device identifier in the probe response packet is used for publishing the probe request packet in the process of publishing the probe request packet.
- the device receives the probe response message, it enables the device that issued the probe request message to identify the identity of the current device.
- the probe request packet includes a packet identifier of a device that publishes the probe request packet, and the packet identifier in the probe request packet is used to: When the device issuing the probe request message receives the probe response message, the device issuing the probe request message is instructed to confirm whether the probe response message corresponds to the device issuing the probe request message.
- the receiving of the broadcast message based on the Bluetooth low energy technology includes:
- the detection request message is a BLE broadcast message
- the probe response message includes the network identifier of the device network to which the current device belongs.
- the probe response message is generated based on a functional module that can be enabled in a dormant state.
- the method further includes:
- the online message is a BLE broadcast message
- the online message includes the network identifier of the device network to which the current device belongs.
- an embodiment of the present application provides a communication device, including:
- a message broadcasting module which is used to broadcast and issue a detection request message based on the Bluetooth low energy technology, wherein the detection request message is a BLE broadcast message; the detection request message includes a device group targeted for online device detection The network identifier of the network; the network identifier in the probe request message is used to make the device receiving the probe request message confirm whether the device network targeted by the probe request message is the device network to which it belongs ;
- a message receiving module which is used for receiving, based on the Bluetooth low energy technology, a probe response message that is broadcast and released and includes the network identifier, wherein: the probe response message is a BLE broadcast message; the probe response message is a BLE broadcast message; The text is that the online device in the device network targeted for the online device detection, after receiving the detection request message, generates a response message according to the detection request message;
- An online status determination module which is used for determining an online device in the device network according to the probe response message.
- an embodiment of the present application provides a communication device, including:
- the message broadcast module is used for receiving broadcast messages based on the Bluetooth low energy technology, and when receiving a detection request message containing the network identifier of the device network to which the current device belongs, generates a message including the detection request message according to the detection request message.
- the detection response message of the network identifier is broadcast and released based on the Bluetooth low energy technology, wherein:
- the detection request message is a BLE broadcast message
- the probe response message is a BLE broadcast message
- the network identifier contained in the probe response packet is consistent with the probe request packet, and the network identifier in the probe request packet is used to make the device that issued the probe request packet confirm the probe response packet Whether it corresponds to the probe request message.
- an embodiment of the present application provides a communication method, including:
- the first device broadcasts a detection request message based on the Bluetooth low energy technology, wherein the detection request message is a BLE broadcast message; the detection The request message contains the network identifier of the device network targeted by the online device detection; the network identifier in the detection request message is used to make the device receiving the detection request message confirm that the detection request message is located. Whether the targeted device networking is the device networking to which it belongs;
- the online device in the device networking receives the broadcast message based on the Bluetooth low energy technology, wherein, when the second device online in the device networking receives the detection request message, the second device according to the The probe request message generates a probe response message containing the network identifier, and broadcasts the probe response message based on Bluetooth low energy technology, wherein: the probe response message is a BLE broadcast message; the probe response message The network identifier contained in the text is consistent with the probe request message;
- the first device obtains an online device detection result based on receiving a broadcast message through the Bluetooth low energy technology, wherein, when the first device receives the detection response message, the first device determines that the second device Device is online.
- an embodiment of the present application provides a communication method, including:
- the first device When the first device in the device networking has an online device detection requirement, the first device sends an online device detection request to the second device in the device networking;
- the second device When the second device receives the online device detection request, the second device broadcasts a detection request message based on the Bluetooth low energy technology, wherein the detection request message is a BLE broadcast message; the detection The request message contains the network identifier of the device network targeted by the online device detection; the network identifier in the detection request message is used to make the device receiving the detection request message confirm that the detection request message is located. Whether the targeted device networking is the device networking to which it belongs;
- the online device in the device networking receives the broadcast message based on the Bluetooth low energy technology, wherein, when the third device online in the device networking receives the detection request message, the third device according to the The probe request message generates a probe response message containing the network identifier, and broadcasts the probe response message based on Bluetooth low energy technology, wherein: the probe response message is a BLE broadcast message; the probe response message The network identifier contained in the text is consistent with the probe request message;
- the second device obtains the online device detection result based on receiving the broadcast message through the Bluetooth low energy technology, wherein, when the second device receives the detection response message, the second device determines that the third equipment online;
- the first device obtains the online device detection result from the second device.
- the present application provides an electronic device comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, The electronic device is triggered to perform the method steps of the above-mentioned first aspect.
- the present application provides an electronic device comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein, when the computer program instructions are executed by the processor, The electronic device is triggered to perform the method steps of the second aspect above.
- all online devices including dormant devices in the specified device network can be confirmed; the method according to an embodiment of the present application can effectively avoid missing online dormant devices when detecting online devices, thereby greatly reducing The accuracy of the detection result of the online device is improved; the method according to an embodiment of the present application can avoid occupying the Bluetooth air interface capability of the device, thereby avoiding affecting the normal Bluetooth function of the device.
- FIG. 1 is a schematic diagram of an application scenario according to an embodiment of the present application
- FIG. 2 is a schematic diagram of an application scenario according to an embodiment of the present application.
- FIG. 3 is a schematic diagram of an application scenario according to an embodiment of the present application.
- FIG. 4 is a flowchart of a method for detecting an online device according to an embodiment of the present application
- FIG. 5 is a flowchart of a method for responding to an online status according to an embodiment of the present application
- FIG. 6 shows a sequence diagram of an application scenario according to an embodiment of the present application
- FIG. 7 shows a sequence diagram of an application scenario according to an embodiment of the present application.
- FIG. 8 is a schematic diagram of a functional structure of a device according to an embodiment of the present application.
- FIG. 9 is a schematic diagram of a functional structure of a device according to an embodiment of the present application.
- FIG. 10 is a schematic diagram of a functional structure of a device according to an embodiment of the present application.
- FIG. 11 is a schematic diagram of a functional structure of a device according to an embodiment of the present application.
- FIG. 12 is a schematic diagram of an application scenario according to an embodiment of the present application.
- the embodiments of the present application may be applied to the field of smart homes, and the embodiments of the present application may be mobile phones, tablet computers, wearable devices (for example, watches, bracelets, helmets, earphones, etc.), in-vehicle devices, and augmented reality (AR) /Virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), smart home devices (e.g. smart desk lamps, smart Speakers, smart gateways) and other electronic equipment.
- AR augmented reality
- VR Virtual reality
- laptops laptops
- UMPCs ultra-mobile personal computers
- PDAs personal digital assistants
- smart home devices e.g. smart desk lamps, smart Speakers, smart gateways
- other electronic equipment e.g. smart desk lamps, smart Speakers, smart gateways
- a feasible solution is to detect online devices through wireless (Wi-Fi) technology.
- Wi-Fi wireless
- the smart speaker A00 sends a broadcast message to the peripheral device through the Wi-Fi module, and determines whether the device is online based on whether the peripheral device responds.
- the smart speaker A00 feeds back the online status of peripheral devices to the user, so that the user can choose which online devices to use to form a stereo network, or let the user specify which devices need to be online to form a stereo network.
- the device being online means that the device is in a powered-on state, and the device is connected to the device network, and can perform data interaction with other devices on the device network.
- the user uses a mobile phone to access the home local area network.
- the mobile phone is an online device in the home LAN.
- the mobile phone is turned off or the user leaves home and the user's mobile phone is disconnected from the home LAN, the user's mobile phone is not an online device in the home LAN. equipment.
- the smart speaker that is playing music and the smart TV that is playing video are both online devices in the home local area network.
- the device may enter a sleep state.
- the device retains the communication function based on the device networking and can be quickly woken up.
- a device in a hibernated state is considered an online device.
- the user After the user's mobile phone is connected to the home LAN, the user turns off the screen of the mobile phone, or, if the user does not use the mobile phone for a long time, the mobile phone automatically turns off the screen.
- a smart speaker connected to a home local area network automatically enters a sleep mode when it does not need to play audio.
- the user presses the shutdown button of the smart speaker, and the smart speaker is turned off; different from the shutdown, the smart speaker in the sleep mode does not cut off the power supply, and the smart speaker in the sleep state maintains the communication function so that it can be quickly awakened.
- a smart TV when a smart TV is connected to a home local area network, when the user does not need to watch videos, press the sleep button on the remote control, and the smart TV enters the sleep mode under the control of the user.
- an online device refers to an electronic device that is powered on and connected to a local area network
- an offline device refers to an electronic device that is not powered on and/or not connected to the local area network
- device A1, device B1, device C1, and device D1 belong to the same device network (IOT network).
- IOT network device network
- device A1 and device B1 are online and in a non-sleep state (for example, device A1 and device B1 are mobile phones, and both are in a bright screen state)
- device C1 is in an online dormant state (for example, device C1 is a laptop computer, in hibernation state)
- the device D1 shuts down and goes offline (for example, the device C1 is a desktop computer, and the desktop computer is in a power-off state).
- the device A1 needs to determine the online devices in the IoT environment, the device A1 sends a broadcast message to the surrounding devices through Wi-Fi.
- Device B1 is in the working state, it receives the broadcast message from device A1 and feeds back a response message to device A1; device D1 is in a shutdown and offline state, and the broadcast message from device A1 cannot be sent to device D1; device C1 is in an online sleep state (For example, the main processor enters the energy-saving state, but does not turn off the power of the device and the communication interface, and is in a state that can be woken up at any time.) Although the broadcast message of device A1 can be sent to device C1, in the sleep state, device C1's Based on the consideration of power saving, the Wi-Fi chip will filter out broadcast packets, so device C1 cannot receive the broadcast packets of device A1 and feed back response packets to device A1. Finally, after device A1 publishes the broadcast message, it only receives the response message from device B1. Therefore, the device A1 determines that the online device is the device B1, omitting the online dormant device C1.
- Bluetooth Low Energy Bluetooth Low Energy
- device A0 discovers newly added device B0 and device C0 through Bluetooth BLE scanning.
- device B0 and device C0 are disconnected, device A0 can sense that device B0 and device C0 are offline through the change of Bluetooth air interface packets. Since the power consumption of Bluetooth BLE is very small, many devices also support the opening of Bluetooth BLE in the sleep state. Therefore, based on Bluetooth BLE, online devices in the Internet of Things environment can be effectively detected.
- the device can sense the offline of the peripheral device through the change of the Bluetooth air interface message, the implementation of the above solution needs to establish a Bluetooth long connection between the devices. If there are multiple point-to-point connections between the devices, the connections There will be conflict. In addition, the long-term Bluetooth connection between devices occupies the air interface capability of the device, which will affect the normal Bluetooth function of the device.
- the offline of peripheral devices is not sensed based on the change of the Bluetooth air interface message, but the online device in the IoT environment is actively detected based on the BLE broadcast message.
- the online device detection initiator device broadcasts and issues a detection request message based on BLE technology; after receiving the detection request message, the online device in the device network broadcasts a detection response message based on BLE technology; the online device detection initiator After the device receives the probe response packet, it can confirm that the device issuing the probe response packet is an online device.
- the probe request message and the probe response message are both BLE broadcast messages (general broadcast messages cannot be connected). Therefore, there is no connection between the online device detection initiator device and other online devices in the device network. It is necessary to establish a long-term Bluetooth connection, which will not occupy the air interface capacity of the device and will not affect the normal Bluetooth function of the device.
- mobile phone A2, smart speaker B2, tablet computer C2, and desktop computer D2 belong to the same device networking (IOT network).
- IOT network device networking
- mobile phone A2 is in working state (bright screen state)
- smart speaker B2 is in working state (playing music)
- tablet computer C2 is in online hibernation state (screen is turned off to save power consumption, but not turned off)
- desktop computer D2 shuts down and goes offline.
- the mobile phone A2 will request the user to choose whether to use the stereo network for music playback.
- the mobile phone A2 needs to determine the online devices in the IOT network to determine whether the stereo network can be constructed and based on which devices the stereo network can be constructed.
- mobile phone A2 when the user needs to play music through mobile phone A2, mobile phone A2 sends BLE broadcast packets (probe request packets) to peripheral devices (smart speaker B2, tablet computer C2, and desktop computer D2) through BLE technology.
- the smart speaker B2 is in the working state, it can receive the detection request message from the mobile phone A2 based on BLE technology and feed back the detection response message to the mobile phone A2; the desktop computer D2 is turned off and offline, and it cannot receive the detection response message from the mobile phone A2 Feedback the probe response message to the mobile phone A2; the tablet computer C2 is in the online sleep state.
- the tablet computer C2 can still enable BLE, so the tablet computer C2 can also receive the probe request message from the mobile phone A2 and feed it back to the mobile phone A2 Probe response message.
- the mobile phone A2 publishes the detection request message, it receives the detection response message from the smart speaker B2 and the tablet computer C2. Therefore, the mobile phone A2 determines that the online devices are the smart speaker B2 and the tablet computer C2, and does not miss the tablet computer C2 that is dormant online.
- the mobile phone A2 After the mobile phone A2 determines that the online devices are the smart speaker B2 and the tablet computer C2, the mobile phone A2 requests the user to choose whether to use the stereo network for music playback, and the mobile phone A2 shows the user that the current device that can form the stereo network is the smart speaker B2 And the tablet C2.
- the detection request message issued by the mobile phone A2 and the detection response message responded by the smart speaker B2 and the tablet computer C2 are all BLE broadcast messages. Therefore, between the mobile phone A2 and the smart Speaker B2, mobile phone A2 and tablet computer C2 do not need to establish a long-term Bluetooth connection, so it will not occupy the device air interface capacity of mobile phone A2, smart speaker B2, and tablet computer C2, and will not affect mobile phone A2, smart speaker B2, and tablet computer.
- the same device may belong to multiple different device networks at the same time.
- the targeted device networks are also different.
- the detection request message broadcast and published based on the BLE technology includes the network identifier of the device networking targeted for the online device detection.
- the online device generates a corresponding probe response packet for the probe request packet only when it receives the probe request packet including the device identifier of the device network to which it belongs, and broadcasts the probe response packet.
- the network identifier of the device networking is used to distinguish different device networking, and the network identifiers of different device networking are different.
- the network identifier of the device networking can be a unique device networking name named by the user (for example: XXX private networks); for another example, the network identifier of the device networking can be the unique network connection of the device networking. Incoming interface address; for another example, the network identifier of the device networking may be a unique networking number assigned by the network management system when the device networking is established.
- mobile phone A3, laptop computer B3, tablet computer C3 and desktop computer D3 belong to the same equipment network Z31 (the equipment network established by users for personal office), mobile phone A3, smart speaker E3 and smart TV F3 belong to the same equipment group Network Z32 (the user's smart home appliance network).
- the mobile phone A3 and the laptop computer B3 are in the working state (bright screen state)
- the smart speaker E3 is in the working state (playing music)
- the tablet computer C3 and the smart TV F3 are in the online sleep state
- the desktop computer D3 is turned off offline.
- the user needs to send the document file on the mobile phone A3 to an online device in the device network Z31 through the mobile phone A3 to realize data backup, and the mobile phone A3 needs to show the online device in the device network Z31 to the user.
- the user selects the sending target of sending the document file.
- the mobile phone A3 needs to determine the online device in the device network Z31.
- the mobile phone A3 when the user selects the external device backup option for the document file on the mobile phone A3, the mobile phone A3 sends a detection request message Q31 containing the network identifier of the device network Z31 to the peripheral device through the BLE technology.
- the notebook computer B3 and the smart speaker E3 are in working state, and they can receive the detection request message Q31 of the mobile phone A3 based on the BLE technology; since B3 belongs to the device network Z31, the notebook computer B3 feeds back the network including the device network Z31 to the mobile phone A3.
- the desktop computer D3 is in a shutdown and offline state, and it cannot receive the probe request message Q31 from the mobile phone A3 and feeds back a probe response message to the mobile phone A3.
- the tablet computer C3 and the smart TV F3 are in the online sleep state. In the sleep state, the tablet computer C3 and the smart TV F3 can still enable BLE. Therefore, the tablet computer C3 and the smart TV F3 can also receive the detection request message Q31 of the mobile phone A3.
- the tablet computer C3 since C3 is subordinate to the device network Z31, the tablet computer C3 feeds back the detection response message Y32 containing the network identifier of the device network Z31 to the mobile phone A3; since F3 is not subordinate to the device network Z31, the smart TV F3 does not report to the mobile phone A3. Feedback probe response packets.
- the mobile phone A3 publishes the detection request message, it receives the detection response message from the laptop computer B3 and the tablet computer C3. Therefore, the mobile phone A3 determines that the notebook computer B3 and the tablet computer C3 are online in the device network Z31.
- the mobile phone A3 shows the user that the external devices currently available for backup are the laptop computer B3 and the tablet computer C3, and the user can choose to send the document file to the laptop computer B3 or the tablet computer C3 to realize the backup of the document file.
- the user needs to control the smart home appliances at home through the mobile phone A3.
- the mobile phone A3 Before the user performs control, the mobile phone A3 needs to show the user the online smart home appliances in the device network Z32 for the user to select the control object. Therefore, the mobile phone A3 needs to determine the online devices in the device network Z32.
- the mobile phone A3 sends a detection request message Q32 containing the network identifier of the device networking Z32 to the surrounding devices through the BLE technology.
- the notebook computer B3 and the smart speaker E3 are in working state, and they can receive the detection request message Q32 of the mobile phone A3 based on the BLE technology; since E3 belongs to the device network Z32, the smart speaker E3 feeds back the network including the device network Z32 to the mobile phone A3.
- the desktop computer D3 is in a shutdown and offline state, and it cannot receive the probe response message from the mobile phone A3 and feeds back a probe request message Q32 to the mobile phone A3.
- the tablet computer C3 and the smart TV F3 are in an online sleep state. In the sleep state, the tablet computer C3 and the smart TV F3 can still enable BLE. Therefore, the tablet computer C3 and the smart TV F3 can also receive the detection request message Q32 of the mobile phone A3.
- the smart TV F3 feeds back the detection response message Y34 containing the network identifier of the device network Z32 to the mobile phone A3; since C3 is not subordinate to the device network Z32, the tablet computer C3 does not report to the mobile phone A3. Feedback probe response packets.
- the mobile phone A3 publishes the detection request message, it receives the detection response message of the smart TV F3 and the smart speaker E3. Therefore, the mobile phone A3 determines that the smart speaker E3 and the smart TV F3 are online in the device network Z32.
- an embodiment of the present application proposes a communication method, and the communication method is used to detect an online device.
- the method is performed by the initiator device of the online device probe.
- the device needs to detect the online device (for example, when the mobile phone needs to confirm the online device in the Internet of Things to show the user a device that can form a stereo network, or when the mobile phone needs to confirm the online device in the Internet of Things to show the user that can receive Document file backup data device)
- the device acts as the initiator device of online device detection, and performs the following steps as shown in Figure 4:
- Step 410 broadcast and release a probe request message based on the Bluetooth low energy technology, wherein the probe request message is a BLE broadcast message; the probe request message includes the network identifier of the device network targeted for online device detection; the probe request message The network identifier in is used to make the device receiving the probe request message confirm whether the device network targeted by the probe request message is the device network to which it belongs;
- Step 420 based on the Bluetooth low energy technology, receive a probe response message that is broadcast and published and includes the network identifier of the device network targeted by the online device detection, wherein: the probe response message is a BLE broadcast message; the probe response message is a BLE broadcast message; For, the online device in the device network targeted by the online device detection, after receiving the detection request message, generates a response message according to the detection request message;
- Step 430 Determine the online devices in the device networking according to the probe response message.
- the device that is the initiating device of the online device detection can perform subsequent operations according to the confirmed online device detection result.
- step 410 is initiated when the device needs to perform online device detection.
- step 410 is initiated (for example, in the process of building a stereo network for the smart speaker, it needs to show the user that it can be used for building a stereo network.
- Online device for user selection for another example, the device is set to periodically perform online device detection to save and update the online device list on the device, so that the online device in the device network needs to be confirmed during the execution of the application program on the device.
- the device periodically initiates step 410; for another example, when the device unlocks the screen, the device initiates online device detection to meet the needs of the device to update whether other devices are online in time; At a specific point in time, such as when an alarm clock rings, the device initiates online device detection; for another example, when triggered by an event, such as when the mobile phone receives a notification message, in order to update the online status of other devices in time, the mobile phone initiates online device detection.
- an embodiment of the present application provides a communication method, and the communication method is used for responding to an online status.
- the method is performed by the online device in the device network of the initiator device detected by the online device.
- the online devices in the device network perform the following steps as shown in Figure 5 to respond to the online status:
- Step 510 receiving the broadcast message based on the Bluetooth low energy technology, when receiving the detection request message including the network identifier of the device network to which the current device belongs, generating a detection response message including the network identifier according to the detection request message, in:
- the probe request message is a BLE broadcast message
- the probe response message is a BLE broadcast message
- the network identifier contained in the probe response packet is consistent with the probe request packet, and the network identifier in the probe request packet is used to make the device issuing the probe request packet confirm whether the probe response packet corresponds to the probe request packet;
- Step 520 broadcast and release the probe response message based on the Bluetooth low energy technology.
- an embodiment of the present application further provides a communication apparatus, which is used to detect an online device.
- the device includes:
- a message broadcast module which is used to broadcast and issue a detection request message based on the Bluetooth low energy technology, wherein the detection request message is a BLE broadcast message; the detection request message contains the network identifier of the device network targeted for online device detection ; The network identifier in the probe request message is used to make the device receiving the probe request message confirm whether the device networking targeted by the probe request message is the device networking to which it belongs;
- a message receiving module which is used to receive a probe response message that is broadcast and released based on the Bluetooth low energy technology and contains a network identifier, wherein: the probe response message is a BLE broadcast message; the probe response message is an online device detection message.
- the online device in the targeted device network after receiving the probe request message, generates a response message according to the probe request message;
- the online state determination module is used to determine the online device in the device network according to the probe response message.
- an embodiment of the present application further provides a communication device, which is used for responding to an online status.
- the device includes:
- the message broadcast module is used to receive broadcast messages based on Bluetooth low energy technology.
- receives a detection request message containing the network identifier of the device network to which the current device belongs it generates a message containing the network identifier according to the detection request message.
- Probe response message based on the Bluetooth low energy technology broadcast and release the probe response message, where:
- the probe request message is a BLE broadcast message
- the probe response message is a BLE broadcast message
- the network identifier contained in the probe response packet is consistent with the probe request packet, and the network identifier in the probe request packet is used to make the device issuing the probe request packet confirm whether the probe response packet corresponds to the probe request packet.
- an embodiment of the present application further proposes a communication method, the method is used to detect an online device, and the detection method is performed by a device network, including:
- the device A16 When the device A16 in the device network has an online device detection requirement, the device A16 broadcasts a detection request message based on the Bluetooth low energy technology, wherein the detection request message is a BLE broadcast message; the detection request message contains online devices.
- the network identifier of the device network targeted by the probe; the network identifier in the probe request packet is used to make the device receiving the probe request packet confirm whether the device network targeted by the probe request packet is the device network to which it belongs ;
- the online device in the device network receives the broadcast message based on the Bluetooth low energy technology.
- the device B16 When the online device B000 in the device network receives the probe request message, the device B16 generates a probe response message containing the network identifier according to the probe request message. , based on the Bluetooth low energy technology broadcast and release the detection response message, wherein: the detection response message is a BLE broadcast message; the network identifier contained in the detection response message is consistent with the detection request message;
- the device A16 obtains the online device detection result based on receiving the broadcast message through the Bluetooth low energy technology, wherein when the device A16 receives the probe response message published by the device B16, the device A16 determines that the device B16 is online.
- the device A6 and the device B6 are two online devices in the device network Z6.
- the device A6 receives the broadcast message based on the Bluetooth low energy technology; and, in step 602, the device B6 receives the broadcast message based on the Bluetooth low energy technology;
- Step 610 the device A6 broadcasts and issues a probe request message based on the Bluetooth low energy technology, wherein the probe request message is a BLE broadcast message, and the probe request message includes the network identifier of the device networking Z6;
- Step 612 when device B6 receives the probe request message containing the network identifier of device networking Z6, device B6 generates a probe response message comprising the network identifier of device networking Z6 according to the probe request message;
- Step 613 the device B6 broadcasts a probe response message based on the Bluetooth low energy technology
- Step 621 when the device A6 receives the probe response message containing the network identifier of the device networking Z6, it confirms that the device B6 sending the probe response message is an online device in the device networking Z6.
- all online devices including dormant devices in the specified device network can be confirmed; the method according to an embodiment of the present application can effectively avoid missing online dormant devices when detecting online devices, thereby greatly reducing The accuracy of the detection result of the online device is improved; the method according to an embodiment of the present application can avoid occupying the Bluetooth air interface capability of the device, thereby avoiding affecting the normal Bluetooth function of the device.
- the overall structure of the BLE broadcast message is a preamble (preamble) + an access address (Access Address) + a protocol data field (Protocol Data Unit, PDU) + a cyclic redundancy check (Cyclic Redundancy Check, CRC).
- the PDU part includes header information (Header Info) + device address (AdvA) + data field (AdvData).
- the AdvData in the PDU is composed of one or more basic data structures (AD Structure). Among them, if the sum of all AD Structures in AdvData is less than 31Octet, the rest will be completed with 000...000b, and the completed part is called Non-significant part.
- AD Structure data length (Length) + data type (AD TYPE) + data content (AD Data).
- AD TYPE data type
- AD Data data content
- the data field (AdvData) in the AD Structure data of the BLE broadcast message is used to carry the network identifier.
- a piece of AD Structure data contains at least the following:
- the AD Data field can also be written to other content than Pkttype and NetWorkId according to actual application needs.
- UUID Universal Unique Identifier
- the device address (AdvA) includes multiple types, and some types of device address (AdvA) can be used to identify the device identity. That is, in an implementation manner of step 621, the device A6 identifies the identity of the device B6 according to the device address (AdvA) in the probe response message, thereby confirming that the device B6 sending the probe response message is an online device in the device networking Z6 equipment.
- the type of the device address includes the general device address (Public Device Address).
- the Public Device Address consists of a 24-bit company identification code (Company_id) and a 24-bit company assignment code (Company_assigned_).
- the Public Device Address is unique and immutable, and it can be directly used to identify the device identity without interpretation.
- the device address (AdvA) in the probe response message generated by the device B6 adopts the Public Device Address; correspondingly, the device A6
- the mapping relationship between the device in the device networking and its Public Device Address is stored in the device network.
- the device A6 identifies the identity of the device B6 according to the device address (Public Device Address) in the probe response message, thereby confirming that the probe response message is sent.
- the device B6 in this article is an online device in the device network Z6.
- mapping relationship between the device in the device networking and its Public Device Address may not be preserved in the device A6, so that, in step 621, the device A6 can only confirm that there is an online device in the device networking, and cannot obtain the online device.
- the device description of the device may not be preserved in the device A6, so that, in step 621, the device A6 can only confirm that there is an online device in the device networking, and cannot obtain the online device.
- the type of the device address also includes a random device address (Random Device Address).
- Random Device Address is not fixedly assigned, but randomly generated after the device is started. That is, for different devices, its Random Device Address is different; but for a single device, the Random Device Address is variable. Based on Random Device Address, the device identity cannot be directly identified.
- Random Device Address of BLE broadcast packets is divided into two categories: Static Device Address and Private Device Address.
- Static Device Address is an address randomly generated when the device is powered on, and it remains unchanged within a power-on cycle.
- the Static Device Address can be changed at the next power-up. But not mandatory, so it can also remain unchanged. If changed, the last saved connection and other information will no longer be valid.
- the Static Device Address can be synchronized with other devices in the device network where the device is located, thereby saving the correspondence between the Static Device Address and the device in other devices. In this way, during the current power-on of the device, the device identity can be identified through the Static Device Address.
- the device address (AdvA) in the probe response message generated by the device B6 adopts the Static Device Address, wherein the mapping relationship between the Static Device Address of the device B6 and the device B6 is already in Save in the device A6; in step 621, the device A6 identifies the identity of the device B6 according to the device address (Static Device Address) in the probe response message, thereby confirming that the device B6 sending the probe response message is an online device in the device networking Z6 equipment.
- Private Device Address In the definition of Private Device Address of BLE broadcast message, it contains two subclasses: Non-resolvable Private Address (Non-resolvable Private Address) and Resolvable Private Address (Resolvable Private Address).
- the ResolvablePrivate Address is generated by a random number and an Identity Resolving Key (IRK). Therefore, the ResolvablePrivate Address can only be resolved by devices with the same IRK, thus preventing it from being scanned and tracked by unknown devices.
- IRK Identity Resolving Key
- the device address (AdvA) in the probe response message generated by device B6 adopts ResolvablePrivate Address, wherein the IPK of the ResolvablePrivate Address of device B6 has been saved in device A6; in step In 621, the device A6 identifies the identity of the device B6 according to the device address (ResolvablePrivate Address) in the probe response message, thereby confirming that the device B6 sending the probe response message is an online device in the device networking Z6.
- Non-resolvable Private Address is address data that changes periodically. Non-resolvable Private Address cannot be parsed by other devices and can be regarded as a random number. Non-resolvable Private Address can protect user privacy, because the constantly changing Non-resolvable Private Address makes it impossible for any device to track users by recording the Bluetooth device address, but such protection also means trusted devices There is also no way to identify the true identity of this Bluetooth device. That is to say, if the device address (AdvA) in the probe response packet generated by device B6 adopts Non-resolvable Private Address, device A6 cannot identify the identity of device B6 according to the device address in the probe response packet.
- Non-resolvable Private Address in addition to the Non-resolvable Private Address type, other types of device addresses (AdvA) also cannot be resolved.
- Static Device Address when the mapping relationship between the Static Device Address of device B6 and device B6 is not stored in A6, device A6 cannot resolve the Static Device Address of device B6 to identify the identity of device B6;
- ResolvablePrivate Address when the IPK of the ResolvablePrivate Address of the device B6 is not stored in A6, the device A6 cannot resolve the ResolvablePrivate Address of the device B6 to identify the identity of the device B6.
- the probe response message generated by the device B6 carries the device ID of the device B6
- the device identification can be used to identify the identity of the device B6; in step 621, the device A6 identifies the identity of the device B6 according to the device identification of the AD Data field in the probe response message, thereby confirming that the device B6 sending the probe response message is a device Online devices in networking Z6.
- the device identifier (DeviceId) of the device that sends the probe response message is written in the AD Data field of the AD Structure data in the probe response message.
- the AD Structure data in the probe response message generated by device B6 at least contains the following contents:
- any data that can be bound to the device and that is unique in the device network can be selected as the device identifier according to actual requirements.
- the device network preset a unique number for the device in the device network, and use the unique number of the device as the device identifier of the device. Assuming that there are 5 devices (A, B, C, D, E) in a certain device network, numbers 1 to 5 can be assigned to these 5 devices. In this device networking, the device numbered 1 refers to device A.
- the public device address (Public Device Address) of the device may be directly used as the device identifier of the device.
- the hash value of the public device address may be used as the device identifier of the device.
- a single online device will receive multiple probe request packets, and the online device will generate multiple probe response packets for the received multiple probe request packets, which will eventually lead to the initiation of online device detection.
- a single device of 1 will receive multiple probe response packets from the same online device.
- multiple probe response packets from the same online device can easily cause the device that initiates online device detection to have a decision logic confusion when determining whether the device is online.
- repeatedly determining that the same online device is online will cause the device that initiates online device detection to generate a judgment result that there are multiple identical online devices (the correct judgment result is that the above-mentioned multiple identical online devices are the same.
- the online device is the same device).
- devices A8, B8, and C8 belong to the same device network.
- the device A8 broadcasts the detection request message Q81, and the device B8 broadcasts the detection request message Q82.
- the online device C8 When the online device C8 receives the probe request message Q81, it generates a probe response message Y81 and broadcasts it; when the online device C8 receives the probe request message Q82, it generates a probe response message Y82 and broadcasts it. Then, device A8 and device B8 will receive probe response packets Y81 and Y82 both directed to device C8.
- device A8 determines an online device according to the probe response packets Y81 and Y82, it may generate an online device detection result: there are two online devices (C8 issuing the probe response packet Y81 and C8 issuing the probe response packet Y82). Device C8 is recognized as two devices.
- a feasible solution is that when the device that initiates online device detection receives multiple probe response packets from the same device, only one probe response packet is recorded as a valid packet (for example, for a certain online device The device records the first probe response message from the online device as a valid message in the order of reception time, and determines that the corresponding device is online according to the valid probe response message.
- device A8 first receives the probe response message Y81 from device C8, then device A8 marks the probe response message Y81 as a valid message, and determines that device C8 is an online device according to the probe response message Y81.
- device A8 will not perform further data processing on the probe response packet Y82. In this way, repeated online device determination for device C8 is effectively avoided.
- a packet identifier is carried in the probe response packet, and the packet identifier is used to mark the device that sends the probe request packet to which the probe response packet belongs, so that the detection response packet is received.
- the probe request packet sending device of the response packet determines whether the probe response packet is for responding to the probe request packet sent by itself. Therefore, the detection request message sending device performs online device determination only based on the detection response message for itself, effectively preventing the detection request message sending device from performing multiple online device determinations on the same online device.
- devices A9, B9, and C9 belong to the same device network.
- the device A9 broadcasts the detection request message Q91
- the device B9 broadcasts the detection request message Q92.
- the online device C9 When the online device C9 receives the probe request message Q91, it generates a probe response message Y91 containing the message identifier W91, and the message identifier W91 corresponds to the probe request message Q91; when the online device C9 receives the probe request message Q92, It generates a probe response message Y92 containing a message identifier W92, and the message identifier W92 corresponds to the probe request message Q92.
- device A9 and device B9 When device A9 and device B9 receive the probe response message published by broadcast, they can judge whether the probe response message is a response to itself according to whether the probe response message contains the message identifier corresponding to the probe request message sent by itself. The published probe request message.
- the probe response packet Y91 contains the packet identifier W91, and the packet identifier W91 corresponds to the probe request packet Q91 sent by the device A9, so the device A9 judges the probe response packet Y91 It is a probe response message for itself; when the device A9 receives the probe response message Y92, the probe response message Y92 contains the message identifier W92, and the message identifier W92 does not correspond to the probe request message Q91 sent by the device A9, so Device A9 determines that the probe response message Y92 is not a probe response message for itself.
- any data that can distinguish different probe request message sending devices may be used as the message identifier.
- the packet ID number 1 corresponds to device A.
- the device identifier of the device may be directly used as the message identifier corresponding to the device.
- the public device address (Public Device Address) of the device may be directly used as the packet identifier corresponding to the device.
- the device identifier of the sending device of the probe request packet is used as the packet identifier corresponding to the probe request packet. That is, when the online device C9 receives the probe request message Q91, it generates a probe response message Y91 that includes the device ID of the device A9; when the online device C9 receives the probe request message Q92, it generates a device ID that includes the device B9. The probe response packet Y92. When the device A9 and the device B9 receive the probe response message published by broadcast, they can judge whether the probe response message is a response to the probe request message published by themselves according to whether the probe response message contains its own device identifier.
- a single device in the device networking stores a mapping relationship between device identifiers and device addresses of other devices in the device networking.
- the sending device of the probe response message parses the device address (AdvA) in the probe request message to identify the sending device of the probe request message, and determines the sending device of the probe request message according to the saved mapping relationship between the device ID and the device address
- the device identifier of the probe request message is written into the AD Data field of the probe response message.
- the device sending the probe request message can determine whether a device address (AdvA) is its own device address (AdvA). Therefore, in an embodiment of the present application, the device address (AdvA) of the probe request packet is used as the packet identifier corresponding to the probe request packet.
- the sending device of the probe response packet writes the device address (AdvA) of the probe request packet into the probe response packet. After receiving the probe response packet, the device sending the probe request packet can Whether the device address used as the packet identifier is its own device address is used to determine whether the probe response packet is a probe response packet for itself.
- the online device C9 when the online device C9 receives the probe request message Q91, it generates a probe response message Y91 containing the message identifier W91, and the message identifier W91 is the device address (AdvA) of the probe request message Q91 (the device address of the device A9). ); When the online device C9 received the detection request message Q92, it generated the detection response message Y92 comprising the message identification W92, and the message identification W92 was the equipment address (AdvA) of the detection request message Q92 (the equipment of the equipment B9 address).
- device A9 and device B9 When device A9 and device B9 receive the probe response message issued by broadcast, they can judge whether the probe response message is a probe request message issued by itself according to whether the probe response message contains its own device address.
- the detection request message carries the message identifier of the detection request message; after receiving the detection request message, the online device generates the detection response message and sends the detection message to the detection request message.
- the packet identifier carried in the request packet is written into the probe response packet.
- the probe request message includes a message identifier, and the message identifier is used to distinguish different probe request message sending devices; in step 420, based on Bluetooth low energy
- the technology is to receive a detection response message that is broadcast and released and includes the network identifier of the device network targeted for online device detection and the message identifier corresponding to the current device.
- the probe request message includes the message identifier of the device that issued the probe request message; and the probe response message including the network identifier is generated according to the probe request message, including, Generate a probe response packet containing the network ID and the packet ID according to the probe request packet, where:
- the packet ID contained in the probe response packet is the same as the probe request packet.
- a message identifier is written in the AD Data field of the AD Structure data in the probe response message.
- the device identifier of the device A6 is used as the message identifier of the device A6.
- the AD Structure data in the probe response message generated by device B6 includes the following content:
- AD Data field in Table 3 does not represent the arrangement of parameters in AD Data in actual application scenarios. Those skilled in the art can set the arrangement of parameters in AD Data according to the requirements of their own application scenarios.
- a data filtering mode is used to receive broadcast messages to obtain valid probe request messages and/or probe response messages.
- step 420 Specifically, in an implementation manner of step 420:
- the probe response message is a BLE broadcast message
- the probe response message contains the device identifier of the current device
- the probe response packet contains the network identifier of the device network targeted by the online device probe.
- step 510 Specifically, in an implementation manner of step 510:
- the probe request message is a BLE broadcast message
- the probe response packet contains the network identifier of the device network to which the current device belongs.
- the device A10 and the device B10 are two online devices in the device network Z10.
- the following steps are performed:
- Step 710 set the broadcast message filtering rule of the device A10 as: BLE broadcast message + the device ID of the device A10 + the network ID of the device networking Z10;
- Step 720 setting the broadcast message filtering rule of the device B10 as: BLE broadcast message + the network identifier of the device network to which the device B10 belongs;
- Step 721 based on the Bluetooth low energy technology, the device B10 receives the broadcast message according to the broadcast message filtering rule set in step 720;
- Step 711 the device A10 broadcasts and issues a probe request message based on the Bluetooth low energy technology, wherein the probe request message is a BLE broadcast message, and the probe request message includes the network identifier of the device networking Z10 and the device identifier of the device A10;
- the detection request message broadcasted by the device A10 is a BLE broadcast message
- the detection request message broadcasted by the device A10 contains the network identifier of the device networking Z10, which satisfies the broadcast message filtering rule set in step 702, therefore,
- the device B10 can receive the probe request message broadcasted by the device A10;
- Step 722 when the device B10 receives the probe request message broadcasted by the device A10, the device B10 generates a probe response message according to the probe request message, wherein the network identifier and the device ID in the probe request message are written into the probe response message;
- Step 723 the device B10 broadcasts a probe response message based on the Bluetooth low energy technology
- Step 712 the device A10 receives the broadcast message according to the broadcast message filtering rule set in step 710 based on the Bluetooth low energy technology;
- the probe response message broadcast by device B10 is a BLE broadcast message
- the probe request message broadcast by device B10 includes the network identifier of device networking Z10 and the device identifier of device A10
- the broadcast message set in step 710 is satisfied. Therefore, device A10 can receive the probe response message broadcasted by device B10;
- step 713 the device A10 confirms that the device B10 is an online device according to the received probe response message from the device B10.
- devices A11, B11, and C11 belong to the same device network.
- the device A11 broadcasts the detection request message Q111
- the device B11 broadcasts the detection request message Q112.
- the online device A11 When the online device A11 receives the probe request message Q112, it generates a probe response message Y111 that includes the device identity of the device B11.
- the online device B11 When the online device B11 receives the probe request message Q111, it generates a probe response message Y112 that includes the device ID of the device A11.
- the online device C11 When the online device C11 receives the probe request message Q111, it generates a probe response message Y113 containing the device ID of the device A11; when the online device C11 receives the probe request message Q112, it generates a probe response message containing the device ID of the device B11. Text Y114.
- Probe response packets Y111, Y112, Y113, and Y114 are all broadcast.
- Probe response messages Y112, Y113, and Y114 are sent to device A11.
- the probe response packet Y114 contains the device ID of the device B11, so it is filtered out.
- the probe response packets Y112 and Y113 contain the device ID of the device A11, so they are received by the device A11.
- Probe response messages Y111, Y113, and Y114 are sent to device B11.
- the probe response packet Y113 contains the device ID of device A11, so it is filtered out.
- the probe response packets Y111 and Y114 contain the device ID of the device B11 and are therefore received by the device B11.
- the method for detecting an online device proposed by the embodiment of the present application is performed when the device needs to confirm the online device.
- the method for detecting an online device proposed in the embodiment of the present application is performed in advance to confirm the online device, and when the device needs to confirm the online device, the confirmed online device confirmation result is called, so that the device can be Significantly reduces wait times when online devices need to be confirmed, thereby improving the user experience.
- steps 410 to 430 are periodically performed according to a preset time interval (for example, one round of steps is performed every 2 minutes). 410 to 430) to continuously update the status of online devices in the device network.
- a preset time interval for example, one round of steps is performed every 2 minutes.
- the device A12 and the device B12 are two online devices in the device network Z12.
- the main processing module 1211 for example, a central processing unit (CPU)
- CPU central processing unit
- the main processing module 1211 sends the probe request message to the The message is sent to the Bluetooth module 1212 (arrow 1201), and the Bluetooth module 1212 broadcasts and issues a probe request message based on the Bluetooth low energy technology (arrow 1202).
- the Bluetooth module 1222 of the device B12 is based on the Bluetooth low energy technology and receives broadcast messages according to preset filtering rules. After the Bluetooth module 1222 receives the probe request message, the Bluetooth module 1222 sends the probe request message to the main processing module 1221 of the device B12 (arrow 1203), the main processing module 1221 generates a probe response message, and the main processing module 1221 sends the probe response message. The message is sent to the Bluetooth module 1222 (arrow 1204 ), and the Bluetooth module 1222 broadcasts a probe response message based on the Bluetooth low energy technology (arrow 1205 ).
- the Bluetooth module 1212 of the device A12 is based on the Bluetooth low energy technology and receives broadcast messages according to preset filtering rules. After the Bluetooth module 1212 receives the probe response message, the Bluetooth module 1212 sends the probe response message to the main processing module 1211 (arrow 1206), and the main processing module 1211 confirms the online device according to the received response message.
- the Bluetooth module 1222 of the device B12 receives/publishes broadcast messages based on the Bluetooth low energy technology. Therefore, even if the device B12 is in a dormant state, it can still receive the probe request message and issue the probe response message. . However, after the Bluetooth module 1222 receives the probe request message, it needs to send the probe request message to the main processing module 1221, and the main processing module 1221 generates the probe response message. If the device B12 receives the probe request message in the dormant state, it needs to wake up the device B12 (start the main processing module) to generate the probe response message, which will inevitably increase the power consumption of the device B12.
- a probe response message is generated based on the functional module that can be enabled in the dormant state (step 520 is executed).
- the device A13 and the device B13 are two online devices in the device network Z13.
- the main processing module 1311 of the device A13 generates a detection request message, and the main processing module 1311 sends the detection request message to the Bluetooth module 1312 (arrow 1301), and the Bluetooth module 1312
- the probe request message is broadcast and released based on the Bluetooth low energy technology (arrow 1302).
- the Bluetooth module 1322 of the device B13 is based on the Bluetooth low energy technology and receives broadcast messages according to preset filtering rules. After the Bluetooth module 1322 receives the probe request message, the Bluetooth module 1322 sends the probe request message to the functional module 1321 (arrow 1303), the functional module 1321 generates a probe response message, and the functional module 1321 sends the probe response message to the Bluetooth module 1222 (arrow 1304 ), the Bluetooth module 1222 broadcasts a probe response message based on the Bluetooth low energy technology (arrow 1305 ).
- the Bluetooth module 1312 of the device A13 is based on the Bluetooth low energy technology and receives broadcast messages according to preset filtering rules. After the Bluetooth module 1312 receives the probe response message, the Bluetooth module 1312 sends the probe response message to the main processing module 1311 (arrow 1306), and the main processing module 1311 confirms the online device according to the received response message.
- the Bluetooth module 1322 of the device B13 receives the broadcast message based on the Bluetooth low energy technology. Therefore, even if the device B13 is in a dormant state, the probe request message can still be received.
- the functional module 1321 of the device B13 is a functional module that can be activated in a sleep state.
- a sleep state For example, a System-on-a-Chip (SOC), a Microcontroller Unit (MCU), etc. that can be enabled in a sleep state (eg, a low-power sensor hub (Sensor Hub)).
- SOC System-on-a-Chip
- MCU Microcontroller Unit
- the process of generating and broadcasting a probe response message does not require the participation of the main processing module 1320 of the device B13. Therefore, even if the device B13 is in a dormant state, it can generate and issue a probe response message without waking up the device B13.
- the Bluetooth module 1212 of the device A12 receives/publishes broadcast messages based on the Bluetooth low energy technology. Therefore, even if the device A12 is in a dormant state, it can still publish a probe request message and receive a probe response. message.
- the probe request message issued by the device A12 is generated by the main processing module 1211, and after the Bluetooth module 1212 receives the probe response message, the main processing module 1211 needs to confirm the online device according to the received response message. .
- This makes the device A12 must be in a non-sleep state to perform online device detection operations.
- the device needs to periodically wake up from the sleep state to perform the online device detection operation, which greatly increases the power consumption of the device. .
- steps 410 to 430 are performed based on functional modules that can be enabled in a dormant state.
- the device A14 and the device B14 are two online devices in the device network Z14.
- the functional module 1411 of the device A14 When the device A14 needs to confirm the online devices in the device network Z14, the functional module 1411 of the device A14 generates a probe request message, and the functional module 1411 sends the probe request message to the Bluetooth module 1412 (arrow 1401).
- the Bluetooth module 1412 is based on the Bluetooth The low energy technology broadcasts a probe request message arrow (arrow 1402).
- the Bluetooth module 1422 of the device B14 is based on the Bluetooth low energy technology and receives broadcast messages according to preset filtering rules. After the Bluetooth module 1422 receives the probe request message, the Bluetooth module 1422 sends the probe request message to the functional module 1421 arrow (arrow 1403), the functional module 1421 generates the probe response message, and the functional module 1421 sends the probe response message to the Bluetooth Module 1422 (arrow 1404 ), the Bluetooth module 1422 broadcasts a probe response message based on the Bluetooth low energy technology (arrow 1405 ).
- the Bluetooth module 1412 of the device A14 is based on the Bluetooth low energy technology and receives broadcast messages according to preset filtering rules. After the Bluetooth module 1412 receives the probe response message, the Bluetooth module 1412 sends the probe response message to the functional module 1411 (arrow 1406), and the functional module 1411 confirms the online device according to the received response message.
- the Bluetooth module 1422 of the device B14 receives/publishes broadcast messages based on the Bluetooth low energy technology. Therefore, even if the device B14 is in a dormant state, it can still receive the probe request message and issue the probe response message. .
- the functional module 1421 of the device B14 is a functional module that can be activated in a sleep state.
- a sleep state For example, a System-on-a-Chip (SOC), a Microcontroller Unit (MCU), etc. that can be enabled in a sleep state (eg, a low-power sensor hub (Sensor Hub)).
- SOC System-on-a-Chip
- MCU Microcontroller Unit
- the process of generating and broadcasting the probe response message does not require the participation of the main processing module 1420 of the device B14. Therefore, even if the device B14 is in a dormant state, it can generate and issue a probe response message without waking up the device B14.
- the Bluetooth module 1412 of the device A14 publishes/receives broadcast messages based on the Bluetooth low energy technology. Therefore, even if the device A14 is in a dormant state, the probe response message can still be received.
- the functional module 1411 of the device A14 is a functional module that can be activated in a sleep state.
- a sleep state For example, a System-on-a-Chip (SOC), a Microcontroller Unit (MCU), etc. that can be enabled in a sleep state (eg, a low-power sensor hub (Sensor Hub)).
- SOC System-on-a-Chip
- MCU Microcontroller Unit
- the process of generating the probe request message and the process of confirming the online device according to the probe request message do not require the participation of the main processing module 1410 of the device A14. Therefore, even if the device A14 is in a dormant state, the detection of online devices can be performed without waking up the device A14. After performing the detection of the online device, if the device A14 wakes up and needs to confirm the online device status, it only needs to directly call the confirmation result of the function module 1411 (arrow 1407 ).
- the above-mentioned method for detecting an online device can be summarized as an active detection method initiated by a device that needs to detect an online device.
- a passive detection method is proposed.
- the online device in the device network actively broadcasts and publishes the online message, and when the device receives the online message, it can confirm that the device that publishes the online message is the online device.
- a method for detecting an online device includes:
- the Bluetooth low energy technology Based on the Bluetooth low energy technology, receive an online message published by broadcast and include the network identifier of the device network to which the current device belongs, wherein: the online message is a BLE broadcast message; the online message is, the current device belongs to The online devices in the connected device network, according to the preset second time interval, regularly publish the message;
- An online device in the device network to which the current device belongs is determined according to the online message.
- the method for responding to the online status includes:
- online messages are regularly broadcast and released based on Bluetooth low energy technology, among which:
- the online message is a BLE broadcast message
- the online message contains the network identifier of the device network to which the current device belongs.
- the device A15 and the device B15 are two online devices in the device network Z15.
- the function module 1521 of the device B15 periodically generates online messages (for example, once every 2 minutes) according to a preset time interval.
- the online message includes the network identifier of the device network to which the device B15 belongs.
- the function module 1521 sends the online message to the Bluetooth module 1522 (arrow 1501 ), and the Bluetooth module 1522 periodically broadcasts the online message (arrow 1502 ) based on the Bluetooth low energy technology (eg, once every 2 minutes).
- the Bluetooth module 1512 of the device A15 receives online messages based on the Bluetooth low energy technology.
- the bluetooth module 1512 receives the online message containing the network identification of the device network to which it belongs, the bluetooth module 1512 sends the online message to the functional module 1511 (arrow 1403), and the functional module 1511 confirms that the device B15 is online according to the online message.
- the Bluetooth module 1522 of the device B15 publishes broadcast messages based on the Bluetooth low energy technology, so even if the device B15 is in a sleep state, it can still publish online messages.
- the functional module 1521 of the device B15 is a functional module that can be activated in a sleep state.
- a sleep state For example, a System-on-a-Chip (SOC), a Microcontroller Unit (MCU), etc. that can be enabled in a sleep state (eg, a low-power sensor hub (Sensor Hub)).
- SOC System-on-a-Chip
- MCU Microcontroller Unit
- the process of generating the online message does not require the participation of the main processing module 1520 of the device B15. Therefore, even if the device B15 is in a dormant state, the online message can be generated and published without waking up the device B13.
- the Bluetooth module 1512 of the device A15 publishes/receives broadcast messages based on the Bluetooth low energy technology, so even if the device A15 is in a dormant state, it can still receive online messages.
- the functional module 1511 of the device A15 is a functional module that can be activated in a sleep state.
- a sleep state For example, a System-on-a-Chip (SOC), a Microcontroller Unit (MCU), etc. that can be enabled in a sleep state (eg, a low-power sensor hub (Sensor Hub)).
- SOC System-on-a-Chip
- MCU Microcontroller Unit
- the process of confirming the online device according to the online message does not require the participation of the main processing module 1510 of the device A15. Therefore, even if device A15 is dormant, there is no need to wake up device A15 to confirm an online device. If the device A15 is awakened and needs to confirm the online device status, it is only necessary to directly call the confirmation result of the function module 1511 (arrow 1504).
- the generation of probe request packets, the release of probe request packets, the reception of probe response packets, and the determination of online devices all require certain communication/processing resources and thus lead to a certain amount of electricity. consume.
- power-sensitive devices eg, battery-powered mobile phones, tablet computers
- a power-sensitive device when a power-sensitive device needs to confirm an online device, the device does not directly detect the online device, but a non-power-sensitive device (for example, a desktop computer powered by a fixed power supply, a Bluetooth speaker, Smart TVs, etc.) perform online device detection to obtain online device detection results, and power-sensitive devices obtain online device detection results from non-power-sensitive devices that perform online device detection.
- a non-power-sensitive device for example, a desktop computer powered by a fixed power supply, a Bluetooth speaker, Smart TVs, etc.
- the device A17 in the device network When the device A17 in the device network has an online device detection requirement, the device A17 sends an online device detection request to the device B17 in the device network;
- the device B17 When the device B17 receives the online device detection request, the device B17 broadcasts a detection request message based on the Bluetooth low energy technology, wherein the detection request message is a BLE broadcast message; the detection request message contains the online device detection target.
- the network identifier of the device network; the network identifier in the probe request message is used to make the device receiving the probe request message confirm whether the device network targeted by the probe request message is the device network to which it belongs;
- the online device in the device networking receives the broadcast message based on the Bluetooth low energy technology, wherein, when the online device C17 in the device networking receives the detection request message, the device C17 generates a network identifier according to the detection request message.
- the probe response message is based on the Bluetooth low energy technology broadcast and released the probe response message, wherein: the probe response message is a BLE broadcast message; the network identifier contained in the probe response message is consistent with the probe request message;
- the device B17 obtains the online device detection result based on receiving the broadcast message through the Bluetooth low energy technology, wherein, when the device B17 receives the detection response message of the device C17, the device B17 determines that the device C17 is online;
- the device A17 obtains the online device detection result from the device B17, for example, the device B17 sends the online device detection result to the device A17 after completing the online device detection, or the device A17 reads the online device detection result saved by the device B17.
- the mobile phone A18, the notebook computer B18, the tablet computer C18, the desktop computer D18, the smart speaker E18, and the smart TV F18 belong to the device network Z18.
- the mobile phone A18, the notebook computer B18 and the smart speaker E18 are in working state (bright screen state)
- the tablet computer C18 and the smart TV F18 are in the online sleep state
- the desktop computer D18 is turned off and offline.
- the user needs to send the document file on the mobile phone A18 to an online device in the device network Z18 through the mobile phone A18 to realize data backup, and the mobile phone A18 needs to show the online device in the device network Z18 to the user.
- the user selects the sending destination of the document file, and at this time, the mobile phone A18 needs to determine the online devices in the device networking Z18.
- the mobile phone A18 sends an online device detection request to the smart speaker E18 powered by the fixed power supply (T18).
- the smart speaker E18 After receiving the online device detection request (T18), the smart speaker E18 sends a detection request message Q18 containing the network identifier of the device networking Z18 to the surrounding devices through BLE technology.
- the notebook computer B18 is in a working state, and it can receive the detection request message Q18 of the smart speaker E18 based on the BLE technology; the notebook computer B18 feeds back a detection response message Y181 containing the network identifier of the device network Z18 to the smart speaker E18.
- the desktop computer D3 is in a shutdown and offline state, and it cannot receive the detection request message Q8 and feed back a detection response message to the smart speaker E18.
- the tablet computer C18 and the smart TV F18 are in an online sleep state. In the sleep state, the tablet computer C18 and the smart TV F18 can still enable BLE, so the tablet computer C18 and the smart TV F18 can also receive the detection request message Q18. In addition, since the tablet computer C18 and the smart TV F18 belong to the device network Z18, the tablet computer C18 feeds back the detection response message Y182 containing the network identifier of the device network Z18 to the smart speaker E18, and the smart TV F18 feeds back to the smart speaker E18 that contains the device network ID. The probe response packet Y183 of the network identifier of the network Z18.
- the smart speaker E18 issued the detection request message, it received the detection response message from the laptop computer B18, the tablet computer C18 and the smart TV F18. Therefore, the smart speaker E18 determines that the laptop computer B18, the tablet computer C18 and the smart TV F18 are online.
- the smart speaker E18 sends the online device detection results to the mobile phone A18 (J18).
- the mobile phone A18 confirms that the notebook computer B18, the tablet computer C18 and the smart TV F18 are online according to the feedback of the smart speaker E18, and the user can choose to send the document file to the notebook computer B3, the tablet computer C3, or the smart TV F18 to realize the backup of the document file.
- the mobile phone A18 can obtain the online device detection result without performing a specific online device detection operation, which greatly reduces the power consumption of the mobile phone A18.
- a Programmable Logic Device (such as a Field Programmable Gate Array (FPGA)) is an integrated circuit whose logical function is determined by an accessor programming the device. It is programmed by the designer to "integrate" a digital device on a PLD, without the need for a chip manufacturer to design and manufacture a dedicated integrated circuit chip.
- PLD Programmable Logic Device
- each module/unit is only a division of logical functions.
- the functions of each module/unit are implemented in one or more software and/or hardware.
- the hardware devices, devices, and modules proposed in the embodiments of the present application may be fully or partially integrated into one physical entity during actual implementation, or may be physically separated.
- these modules can all be implemented in the form of software calling through processing elements; they can also all be implemented in hardware; some modules can also be implemented in the form of software calling through processing elements, and some modules can be implemented in hardware.
- the detection module may be a separately established processing element, or may be integrated in a certain chip of the electronic device.
- the implementation of other modules is similar.
- all or part of these modules can be integrated together, and can also be implemented independently.
- each step of the above-mentioned method or each of the above-mentioned modules can be completed by an integrated logic circuit of hardware in the processor element or an instruction in the form of software.
- the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more specific integrated circuits (Application Specific Integrated Circuit, ASIC), or, one or more digital signal processors ( Digital Singnal Processor, DSP), or, one or more Field Programmable Gate Array (Field Programmable Gate Array, FPGA), etc.
- ASIC Application Specific Integrated Circuit
- DSP Digital Singnal Processor
- FPGA Field Programmable Gate Array
- these modules can be integrated together and implemented in the form of an on-chip device (System-On-a-Chip, SOC).
- An embodiment of the present application also provides an electronic device, the electronic device includes a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the electronic device is triggered The device executes the method steps for detecting an online device as described in the embodiments of the present application.
- An embodiment of the present application also provides an electronic device, the electronic device includes a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the electronic device is triggered The device executes the method steps for responding to the online status as described in the embodiments of the present application.
- the above-mentioned one or more computer programs are stored in the above-mentioned memory, and the above-mentioned one or more computer programs include instructions.
- the above-mentioned instructions are executed by the above-mentioned device, the above-mentioned device is made to execute the application. The method steps described in the examples.
- the processor of the electronic device may be an on-chip device SOC, the processor may include a CPU, and may further include other types of processors.
- the processor of the electronic device may be a PWM control chip.
- the involved processor may include, for example, a CPU, a DSP, a microcontroller, or a digital signal processor, and may also include a GPU, an embedded Neural-network Process Units (NPU, NPU) ) and an image signal processor (Image Signal Processing, ISP), the processor may also include necessary hardware accelerators or logic processing hardware circuits, such as ASICs, or one or more integrated circuits for controlling the execution of programs in the technical solution of the present application Wait. Furthermore, the processor may have the function of operating one or more software programs, which may be stored in a storage medium.
- the memory of the electronic device may be a read-only memory (ROM), other types of static storage devices that can store static information and instructions, random access memory (random access memory) memory, RAM) or other types of dynamic storage devices that can store information and instructions, also can be electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), compact disc read-only memory, CD-ROM) or other optical disk storage, optical disk storage (including compact disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage medium or other magnetic storage device, or can also be used for portable or Any computer-readable medium that stores desired program code in the form of instructions or data structures and can be accessed by a computer.
- ROM read-only memory
- RAM random access memory
- dynamic storage devices that can store information and instructions
- EEPROM electrically erasable programmable read-only memory
- CD-ROM compact disc read-only memory
- optical disk storage including compact disk, laser disk, optical disk, digital versatile disk
- a processor may be combined with a memory to form a processing device, which is more commonly an independent component.
- the processor is used to execute program codes stored in the memory to implement the method described in the embodiment of the present application.
- the memory can also be integrated in the processor, or be independent of the processor.
- equipment, apparatus, apparatus, module or unit described in the embodiments of the present application may be specifically implemented by a computer chip or entity, or implemented by a product having a certain function.
- the embodiments of the present application may be provided as a method, an apparatus, or a computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media having computer-usable program code embodied therein.
- any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
- the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution.
- the computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
- an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when it runs on a computer, the computer executes the method provided by the embodiment of the present application.
- An embodiment of the present application further provides a computer program product, where the computer program product includes a computer program that, when running on a computer, causes the computer to execute the method provided by the embodiment of the present application.
- These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.
- These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions
- the apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.
- At least one of a, b, and c may represent: a, b, c, a and b, a and c, b and c or a and b and c, where a, b, c may be single, or Can be multiple.
- the terms “comprising”, “comprising” or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements not only includes those elements, but also includes Other elements not expressly listed, or which are inherent to such a process, method, article of manufacture, or apparatus are also included.
- an element qualified by the phrase “comprising a" does not preclude the presence of additional identical elements in the process, method, article of manufacture, or device that includes the element.
- the application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer.
- program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types.
- the application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network.
- program modules may be located in both local and remote computer storage media including storage devices.
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)
Abstract
Description
Claims (21)
- 一种通信方法,其特征在于,包括:基于蓝牙低能耗技术广播发布探测请求报文,其中,所述探测请求报文为BLE广播报文;所述探测请求报文中包含在线设备探测所针对的设备组网的网络标识;所述探测请求报文中的网络标识用于,令接收到所述探测请求报文的设备确认所述探测请求报文所针对的设备组网是否为自身所属的设备组网;基于蓝牙低能耗技术,接收广播发布的,包含有所述网络标识的探测应答报文,其中:所述探测应答报文为BLE广播报文;所述探测应答报文为,所述在线设备探测所针对的设备组网中在线的设备,在接收到所述探测请求报文后,根据所述探测请求报文所生成的应答报文;根据所述探测应答报文确定所述设备组网中的在线设备。
- 根据权利要求1所述的方法,其特征在于,所述探测请求报文以及所述探测应答报文的数据内容类型被设定为自定义类型,所述探测请求报文以及所述探测应答报文的数据内容中被写入所述网络标识。
- 根据权利要求1所述的方法,其特征在于,所述探测应答报文包含所述探测应答报文的发送设备的设备标识。
- 根据权利要求1所述的方法,其特征在于,所述基于蓝牙低能耗技术,接收广播发布的,包含有所述网络标识的探测应答报文,包括,基于蓝牙低能耗技术,接收广播发布的,包含有所述在线设备探测所针对的设备组网的网络标识以及当前设备的报文标识的探测应答报文。
- 根据权利要求4所述的方法,其特征在于,所述探测请求报文包含所述当前设备的报文标识。
- 根据权利要求4或5所述的方法,其特征在于,所述基于蓝牙低能耗技术,接收广播发布的,包含有所述网络标识以及所述当前设备的报文标识的探测应答报文,包括:基于预设的第一过滤条件接收蓝牙低能耗报文以接收所述探测应答报文,其中,所述第一过滤条件包括:所述探测应答报文为BLE广播报文;所述探测应答报文包含所述当前设备的报文标识;所述探测应答报文包含所述在线设备探测所针对的设备组网的网络标识。
- 根据权利要求1-6中任一项所述的方法,其特征在于,基于可在休眠状态下启用的功能模块生成所述探测请求报文,和/或确定所述设备组网中的在线设备。
- 根据权利要求1-6中任一项所述的方法,其特征在于,按照预设的第一时间间隔,定期发布所述探测请求报文、接收所述探测应答报文、以及确定所述设备组网中的在线设备。
- 根据权利要求1-6中任一项所述的方法,其特征在于,所述方法还包括:基于蓝牙低能耗技术,接收广播发布的,包含有当前设备所属设备组网的网络标识的在线报文,其中:所述在线报文为BLE广播报文;所述在线报文为,所述当前设备所属的设备组网中在线的设备,按照预设的第二时间间隔,定期发布的报文;根据所述在线报文确定所述当前设备所属的设备组网中的在线设备。
- 一种通信方法,其特征在于,包括:基于蓝牙低能耗技术接收广播报文,当接收到包含有当前设备所属的设备组网的网络标识的探测请求报文时,根据所述探测请求报文生成包含所述网络标识的探测应答报文,基于蓝牙低能耗技术广播发布所述探测应答报文,其中:所述探测请求报文为BLE广播报文;所述探测应答报文为BLE广播报文;所述探测应答报文中包含的网络标识与所述探测请求报文一致,所述探测应答报文中的网络标识用于,在发布所述探测请求报文的设备接收到所述探测应答报文时,令接收所述探测应答报文的设备确认所述探测应答报文与所述探测请求报文是否对应。
- 根据权利要求10所述的方法,其特征在于,所述探测应答报文还包含当前设备的设备标识,所述探测应答报文中的设备标识用于,在发布所述探测请求报文的设备接收到所述探测应答报文时,令发布所述探测请求报文的设备识别所述当前设备的身份。
- 根据权利要求10所述的方法,其特征在于,所述探测请求报文包含发布所述探测请求报文的设备的报文标识,所述探测请求报文中的报文标识用于,在发布所述探测请求报文的设备接收到所述探测应答报文时,令发布所述探测请求报文的设备确认所述探测应答报文与发布所述探测请求报文的设备是否对应。
- 根据权利要求10所述的方法,其特征在于,所述基于蓝牙低能耗技术接收广播报文,包括:基于预设的第二过滤条件接收蓝牙低能耗报文以接收所述探测请求报文,其中,所述第二过滤条件包括:所述探测请求报文为BLE广播报文;所述探测应答报文包含所述当前设备所属的设备组网的网络标识。
- 根据权利要求10-13中任一项所述的方法,其特征在于,基于可在休眠状态下启用的功能模块生成所述探测应答报文。
- 根据权利要求10-13中任一项所述的方法,其特征在于,所述方法还包括:按照预设的第二时间间隔,定期基于蓝牙低能耗技术广播发布在线报文,其中:所述在线报文为BLE广播报文;所述在线报文包含当前设备所属设备组网的网络标识。
- 一种通信装置,其特征在于,包括:报文广播模块,其用于基于蓝牙低能耗技术广播发布探测请求报文,其中,所述探测请求报文为BLE广播报文;所述探测请求报文中包含在线设备探测所针对的设备组网的网络标识;所述探测请求报文中的网络标识用于,令接收到所述探测请求报文的设备确认所述探测请求报文所针对的设备组网是否为自身所属的设备组网;报文接收模块,其用于基于蓝牙低能耗技术,接收广播发布的,包含有所述网络标识的探测应答报文,其中:所述探测应答报文为BLE广播报文;所述探测应答报文为,所述在线设备探测所针对的设备组网中在线的设备,在接收到所述探测请求报文后,根据所述探测请求报文所生成的应答报文;在线状态判定模块,其用于根据所述探测应答报文确定所述设备组网中的在线设备。
- 一种通信装置,其特征在于,包括:报文广播模块,其用于基于蓝牙低能耗技术接收广播报文,当接收到包含有当前设备所属的设备组网的网络标识的探测请求报文时,根据所述探测请求报文生成包含所述网络标识的探测应答报文,基于蓝牙低能耗技术广播发布所述探测应答报文,其中:所述探测请求报文为BLE广播报文;所述探测应答报文为BLE广播报文;所述探测应答报文中包含的网络标识与所述探测请求报文一致,所述探测请求报文中的网络标识用于,令发布所述探测请求报文的设备确认所述探测应答报文与所述探测请求报文是否对应。
- 一种通信方法,其特征在于,包括:当设备组网中的第一设备存在在线设备探测需求时,所述第一设备基于蓝牙低能耗技术广播发布探测请求报文,其中,所述探测请求报文为BLE广播报文;所述探测请求报文中包含在线设备探测所针对的设备组网的网络标识;所述探测请求报文中的网络标识用于,令接收到所述探测请求报文的设备确认所述探测请求报文所针对的设备组网是否为自身所属的设备组网;所述设备组网中的在线设备基于蓝牙低能耗技术接收广播报文,其中,当所述设备组网中在线的第二设备接收到所述探测请求报文时,所述第二设备根据所述探测请求报文生成包含所述网络标识的探测应答报文,基于蓝牙低能耗技术广播发布所述探测应答报文,其中:所述探测应答报文为BLE广播报文;所述探测应答报文中包含的网络标识与所述探测请求报文一致;所述第一设备基于通过蓝牙低能耗技术接收广播报文以获取在线设备探测结果,其中,当所述第一设备接收到所述探测应答报文时,所述第一设备判定所述第二设备在线。
- 一种通信方法,其特征在于,包括:当设备组网中的第一设备存在在线设备探测需求时,所述第一设备向所述设备组网中的第二设备发送在线设备探测请求;当所述第二设备接收到所述在线设备探测请求时,所述第二设备基于蓝牙低能耗技术广播发布探测请求报文,其中,所述探测请求报文为BLE广播报文;所述探测请求报文中包含在线设备探测所针对的设备组网的网络标识;所述探测请求报文中的网络标识用于,令接收到所述探测请求报文的设备确认所述探测请求报文所针对的设备组网是否为自身所属的设备组网;所述设备组网中的在线设备基于蓝牙低能耗技术接收广播报文,其中,当所述设备组网中在线的第三设备接收到所述探测请求报文时,所述第三设备根据所述探测请求报文生成包含所述网络标识的探测应答报文,基于蓝牙低能耗技术广播发布所述探测应答报文,其中:所述探测应答报文为BLE广播报文;所述探测应答报文中包含的网络标识与所述探测请求报文一致;所述第二设备基于通过蓝牙低能耗技术接收广播报文以获取在线设备探测结果,其中,当所述第二设备接收到所述探测应答报文时,所述第二设备判定所述第三设备在线;所述第一设备从所述第二设备处获取所述在线设备探测结果。
- 一种电子设备,其特征在于,所述电子设备包括用于存储计算机程序指令的存储器和用于执行程序指令的处理器,其中,当该计算机程序指令被该处理器执行时,触发所 述电子设备执行如权利要求1-9中任一项所述的方法步骤。
- 一种电子设备,其特征在于,所述电子设备包括用于存储计算机程序指令的存储器和用于执行程序指令的处理器,其中,当该计算机程序指令被该处理器执行时,触发所述电子设备执行如权利要求10-15中任一项所述的方法步骤。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US18/034,507 US12581280B2 (en) | 2020-10-30 | 2021-10-27 | Communication method and apparatus, and electronic device |
| EP21885221.8A EP4224898B1 (en) | 2020-10-30 | 2021-10-27 | Communication method and apparatus, and electronic device |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011193802.0A CN114449491B (zh) | 2020-10-30 | 2020-10-30 | 一种通信方法、装置和电子设备 |
| CN202011193802.0 | 2020-10-30 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2022089494A1 true WO2022089494A1 (zh) | 2022-05-05 |
Family
ID=81358261
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2021/126777 Ceased WO2022089494A1 (zh) | 2020-10-30 | 2021-10-27 | 一种通信方法、装置和电子设备 |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US12581280B2 (zh) |
| EP (1) | EP4224898B1 (zh) |
| CN (1) | CN114449491B (zh) |
| WO (1) | WO2022089494A1 (zh) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115019494A (zh) * | 2022-06-02 | 2022-09-06 | 武汉领普科技有限公司 | 无线开关、无线开关的处理方法及控制系统 |
| CN115038051A (zh) * | 2022-08-12 | 2022-09-09 | 北京智芯微电子科技有限公司 | 基于蓝牙的信息上报方法、接收方法、装置、设备及介质 |
| WO2023246056A1 (zh) * | 2022-06-21 | 2023-12-28 | Oppo广东移动通信有限公司 | 设备连接方法及装置、存储介质、芯片 |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN120302262A (zh) * | 2024-01-11 | 2025-07-11 | 青岛海尔智慧楼宇科技有限公司 | 空调器的组网方法、装置及空调器 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104043240A (zh) * | 2014-06-19 | 2014-09-17 | 青岛喵星信息科技有限公司 | 一种智能运动手镯 |
| CN104539324A (zh) * | 2014-12-25 | 2015-04-22 | 惠州Tcl移动通信有限公司 | 一种蓝牙低功耗组网互连方法及系统 |
| CN105873023A (zh) * | 2016-05-09 | 2016-08-17 | 深圳市天工测控技术有限公司 | 一种基于BLE mesh组网的室内定位系统及方法 |
| US20180049013A1 (en) * | 2015-03-18 | 2018-02-15 | Lg Electronics Inc. | Method and device for executing service discovery in wireless communication system |
Family Cites Families (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8824346B2 (en) | 2011-02-23 | 2014-09-02 | Lg Electronics Inc. | Remote wakeup of application processor of mobile device |
| GB201304219D0 (en) * | 2013-03-08 | 2013-04-24 | Tomtom Int Bv | Methods for communicating sensor data between devices |
| CN103368947B (zh) * | 2013-06-21 | 2016-05-18 | 腾讯科技(北京)有限公司 | 一种媒体信息的控制方法及相关设备、系统 |
| US9380119B2 (en) * | 2013-12-16 | 2016-06-28 | Nokia Technologies Oy | Method, apparatus, and computer program product for network discovery |
| WO2015135162A1 (en) * | 2014-03-12 | 2015-09-17 | Tencent Technology (Shenzhen) Company Limited | Method and device for controlling peripheral devices via a social networking platform |
| CN104053154B (zh) * | 2014-06-16 | 2018-05-22 | 福建星网锐捷网络有限公司 | 一种无线网络接入控制方法、装置和接入点设备 |
| CN105183136A (zh) | 2015-09-07 | 2015-12-23 | 联想(北京)有限公司 | 电子设备和信息处理方法 |
| US9642167B1 (en) * | 2015-12-17 | 2017-05-02 | Cisco Technology, Inc. | Location-based VoIP functions in a wireless network |
| JP6645920B2 (ja) * | 2016-07-06 | 2020-02-14 | 富士通コンポーネント株式会社 | 無線通信装置 |
| CN110557263B (zh) | 2018-05-31 | 2021-08-03 | 华为技术有限公司 | 待机控制方法、系统、终端设备和中继设备 |
| CN108684030B (zh) * | 2018-08-30 | 2020-12-11 | 新华三技术有限公司 | 一种检测网络标识冲突的方法及装置 |
| CN109067622A (zh) * | 2018-09-29 | 2018-12-21 | 新华三技术有限公司 | 状态探测方法、装置及网络服务器 |
| KR102521922B1 (ko) * | 2018-11-12 | 2023-04-14 | 삼성전자 주식회사 | 전자 장치 및 전자 장치의 액세스 포인트 정보 운용 방법 |
-
2020
- 2020-10-30 CN CN202011193802.0A patent/CN114449491B/zh active Active
-
2021
- 2021-10-27 WO PCT/CN2021/126777 patent/WO2022089494A1/zh not_active Ceased
- 2021-10-27 EP EP21885221.8A patent/EP4224898B1/en active Active
- 2021-10-27 US US18/034,507 patent/US12581280B2/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104043240A (zh) * | 2014-06-19 | 2014-09-17 | 青岛喵星信息科技有限公司 | 一种智能运动手镯 |
| CN104539324A (zh) * | 2014-12-25 | 2015-04-22 | 惠州Tcl移动通信有限公司 | 一种蓝牙低功耗组网互连方法及系统 |
| US20180049013A1 (en) * | 2015-03-18 | 2018-02-15 | Lg Electronics Inc. | Method and device for executing service discovery in wireless communication system |
| CN105873023A (zh) * | 2016-05-09 | 2016-08-17 | 深圳市天工测控技术有限公司 | 一种基于BLE mesh组网的室内定位系统及方法 |
Non-Patent Citations (2)
| Title |
|---|
| LG ELECTRONICS INC.: "Discussion on the open issue of probing mechanisms", 3GPP DRAFT; R3-121778 DISCUSSION ON THE OPEN ISSUE OF PROBING MECHANISMS, 3RD GENERATION PARTNERSHIP PROJECT (3GPP), MOBILE COMPETENCE CENTRE ; 650, ROUTE DES LUCIOLES ; F-06921 SOPHIA-ANTIPOLIS CEDEX ; FRANCE, vol. RAN WG3, no. Qingdao; 20120813 - 20120817, 4 August 2012 (2012-08-04), Mobile Competence Centre ; 650, route des Lucioles ; F-06921 Sophia-Antipolis Cedex ; France , XP050669587 * |
| See also references of EP4224898A4 * |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115019494A (zh) * | 2022-06-02 | 2022-09-06 | 武汉领普科技有限公司 | 无线开关、无线开关的处理方法及控制系统 |
| CN115019494B (zh) * | 2022-06-02 | 2024-02-06 | 武汉领普科技有限公司 | 无线开关、无线开关的处理方法及控制系统 |
| WO2023246056A1 (zh) * | 2022-06-21 | 2023-12-28 | Oppo广东移动通信有限公司 | 设备连接方法及装置、存储介质、芯片 |
| CN115038051A (zh) * | 2022-08-12 | 2022-09-09 | 北京智芯微电子科技有限公司 | 基于蓝牙的信息上报方法、接收方法、装置、设备及介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| US12581280B2 (en) | 2026-03-17 |
| CN114449491A (zh) | 2022-05-06 |
| EP4224898B1 (en) | 2025-12-24 |
| EP4224898A1 (en) | 2023-08-09 |
| US20230396974A1 (en) | 2023-12-07 |
| CN114449491B (zh) | 2024-06-04 |
| EP4224898A4 (en) | 2024-04-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2022089494A1 (zh) | 一种通信方法、装置和电子设备 | |
| RU2370916C1 (ru) | Посредник в локальной сети для удаленно подключенного мобильного устройства, работающего в режиме пониженного энергопотребления | |
| US10645559B2 (en) | Bluetooth connection method and terminal | |
| TWI382712B (zh) | 用以提供網路裝置的群組電力管理的裝置、方法、系統和電腦可讀媒體 | |
| US9495375B2 (en) | Battery pack with supplemental memory | |
| CN112703714B (zh) | 应用程序处理方法和装置、计算机设备、计算机可读存储介质 | |
| WO2007039807A1 (en) | Low-power proxy for providing content listings in ad-hoc, peer to peer networks | |
| TW201826810A (zh) | 服務提供方法、裝置、終端設備和操作系統 | |
| JP2013527684A (ja) | 電力消費を低減するための短距離通信ネットワークを介したwwanページング | |
| WO2024002071A1 (zh) | 基于lp-wus的寻呼方法、装置、设备、系统及存储介质 | |
| CN113794610B (zh) | 网关通讯方法、装置、设备及存储介质 | |
| WO2017076331A1 (zh) | 一种开机方法及装置 | |
| CN109413120B (zh) | 一种通信方法及装置、电子设备及服务器 | |
| WO2024114274A1 (zh) | IoT设备配网方法及相关装置 | |
| WO2020063261A1 (zh) | 一种音箱的交互方法、音箱及音箱系统 | |
| CN114640978A (zh) | 一种心跳同步方法、电子设备和系统 | |
| CN115643121A (zh) | 智能设备连接网络的方法、装置、存储介质及智能设备 | |
| CN112835826B (zh) | 一种通信方法、装置、设备及可读存储介质 | |
| CN113840358B (zh) | 报文过滤方法、移动终端及计算机可读存储介质 | |
| CN115484576A (zh) | 一种基于心跳包的在线检测方法及设备 | |
| CN101471931B (zh) | 使用无线通信网络将电子设备从休眠模式唤醒的方法 | |
| WO2024216999A1 (zh) | 资源调度方法和装置 | |
| CN106604367A (zh) | 终端热点休眠的方法和装置 | |
| WO2019024643A1 (zh) | 数据同步管控方法、装置及电子设备 | |
| JP7762799B2 (ja) | ホワイトリストの管理方法、電子機器及びコンピュータ可読記憶媒体 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21885221 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 18034507 Country of ref document: US |
|
| ENP | Entry into the national phase |
Ref document number: 2021885221 Country of ref document: EP Effective date: 20230505 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| WWG | Wipo information: grant in national office |
Ref document number: 2021885221 Country of ref document: EP |
|
| WWG | Wipo information: grant in national office |
Ref document number: 18034507 Country of ref document: US |


