Device interaction method and system and related device

By analyzing the network protocol detection frame to obtain connection information, and directly establishing a connection with the device, solving the problem of time-consuming negotiation before the device is connected and achieving efficient device connection.

WO2025139034A1PCT designated stage expired Publication Date: 2025-07-03LENOVO (BEIJING) LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/117366
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-12-29
Filing Date
2024-09-06
Publication Date
2025-07-03

AI Technical Summary

Technical Problem

In the prior art, equipment information needs to be exchanged before connecting, resulting in an increase in connection time and affecting the connection efficiency.

Method used

By obtaining the network protocol detection frame sent by the third device in response to the external device scanning stage, analyzing the connection information therein, and directly establishing a connection with the second device based on this information, omitting the previous negotiation process.

Benefits of technology

It realizes fast and accurate connection between devices and improves connection efficiency, especially in the scenarios of the Internet of Things and Internet of Things.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024117366_03072025_PF_FP_ABST
    Figure CN2024117366_03072025_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present application are a device interaction method and system and a related device. The method comprises: in response to a first device being in an external device scanning stage, obtaining a first network protocol probe frame sent by a third device, wherein the first network protocol probe frame carries second information of at least one second device; analyzing the first network protocol probe frame to acquire second connection information which is comprised in the second information and is used for establishing a connection to an external device; determining that the first device requests a connection to the second device and, on the basis of the second connection information, establishing a connection to the second device.
Need to check novelty before this filing date? Find Prior Art

Description

Device interaction method, system and related equipment

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on December 29, 2023, with application number 202311865010.7 and application name “Device interaction method, first device, third device and device interaction system”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The embodiments of the present application relate to the field of wireless communications, and are related to, but not limited to, a device interaction method, system, and related devices. Background Art

[0003] In existing technology solutions, when devices need to connect, a device discovery and information exchange process is required before each connection. For example, Bluetooth is used to exchange information before devices connect. This pre-connection negotiation step requires exchanging device information and increases the overall connection time. Improving the efficiency of device connections has become a pressing technical issue.

[0004] Summary of the Invention

[0005] In view of this, embodiments of the present application provide a device interaction method, system, and related devices.

[0006] The technical solution of the embodiment of the present application is implemented as follows:

[0007] In a first aspect, an embodiment of the present application provides a device interaction method, the method comprising:

[0008] In response to the first device being in an external device scanning phase, obtaining a first network protocol detection frame sent by a third device, wherein the first network protocol detection frame carries second information of at least one second device;

[0009] Parsing the first network protocol detection frame to obtain second connection information included in the second information for establishing a connection with an external device;

[0010] Determine that the first device requests to connect to the second device, and establish a connection with the second device based on the second connection information.

[0011] In a second aspect, an embodiment of the present application provides a device interaction method, the method comprising:

[0012] The third device obtains a probe request frame sent by the second device during the external device scanning phase, where the probe request frame carries second information of the second device, where the second information includes second connection information for establishing a connection with the external device;

[0013] The second connection information is added to a beacon frame for broadcasting, so that the first device obtains the second connection information; or in response to a probe request frame sent by the first device, the second connection information is added to a probe response frame and sent to the first device.

[0014] In a third aspect, an embodiment of the present application provides a first device, which is capable of connecting to a third device, and includes:

[0015] a first receiving device, configured to obtain, in response to the first device being in an external device scanning phase, a first network protocol detection frame sent by the third device, wherein the first network protocol detection frame carries second information of at least one second device;

[0016] a first processing device, configured to parse the first network protocol detection frame and obtain second connection information included in the second information for establishing a connection with an external device;

[0017] The first connection device is configured to determine that the first device requests to connect to the second device, and establish a connection with the second device based on the second connection information.

[0018] In a fourth aspect, an embodiment of the present application provides a third device capable of connecting to a first device and a second device, the third device comprising:

[0019] a third receiving device, configured to obtain a probe request frame sent by a second device during an external device scanning phase, wherein the probe request frame carries second information of the second device, and the second information includes second connection information for establishing a connection with the external device;

[0020] a third sending device, configured to add the second connection information to a beacon frame for broadcasting, so that the first device obtains the second connection information; or

[0021] The third sending device is configured to, in response to the probe request frame sent by the first device, add the second connection information to a probe response frame and send the frame to the first device.

[0022] In a fifth aspect, an embodiment of the present application provides a device interaction system, which at least includes the above-mentioned first device, second device and third device, wherein the first device and the second device are respectively connected to the third device.

[0023] In a sixth aspect, an embodiment of the present application provides a computer program product, including computer-readable instructions. When the computer-readable instructions are executed on an electronic device serving as a first device, the electronic device implements the following steps:

[0024] In response to the first device being in an external device scanning phase, obtaining a first network protocol detection frame sent by a third device, wherein the first network protocol detection frame carries second information of at least one second device;

[0025] Parsing the first network protocol detection frame to obtain second connection information included in the second information for establishing a connection with an external device;

[0026] Determine that the first device requests to connect to the second device, and establish a connection with the second device based on the second connection information.

[0027] In a seventh aspect, an embodiment of the present application provides an electronic device, comprising: a memory and a processor, wherein:

[0028] When the electronic device serves as the first device, the processor runs the computer program stored in the memory and performs the following steps:

[0029] In response to the first device being in an external device scanning phase, obtaining a first network protocol detection frame sent by a third device, wherein the first network protocol detection frame carries second information of at least one second device;

[0030] Parsing the first network protocol detection frame to obtain second connection information included in the second information for establishing a connection with an external device;

[0031] Determine that the first device requests to connect to the second device, and establish a connection with the second device based on the second connection information.

[0032] In an eighth aspect, an embodiment of the present application provides an electronic device, comprising: a memory and a processor, wherein:

[0033] When the electronic device serves as the third device, the processor runs the computer program stored in the memory and performs the following steps:

[0034] Acquire a probe request frame sent by a second device during the external device scanning phase, where the probe request frame carries second information of the second device, where the second information includes second connection information for establishing a connection with the external device;

[0035] The second connection information is added to a beacon frame for broadcasting, so that the first device obtains the second connection information; or in response to a probe request frame sent by the first device, the second connection information is added to a probe response frame and sent to the first device.

[0036] In a ninth aspect, an embodiment of the present application provides a computer storage medium having a computer program stored thereon, wherein when the computer program is executed by an electronic device serving as a first device, the following steps are implemented:

[0037] In response to the first device being in an external device scanning phase, obtaining a first network protocol detection frame sent by a third device, wherein the first network protocol detection frame carries second information of at least one second device;

[0038] Parsing the first network protocol detection frame to obtain second connection information included in the second information for establishing a connection with an external device;

[0039] Determine that the first device requests to connect to the second device, and establish a connection with the second device based on the second connection information.

[0040] In a tenth aspect, an embodiment of the present application provides a computer storage medium having a computer program stored thereon, wherein when the computer program is executed by an electronic device serving as a third device, the following steps are implemented:

[0041] Acquire a probe request frame sent by a second device during the external device scanning phase, where the probe request frame carries second information of the second device, where the second information includes second connection information for establishing a connection with the external device;

[0042] The second connection information is added to a beacon frame for broadcasting, so that the first device obtains the second connection information; or in response to a probe request frame sent by the first device, the second connection information is added to a probe response frame and sent to the first device.

[0043] In an embodiment of the present application, first, in response to the first device being in the external device scanning phase, a first network protocol detection frame sent by a third device is obtained, wherein the first network protocol detection frame carries the second information of at least one second device; then, the first network protocol detection frame is parsed to obtain the second connection information included in the second information for establishing a connection with the external device; finally, it is determined that the first device requests to connect to the second device, and a connection is established with the second device based on the second connection information. In this way, the first device can obtain the second information during the external device scanning phase, so that when requesting to connect to the second device, it can quickly and accurately connect to the second device without the need for a preliminary negotiation process, thereby effectively improving the connection efficiency between devices. Both one-to-one and one-to-many connections are equally efficient, and have great advantages in the scenario of the Internet of Things (IOT), where everything is connected. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] FIG1A is a schematic diagram of an implementation flow of a device interaction method provided in an embodiment of the present application;

[0045] FIG1B is a MAC frame structure provided in an embodiment of the present application;

[0046] FIG1C is a schematic diagram of the structure of a Frame Control provided in an embodiment of the present application;

[0047] FIG1D is a table of Type bytes and Subtype bytes provided in an embodiment of the present application;

[0048] FIG1E is a schematic diagram of the structure of an Element provided in an embodiment of the present application;

[0049] FIG1F is an Element ID filling form provided in an embodiment of the present application;

[0050] FIG1G is a schematic diagram of a Vendor Specific 221 frame structure provided in an embodiment of the present application;

[0051] FIG1H is a schematic diagram of a Vendor Specific 221 frame filling content provided in an embodiment of the present application;

[0052] FIG2 is a schematic diagram of a flow chart of a method for a first device to send a probe request frame according to an embodiment of the present application;

[0053] FIG3A is a schematic diagram of the composition structure of a first device provided in an embodiment of the present application;

[0054] FIG3B is a schematic diagram of the composition structure of a third device provided in an embodiment of the present application;

[0055] FIG4 is a schematic diagram of the structure of a device interaction system provided in an embodiment of the present application;

[0056] FIG5 is a schematic diagram of the structure of a device interaction apparatus provided in an embodiment of the present application;

[0057] FIG6 is a schematic diagram of a hardware entity of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0058] To make the purpose, technical solutions and advantages of the embodiments of the present application more clear, the specific technical solutions of the embodiments of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application but are not intended to limit the scope of the present application.

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

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

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

[0062] The present invention provides a device interaction method, as shown in FIG1A , including:

[0063] Step S110: In response to the first device being in the external device scanning phase, obtaining a first network protocol detection frame sent by a third device, wherein the first network protocol detection frame carries second information of at least one second device;

[0064] Here, the first device can be any type of terminal device with external device scanning capabilities. The external device scanning phase involves real-time, automatically triggered device scanning by the first device, with a very high frequency of location-triggered scanning. The third device can be capable of periodically broadcasting a first network protocol probe frame, or sending a probe response frame to the first device in response to a probe request frame sent by the first device during the external device scanning phase. The first network protocol can be a protocol that enables the third device to broadcast probe frames or send probe response frames.

[0065] The first network protocol may be a wireless communication protocol, i.e., a protocol used for inter-device communication in a wireless communication environment, responsible for networking and communication between devices within the network, such as Wireless Fidelity (WIFI), IPv6 Ethernet (6Ethernet), Radio Frequency Identification (RFID), Near Field Communication (NFC), Zigbee, IPv6 Low-Speed ​​Wireless Version (6LoWPAN), Global System for Mobile Communications (GSM), General Packet Radio Service (GPS), Bluetooth (BT), 3G, 4G, 5G, etc. These protocols can ensure the security and reliability of data transmitted on the network.

[0066] For example, the first network protocol may be a WIFI network protocol, the third device may be a WIFI routing device, and the first device and the second device may be terminal devices that can connect to the WIFI routing device. Here, the WIFI driver can be automatically loaded when the first device is turned on, and the WIFI driver is always active, even if the WIFI function is turned off. It is the most basic capability of electronic devices and does not incur additional overhead. Since the coverage of WIFI routers and WIFI is much greater than that of BT or NFC, electronic devices connected to the cluster router can achieve fast connections across floors, buildings, and the entire campus.

[0067] In some embodiments, the first network protocol detection frame may be a detection frame of a WIFI MAC. Figure 1B is a MAC frame structure provided in an embodiment of the present application. As shown in Figure 1B, the frame header (MAC Header) of the MAC frame includes a Frame Control. Figure 1C is a structural diagram of a Frame Control provided in an embodiment of the present application. As shown in Figure 1C, the Frame Control includes a Type byte and a Subtype byte. Figure 1D is a table of Type bytes and Subtype bytes provided in an embodiment of the present application. As shown in Figure 1D, the table includes a Beacon frame, a Probe Request frame, and a Probe Response frame.

[0068] Here, beacon frames, probe request frames and probe response frames are management frames of WIFI MAC, which can be sent and received regardless of whether a router is connected. Among them, Beacon frame and Probe Request are broadcast frames, Probe Response is a unicast frame, and the data in the frame body is filled by Element. Figure 1E is a structural diagram of an Element provided in an embodiment of the present application, and Figure 1F is an Element ID filling table provided in an embodiment of the present application. As shown in Figure 1F, some Element IDs are reserved (Reserved), that is, they have not been used. During the implementation process, these IDs can be used, or the customizable field of Vendor Specific 221 can be used directly to carry the second information. Figure 1G is a schematic diagram of the frame structure of Vendor Specific 221 provided in an embodiment of the present application. As shown in Figure 1G, the Vendor Specific 221 includes an element ID (Element ID), length (Length), organization identifier (Organization Identifier) ​​and vendor-specific content (Vender-specific content). Figure 1H is a schematic diagram of the Vendor Specific 221 frame filling content provided in an embodiment of the present application. As shown in Figure 1H , the code (Number) is Vendor Specific 221, the length (Length) is 7, and the vendor identifier (OUI) is 00:0C:43, which is the vendor code. The vendor filling content includes Type (Type): 7 and Data (Data): 07000000. During implementation, users can fill in the OUI, Type, and Data fields with the second information as needed.

[0069] Beacon frames, Probe Request frames, and Probe Response frames all contain one or more Element IDs 221, Vendor Specific. Currently, most devices use independent Wi-Fi scanning, independent of the Wi-Fi switch. This allows the Vendor Specific field to be used to discover the desired device and share information before connecting, without requiring any additional effort.

[0070] During implementation, the first device can automatically trigger a device scan in real time. Each time the first device triggers an external device scan, it can obtain a first network protocol detection frame sent by the third device to update the surrounding connectable devices (the second device). Here, the discovery and information sharing of the second device is almost real-time because the first device's automatic scanning and positioning triggering scan frequency is very high, which is equivalent to updating the surrounding connectable devices with each scan.

[0071] Step S120: parsing the first network protocol detection frame to obtain second connection information included in the second information for establishing a connection with an external device;

[0072] Here, the second connection information includes at least one of the following: a service set identifier (SSID) of the connection, a local area network address of a wireless access point, a device tag, an application identifier of the connection, a device name, and an attribute feature of the device.

[0073] The attribute characteristics of the device include at least one of the following: screen size, resolution, audio codec, video codec and transmission rate.

[0074] In some embodiments, the second connection information also includes a Basic Service Set Identifier (BSSID). For example, a company is relatively large and has installed several wireless access points (APs) or wireless routers. Company employees only need to know one SSID to access the wireless network anywhere within the company. The BSSID can be the MAC address of each wireless access point. When employees move within the company, the SSID remains unchanged. However, the BSSID changes continuously as you switch to different wireless access points.

[0075] In some embodiments, the second connection information further includes a TCP / UDP port, wherein the TCP protocol is the Transmission Control Protocol (TCP), and the UDP protocol is the User Datagram Protocol (UDP), both of which belong to the transport layer protocol.

[0076] During implementation, the first device may parse the first network protocol detection frame to obtain at least one of the above second connection information. For example, the first device may obtain the service set identifier of the connection of the second device, the local area network address of the wireless access point, and the device name.

[0077] Step S130: Determine that the first device requests to connect to the second device, and establish a connection with the second device based on the second connection information.

[0078] For example, the first device may establish a connection based on the second connection information when the first device requests to establish a WIFI point-to-point (WIFIp2p), BT, or NFC connection with the second device.

[0079] In an embodiment of the present application, first, in response to the first device being in the external device scanning phase, a first network protocol detection frame sent by a third device is obtained, wherein the first network protocol detection frame carries the second information of at least one second device; then, the first network protocol detection frame is parsed to obtain the second connection information included in the second information for establishing a connection with the external device; finally, it is determined that the first device requests to connect to the second device, and a connection is established with the second device based on the second connection information. In this way, the first device can obtain the second information during the external device scanning phase, so that when requesting to connect to the second device, it can quickly and accurately connect to the second device without the need for a preliminary negotiation process, thereby effectively improving the connection efficiency between devices. Both one-to-one and one-to-many connections are equally efficient, and have great advantages in the Internet of Things (IOT) scenario where everything is connected.

[0080] In some embodiments, the above step S110 “obtaining the first network protocol detection frame sent by the third device in response to the first device being in the external device scanning phase” can be implemented by one of the following steps:

[0081] Step 111: In response to the probe request frame sent by the first device during the external device scanning phase, the first device receives the probe response frame of the third device as the first network protocol probe frame;

[0082] During the implementation process, during the external device scanning phase, the first device sends a probe request frame to the third device, and the third device sends a probe response frame to the first device in response to the acquired probe request frame. The probe response frame may include the device information of other devices acquired by the third device. For example, during the WIFI scanning phase, the terminal as the first device may send a Probe Request frame to the routing device as the third device. After receiving the Probe Request frame, the routing device returns a Probe Response frame to the terminal. The Probe Response frame may carry information about other connected terminals scanned by the routing device. In some embodiments, the information about the other connected terminals may be stored in a preset information table in the routing device. The information table may be updated in real time based on changes in the terminal connected to the routing device. In this way, the terminal device can obtain the latest information table in real time.

[0083] or,

[0084] Step 112: During the external device scanning phase, the first device listens for and receives a beacon frame broadcasted by the third device as the first network protocol detection frame.

[0085] During the implementation process, the third device can send a beacon frame by broadcasting at a fixed time, and the first device listens to the broadcast to obtain a first network protocol frame. For example, in the WIFI scanning phase, the routing device as the third device sends a Beacon frame by broadcasting, and the terminal as the first device can receive the Beacon frame. The Beacon frame can carry the information of the connection terminal scanned by the routing device, wherein the connection terminal can be the first device and the second device, that is, the first device and the second device are both devices connected to the third device, and their positions in the network can be equivalent. In some embodiments, the information of the connection terminal can be stored in a preset information table in the routing device. The information table can be updated in real time based on changes in the terminal connected to the routing device. In this way, the terminal devices (the first device and the second device) can obtain the latest information table in real time.

[0086] In this embodiment of the present application, in response to a probe request frame sent by the first device during the external device scanning phase, the first device receives a probe response frame from the third device as the first network protocol probe frame; or, in the external device scanning phase, the first device intercepts and receives a beacon frame broadcast and sent by the third device as the first network protocol probe frame. In this way, the first device can obtain the probe response frame or the beacon frame as the first network protocol probe frame.

[0087] In some embodiments, before the step 111 in which "the first device receives the probe response frame of the third device as the first network protocol probe frame", the following steps are also included:

[0088] Step 113: The first device is in the external device scanning phase, and in response to the first device sending a probe request frame to the third device, wherein the probe request frame carries first information of the first device, and the first information includes first connection information for establishing a connection with the external device.

[0089] During implementation, the first device is equivalent to the second device, that is, the first device and / or the second device both send a probe request frame to the third device during the external device scanning phase, wherein the probe request frame sent by the first device carries the first information, and the probe request frame sent by the second device carries the second information. The third device can obtain the device information of any device that sends a probe request frame to it. For example, a routing device, as the third device, can obtain the terminal information of any terminal that sends a probe request frame to it during the external device scanning phase, and the terminal information includes connection information of the terminal establishing a connection with other terminals, and the connection can be a BT connection or an NFC connection.

[0090] In the embodiment of the present application, the first device is in the external device scanning phase, and in response to the first device sending a probe request frame to the third device, the third device can receive the device information of the device that sent the probe request frame to it.

[0091] In some embodiments, as shown in FIG2 , in step 113 above, “in response to the first device being in the external device scanning phase, the first device sending a probe request frame to the third device” may be implemented by the following steps:

[0092] Step S210: The first device uses a target application to obtain first attribute information of the first device, where the first attribute information is used for device grouping.

[0093] Here, the target application may be an application provided in the first device or the second device, and the target application may be used to obtain the first attribute information of the first device or the second attribute information of the second device.

[0094] The first attribute information includes at least one of the following information: connection capability, location information, and an identifier set by the user. During implementation, the first attribute information can be used to group devices. For example, based on the connection capability, devices can be divided into a group with BT connection capability and a group with NFC connection capability; based on the location information, devices within the same location range can be divided into the same group, and the location range can be the same room, the same building, or the same work park; based on the identifier set by the user, devices with the same identifier can be divided into the same group, and users can set the same identifier for the devices they manage to divide the devices they manage into the same group.

[0095] Step S220: add the first attribute information of the first device to the first information and send the first information to the third device, so that the third device groups the first device and the second device based on the first information and the second information including the second attribute information of the second device to obtain a target device group belonging to the same attribute.

[0096] During implementation, the target application may be used to add the first attribute information to the first information and send the first information to the third device, so that the third device can group the first device and the second device based on the first attribute information and the second attribute information.

[0097] In some embodiments, when the third device broadcasts a Beacon frame or returns a Probe Response frame to the first device or the second device, it only sends or returns information about devices with a target application identifier. This allows electronic devices that have the target application configured to efficiently obtain information about electronic devices that have also configured the target application, thereby improving connection efficiency.

[0098] In an embodiment of the present application, the first device uses a target application to obtain first attribute information of the first device, and the first attribute information is used for device grouping. The first attribute information of the first device is added to the first information, so that the third device groups the first and second devices based on the first information and second information including the second attribute information of the second device, thereby obtaining a target group of devices with the same attribute. In this way, by setting a target application on the first device to obtain the first attribute information for device grouping, the third device can group the first and second devices, and then send information after grouping, which can effectively improve connection efficiency.

[0099] In some embodiments, the above step S110 “obtaining the first network protocol detection frame sent by the third device in response to the first device being in the external device scanning phase” can be implemented by the following process:

[0100] In response to the first device being in the external device scanning phase, second connection information of at least one second device belonging to the same target device group as the first device and sent by the third device is obtained.

[0101] During implementation, since the third device can group the second device and the first device based on the second attribute information and the first attribute, when the third device sends the first network protocol detection frame to the first device, it can send the second connection information of at least one second device that belongs to the same target device group as the first device. For example, based on the connection capability, the third device divides the devices into a group with BT connection capability and a group with NFC connection capability, and then can send the second connection information of the second device that also has BT connection capability as the first device to the first device; the third device can divide the devices within the same location range into the same group based on location information, and the location range can be the same room, the same building, or the same work park, and then can send the second connection information of the second device that belongs to the same room as the first device to the first device; the third device can divide the devices with the same identifier into the same group based on the identifier set by the user. The user can set the same identifier for the devices under his / her management to divide the devices under his / her management into the same group, and then the third device can send the second connection information of the second device with the same identifier as the first device to the first device.

[0102] In this embodiment of the present application, during the external device scanning phase, the first device receives second connection information from the third device for at least one second device belonging to the same target device group as the first device. Thus, by sending device information belonging to the same group to the first device, the first device can efficiently connect to the desired device.

[0103] In conjunction with the description of the content executed by the third device, the device interaction method provided in the embodiment of the present application includes:

[0104] During the external device scanning phase, the third device receives a probe request frame sent by the second device. The probe request frame carries second information about the second device, including second connection information for establishing a connection with the external device. The third device then adds the second connection information to a beacon frame and broadcasts it, allowing the first device to obtain the second connection information. Alternatively, in response to the probe request frame sent by the first device, the third device adds the second connection information to a probe response frame and sends it to the first device. The first device's subsequent processing can refer to the description of the corresponding portion of the above embodiment.

[0105] In some embodiments, during the external device scanning phase, a third device receives a probe request frame sent by the first device. The probe request frame carries first information of the first device, wherein the first information includes first connection information and first attribute information, and the second information includes second connection information and second attribute information. The first attribute information and the second attribute information are used for device grouping. The third device groups all first and second devices based on the first and second attribute information to obtain a target group of devices with the same attributes. The third device then adds the second connection information of the same group as the first device to a beacon frame for broadcast or to a probe response frame sent to the first device. The first device's subsequent processing may refer to the description of the corresponding section above.

[0106] An embodiment of the present application provides a first device, which is capable of connecting to a third device. As shown in FIG3A , the first device includes:

[0107] The first receiving device 301 is configured to obtain, in response to the first device being in an external device scanning phase, a first network protocol detection frame sent by the third device, wherein the first network protocol detection frame carries second information of at least one second device;

[0108] The first processing means 302 is configured to parse the first network protocol detection frame and obtain second connection information included in the second information for establishing a connection with an external device;

[0109] The first connecting means 303 is configured to determine that the first device requests to connect to the second device, and to establish a connection with the second device based on the second connection information.

[0110] In an embodiment of the present application, first, the first receiving device responds to the first device being in the external device scanning phase, and obtains the first network protocol detection frame sent by the third device, wherein the first network protocol detection frame carries the second information of at least one second device; then the first processing device parses the first network protocol detection frame, and obtains the second connection information included in the second information for establishing a connection with the external device; finally, the first connection device determines that the first device requests to connect to the second device, and establishes a connection with the second device based on the second connection information. In this way, the first device can obtain the second information during the external device scanning phase, so that when requesting to connect to the second device, it can quickly and accurately connect to the second device without the need for a preliminary negotiation process, thereby effectively improving the connection efficiency between devices. Both one-to-one and one-to-many connections are equally efficient, and have great advantages in the scenario of interconnecting everything in the Internet of Things.

[0111] This embodiment of the present application provides a third device that can be connected to the first device and the second device. As shown in FIG3B , the third device includes:

[0112] The third receiving device 311 is configured to obtain a probe request frame sent by a second device during an external device scanning phase, wherein the probe request frame carries second information of the second device, and the second information includes second connection information for establishing a connection with the external device;

[0113] The third sending means 312 is configured to add the second connection information to a beacon frame for broadcasting, so that the first device obtains the second connection information; or

[0114] The third sending means 312 is configured to, in response to the probe request frame sent by the first device, add the second connection information to a probe response frame and send the frame to the first device.

[0115] For example, the third device may be a routing device, and the first device and the second device are devices that can connect to the routing device. Based on the received Probe Request information, the routing device can maintain a device interconnection table, which maintains information such as the manufacturer, IP, port, device name, and device capabilities of the surrounding devices. It may broadcast to the surroundings through a Beacon frame, or reply to a specific device with the required connected device information through a Probe Response, thus synchronizing the surrounding interconnected device information in real time and efficiently.

[0116] In an embodiment of the present application, the third receiving device obtains a probe request frame sent by the second device during the external device scanning phase, wherein the probe request frame carries second information of the second device, and the second information includes second connection information for establishing a connection with the external device; the third sending device adds the second connection information to a beacon frame for broadcasting, so that the first device obtains the second connection information; or, the third sending device adds the second connection information to a probe response frame in response to the probe request frame sent by the first device and sends it to the first device. In this way, the first device can obtain the second information during the external device scanning phase, so that when requesting to connect to the second device, it can quickly and accurately connect to the second device without the need for a preliminary negotiation process, thereby effectively improving the connection efficiency between devices. Both one-to-one and one-to-many connections are equally efficient, and have great advantages in the scenario of interconnecting everything in the Internet of Things.

[0117] In some embodiments, the third receiving device of the third device is further configured to receive a probe request frame sent by the first device during an external device scanning phase, where the probe request frame carries first information of the first device, wherein the first information includes first connection information and first attribute information, and the second information includes second connection information and second attribute information, and the first attribute information and the second attribute information are used for device grouping;

[0118] The third device further includes a third processing device, the third processing device being configured to group all the first devices and the second devices based on the first attribute information and the second attribute information to obtain a target device group belonging to the same attribute;

[0119] Correspondingly, the third sending device is configured to add the second connection information belonging to the same group as the first device to a beacon frame for broadcasting or to add the second connection information to a probe response frame and send the second connection information to the first device.

[0120] In an embodiment of the present application, the third device can group all first devices and second devices based on the first attribute information and the second attribute information. After grouping, the third device can add the second connection information belonging to the same group as the first device to a beacon frame for broadcast or to a probe response frame and send it to the first device. In this way, sending the information of devices belonging to the same group to the first device can enable the first device to efficiently connect to the device to be connected.

[0121] An embodiment of the present application provides a device interaction system, as shown in FIG4 , which includes a first device 300 , a second device 320 , and a third device 310 , wherein the first device 300 and the second device 320 are connected to the third device 310 , respectively.

[0122] For example, if the first and second devices are connected to a router device (the third device) with the same SSID, the following information can be entered in the Vendor Specific fields of these three frames: SSID, BSSID, IP address, TCP / UDP port, device tag for the same vendor, connection application ID, device name, device capabilities (screen size, resolution, supported audio and video codecs, supported transmission rates), etc. With this information, the basic capabilities of the devices can be leveraged without additional dependencies to discover desired and connectable devices in near real time, shortening the device discovery process.

[0123] In the embodiment of the present application, the first device and the second device are respectively connected to the third device. The first device can obtain the second information during the external device scanning phase, so that when requesting to connect to the second device, no prior negotiation process is required, and the second device can be quickly and accurately connected, effectively improving the connection efficiency between the devices. Whether it is a one-to-one connection or a one-to-many connection, it is equally efficient, which has a great advantage in the scenario of the Internet of Things where everything is connected.

[0124] In some embodiments, devices that are not connected or are connected to different SSIDs can fill in the following information in the Vendor Specific of these three frames: peer-to-peer physical (p2p MAC) address, p2p scanning frequency band, same-vendor device tag, connection application ID, device name, device capabilities (screen size, resolution, supported audio and video codecs, supported transmission rate), etc., and all link layer information required for peer-to-peer connection interaction. With this information, the basic capabilities of the device can be utilized, eliminating the need for pre-negotiation and enabling quick and accurate connection to the desired and connectable device in the most appropriate manner.

[0125] Based on the foregoing embodiments, an embodiment of the present application provides a device interaction device, which includes the modules included, each module includes sub-modules, each sub-module includes a unit, and can be implemented by a processor in an electronic device; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.

[0126] FIG5 is a schematic diagram of the structure of a device interaction apparatus provided in an embodiment of the present application. As shown in FIG5 , the apparatus 500 includes:

[0127] An obtaining module 510 is configured to obtain, in response to the first device being in an external device scanning phase, a first network protocol detection frame sent by a third device, wherein the first network protocol detection frame carries second information of at least one second device;

[0128] a parsing module 520 configured to parse the first network protocol detection frame and obtain second connection information included in the second information for establishing a connection with an external device;

[0129] The connection module 530 is configured to determine that the first device requests to connect to the second device, and establish a connection with the second device based on the second connection information.

[0130] In some embodiments, the obtaining module 510 includes a receiving submodule or a listening submodule, wherein the receiving submodule is used to respond to the probe request frame sent by the first device during the external device scanning phase, and the first device receives the probe response frame of the third device as the first network protocol detection frame; the listening submodule is used to listen to and receive the beacon frame broadcast by the third device as the first network protocol detection frame by the first device during the external device scanning phase.

[0131] In some embodiments, the obtaining module 510 also includes a sending submodule, which is used for sending a probe request frame to the third device in response to the first device being in the external device scanning stage, wherein the probe request frame carries first information of the first device, and the first information includes first connection information for establishing a connection with the external device.

[0132] In some embodiments, the sending submodule includes an acquisition unit and an addition sending unit, wherein the acquisition unit is used for the first device to acquire first attribute information of the first device using a target application, and the first attribute information is used for device grouping; the addition sending unit is used to add the first attribute information of the first device to the first information and send the first information to the third device, so that the third device groups the first device and the second device based on the first information and the second information including the second attribute information of the second device, and obtains a target device group belonging to the same attribute.

[0133] In some embodiments, the obtaining module 510 is further configured to obtain, in response to the first device being in the external device scanning phase, second connection information of at least one second device belonging to the same target device group as the first device and sent by the third device.

[0134] In some embodiments, the second connection information includes at least one of the following: a connected service set identifier, a local area network address of a wireless access point, a device tag, a connected application identifier, a device name, and an attribute feature of the device.

[0135] The description of the above device embodiment is similar to the description of the above method embodiment and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of this application, please refer to the description of the method embodiment of this application for understanding.

[0136] It should be noted that, in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable an electronic device (which can be a mobile phone, tablet computer, laptop computer, desktop computer, etc.) to execute all or part of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program code, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.

[0137] Correspondingly, an embodiment of the present application provides a computer storage medium on which a computer program is stored. When the computer program is executed by a processor in an electronic device, the steps of the device interaction method provided in the above embodiment are implemented by the corresponding side device (such as the above-mentioned first device or third device).

[0138] Correspondingly, an embodiment of the present application provides a computer program product (i.e., the above-mentioned computer software product), including computer-readable instructions. When the computer-readable instructions are run on an electronic device, the electronic device implements the steps of the device interaction method provided in the above-mentioned embodiment executed by the corresponding side device (such as the above-mentioned first device or third device).

[0139] Correspondingly, an embodiment of the present application provides an electronic device. Figure 6 is a schematic diagram of a hardware entity of the electronic device provided by an embodiment of the present application. As shown in Figure 6, the hardware entity of the device 600 includes: a memory 601 and a processor 602, the memory 601 stores a computer program that can be run on the processor 602, and when the processor 602 executes the program, it implements the steps in the device interaction method provided in the above embodiment.

[0140] The memory 601 is configured to store instructions and applications executable by the processor 602, and can also cache data to be processed or processed by the processor 602 and various modules in the electronic device 600 (for example, image data, audio data, voice communication data and video communication data), which can be implemented through flash memory (FLASH) or random access memory (RAM).

[0141] It should be noted that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

[0142] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments.

[0143] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.

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

[0145] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed across multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment.

[0146] In addition, all functional units in the embodiments of the present application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the above-mentioned integrated units can be implemented in the form of hardware or in the form of hardware plus software functional units.

[0147] Those skilled in the art will understand that all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, and other media that can store program codes.

[0148] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words be embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium and includes several instructions for enabling an electronic device (which can be a mobile phone, tablet computer, laptop computer, desktop computer, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0149] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0150] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0151] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0152] The above is merely an embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A device interaction method, the method comprising: In response to a first device being in an external device scanning phase, obtaining a first network protocol probe frame sent by a third device, wherein the first network protocol probe frame carries second information of at least one second device; Parsing the first network protocol probe frame to obtain second connection information included in the second information for establishing a connection with an external device; Determining that the first device requests to connect to the second device, and establishing a connection with the second device based on the second connection information.

2. The method according to claim 1, wherein the obtaining a first network protocol probe frame sent by a third device in response to the first device being in an external device scanning phase comprises: In the external device scanning phase, responding to a probe request frame sent by the first device, and the first device receiving a probe response frame from the third device as the first network protocol probe frame; Or, In the external device scanning phase, the first device listens to and receives a beacon frame broadcast by the third device as the first network protocol probe frame.

3. The method according to claim 2, the method further comprising: When the first device is in the external device scanning phase, responding to the first device sending a probe request frame to the third device, wherein the probe request frame carries first information of the first device, and the first information includes first connection information for establishing a connection with an external device.

4. The method according to claim 3, wherein the responding to the first device being in the external device scanning phase and the first device sending a probe request frame to the third device comprises: The first device uses a target application to obtain first attribute information of the first device, and the first attribute information is used for device grouping; Adding the first attribute information of the first device to the first information and sending the first information to the third device, so that the third device groups the first device and the second device based on the first information and second information including second attribute information of the second device to obtain a target device group belonging to the same attribute.

5. The method according to claim 4, wherein the obtaining a first network protocol probe frame sent by a third device in response to the first device being in an external device scanning phase comprises: In response to the first device being in the external device scanning phase, obtaining second connection information of at least one second device in the same target device group as the first device sent by the third device.

6. The method according to claim 1, the second connection information includes at least one of the following: connected service set identifier, LAN address of a wireless access point, device label, connected application identifier, device name, attribute characteristics of the device.

7. A device interaction method, the method comprising: A third device obtains a probe request frame sent by a second device in an external device scanning phase, the probe request frame carries second information of the second device, and the second information includes second connection information for establishing a connection with an external device; Add the second connection information to a beacon frame for broadcasting, so that a first device can obtain the second connection information; Alternatively, in response to a probe request frame sent by the first device, add the second connection information to a probe response frame and send it to the first device.

8. The method according to claim 7, wherein the method further comprises: During an external device scanning phase, a third device receives a probe request frame sent by the first device, where the probe request frame carries first information of the first device, and wherein the first information includes first connection information and first attribute information, and the second information includes second connection information and second attribute information, and the first attribute information and the second attribute information are used for device grouping; Group all the first devices and the second devices based on the first attribute information and the second attribute information to obtain a target device group belonging to the same attribute, so as to add second connection information belonging to the same group as the first device to the beacon frame for broadcasting or add it to the probe response frame and send it to the first device.

9. A first device capable of connecting to a third device, the first device comprising: A first receiving device, configured to obtain a first network protocol probe frame sent by the third device in response to the first device being in an external device scanning phase, where the first network protocol probe frame carries second information of at least one second device; A first processing device, configured to parse the first network protocol probe frame to obtain second connection information included in the second information for establishing a connection with an external device; A first connection device, configured to determine that the first device requests to connect to the second device, and establish a connection with the second device based on the second connection information.

10. A third device capable of connecting to a first device and a second device, the third device comprising: A third receiving device, configured to obtain a probe request frame sent by the second device during an external device scanning phase, where the probe request frame carries second information of the second device, and the second information includes second connection information for establishing a connection with an external device; A third sending device, configured to add the second connection information to a beacon frame for broadcasting, so that the first device can obtain the second connection information; or The third sending device, configured to, in response to a probe request frame sent by the first device, add the second connection information to a probe response frame and send it to the first device.

11. The third device according to claim 10, The third receiving device is further configured to receive a probe request frame sent by the first device during an external device scanning phase, where the first information of the first device is carried in the probe request frame, where The The first information includes first connection information and first attribute information, the second information includes second connection information and second attribute information, and the first attribute information and the second attribute information are used for device grouping; The third device further comprises a third processing device, and the third processing device is configured to group all the first devices and the second devices based on the first attribute information and the second attribute information to obtain a target device group belonging to the same attribute; Correspondingly, the third sending device is configured to add second connection information belonging to the same group as the first device to a beacon frame for broadcasting or add it to a probe response frame and send it to the first device.

12. An equipment interaction system, the system at least includes a first device according to claim 7, a second device and a third device according to claim 8, wherein, The first device and the second device are respectively connected to the third device.

13. A computer program product, comprising computer-readable instructions, which, when running on an electronic device serving as a first device, cause the electronic device to perform the following steps: In response to the first device being in the external device scanning stage, obtain a first network protocol detection frame sent by the third device, where The first network protocol detection frame carries second information of at least one second device; Parse the first network protocol detection frame to obtain second connection information included in the second information for establishing a connection with an external device; Determine that the first device requests to connect to the second device, and establish a connection with the second device based on the second connection information.

14. An electronic device, the electronic device comprising: A memory and a processor, wherein: When the electronic device serves as a first device, the processor runs the computer program stored in the memory and performs the following steps: In response to the first device being in the external device scanning stage, obtain a first network protocol detection frame sent by a third device, wherein the first network protocol detection frame carries second information of at least one second device; Parse the first network protocol detection frame to obtain second connection information included in the second information for establishing a connection with an external device; Determine that the first device requests to connect to the second device, and establish a connection with the second device based on the second connection information.

15. An electronic device, the electronic device comprising: A memory and a processor, wherein: When the electronic device serves as a third device, the processor runs the computer program stored in the memory and performs the following steps: Obtain a detection request frame sent by a second device during the external device scanning stage, wherein the detection request frame carries second information of the second device, and the second information includes second connection information for establishing a connection with an external device; Add the second connection information to a beacon frame for broadcasting, so that the first device can obtain the second connection information; or in response to a detection request frame sent by the first device, add the second connection information to a detection response frame and send it to the first device.

16. A computer storage medium, on which a computer program is stored, and when the computer program is executed by an electronic device serving as a first device, the following steps are implemented: In response to the first device being in the external device scanning phase, obtain a first network protocol detection frame sent by the third device, where The first network protocol detection frame carries second information of at least one second device; Parse the first network protocol detection frame to obtain second connection information included in the second information for establishing a connection with an external device; Determine that the first device requests to connect to the second device, and establish a connection with the second device based on the second connection information.

17. A computer storage medium, on which a computer program is stored, and when the computer program is executed by an electronic device serving as a third device, the following steps are implemented: Obtain a detection request frame sent by a second device during the external device scanning stage, wherein the detection request frame carries second information of the second device, and the second information includes second connection information for establishing a connection with an external device; Add the second connection information to a beacon frame for broadcasting, so that the first device can obtain the second connection information; Alternatively, in response to the probe request frame sent by the first device, add the second connection information to a probe response frame and send it to the first device.

Citation Information

Patent Citations

  • Method for searching for device in direct communication system and apparatus therefor

    CN105340330A

  • Network distribution method and device, electronic equipment and storage medium

    CN110995665A

  • Connection establishment method and electronic equipment

    CN114697929A

  • Device interaction method, first device, third device and device interaction system

    CN117880932A

  • Augmenting wi-fi device discovery with network connection information

    US20150172905A1