Equipment connection method and related equipment

By introducing preferred sorting queues and dynamic broadcasting strategies in wireless communications, the stability and speed problems during device discovery and connection are solved, and the efficiency and reliability of device discovery and connection are improved.

CN119300174APending Publication Date: 2025-01-10SHENZHEN TCL NEW-TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411679189.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-21
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

In existing wireless communication technologies, there are stability and speed problems during device discovery and connection, especially in a multi-device environment, when the scanner initiates a scan request at the same time, resulting in delayed device response and failed connection.

Method used

A preferred sort queue is introduced, multiple scan requests are prioritized according to a preset algorithm, priority response to high-priority requests, and dynamically adjust broadcast cycle and channel switching strategies to improve the stability and speed of device discovery and connection.

Benefits of technology

Through intelligent identification and priority response to high-priority scan requests, the stability and speed of device discovery are improved, adapted to multi-device environments, and reduced connection delay and failure rates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119300174A_ABST
    Figure CN119300174A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an equipment connection method and related equipment. The method provided by the embodiment of the invention comprises the following steps: receiving a plurality of scanning requests, wherein the plurality of scanning requests are respectively sent by one or more scanning devices with an accelerated discovery characteristic; performing priority ranking on the plurality of scanning requests according to a preset algorithm to obtain a preferred ranking queue; and responding to the target scanning request in the preferred sorting queue according to the priority order so as to establish connection with scanning equipment corresponding to the target scanning request.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless communications, and in particular to a device connection method and related devices. Background Art

[0002] With the increasing application of wireless technology in short-distance communication, human-computer interaction devices based on Starflash technology or Bluetooth technology have become a necessity in daily life and are increasingly favored and used by users. Commonly used human-computer interface devices (HID), such as Starflash remote controllers / handles or Bluetooth Low Energy (BLE) mouse and keyboard, have gotten rid of wired constraints and improved the user experience. Before using smart TVs / mobile phones and Starflash devices / Bluetooth devices, you need to discover each other and establish a connection between the two.

[0003] Currently, smart TVs / mobile phones discover and scan surrounding broadcasting devices, and when broadcasting with peripherals, they switch between different channels by frequency hopping until the two parties meet on the same channel. After the two parties meet on the same channel, the scanner will initiate a scan request to obtain additional information about the broadcaster, such as the device type. When there are too many wireless devices around, there will be multiple scanners that initiate scans almost at the same time, such as Figure 1a As shown in the figure, it is a possible scanning discovery interaction diagram in the prior art. In the figure, multiple scanners include scanner 1 and scanner 2. The broadcaster broadcasts within the broadcast cycle (such as 10ms). Scanner 1 and scanner 2 receive the broadcast sent by the broadcaster within their respective scanning cycles, and send broadcast requests Scan Request to the broadcaster respectively. The broadcaster first receives the scan request sent by scanner 1 and can only respond to the scan request, that is, send a scan response Scan Response to scanner 1, and discard the Scan Request sent by scanner 2 received later, which will affect the stability and speed of device discovery. Therefore, how to improve the speed and stability of device discovery and connection establishment is a problem that needs to be solved urgently. Summary of the invention

[0004] The embodiments of the present application provide a device connection method and related devices for improving the speed and stability of device discovery.

[0005] A first aspect of an embodiment of the present application provides a device connection method, comprising: receiving multiple scan requests, wherein the multiple scan requests are respectively sent by one or more scanning devices with accelerated discovery characteristics; prioritizing the multiple scan requests according to a preset algorithm to obtain a preferred sorting queue; and responding to target scan requests in the preferred sorting queue in order of priority to establish a connection with the scanning device corresponding to the target scan request.

[0006] In a possible embodiment, the priority sorting of the multiple scanning requests according to a preset algorithm to obtain a preferred sorting queue includes: associating each scanning request with the identifier of the corresponding scanning device and the received signal strength indication RSSI to encapsulate each scanning request packet; sorting the scanning request packets in order from high to low RSSI to obtain the preferred sorting queue; or, converting the RSSI corresponding to each scanning request into the distance corresponding to each scanning request through the RSSI-distance relationship; sorting the scanning requests in order from near to far distance to obtain the preferred sorting queue.

[0007] In a possible embodiment, after receiving multiple scanning requests, the method also includes: determining whether the device sending the scanning request has the accelerated discovery feature; if not, sending a connection rejection response to the target device, wherein the target device is the device among the devices sending the scanning request that does not have the accelerated discovery feature.

[0008] In a possible embodiment, the method further includes: adjusting a broadcast packet interaction strategy according to the number of received scan requests, so as to broadcast the next switching channel NC in advance.

[0009] In a possible embodiment, the adjusting of the broadcast packet interaction strategy according to the number of received scan requests includes: when the number of the scan requests is greater than a first preset value, adjusting the broadcast cycle; based on the adjusted broadcast cycle, broadcasting the NC in a fixed order; or, based on the adjusted broadcast cycle, randomly selecting a channel corresponding to a broadcast packet loss rate less than a second preset value as the NC for broadcasting.

[0010] The second aspect of the present application provides a device connection method, which is applied to a scanning device with an accelerated discovery feature, including: generating a scanning request; sending the scanning request to a broadcasting device, so that after receiving multiple scanning requests sent by one or more of the scanning devices, the broadcasting device prioritizes the multiple scanning requests according to a preset algorithm to obtain a preferred sorting queue; receiving a connection response sent by the broadcasting device, wherein the broadcasting device responds to the multiple scanning requests in the preferred sorting queue in order of priority; and connecting with the broadcasting device based on the connection response.

[0011] In a possible embodiment, the method further includes: if the scanning device fails to connect to the broadcasting device, continuing to monitor the broadcasting device and sending a connection notification request again.

[0012] The third aspect of the present application provides a broadcasting device, including: a transceiver unit, used to receive multiple scanning requests, wherein the multiple scanning requests are respectively sent by one or more scanning devices with accelerated discovery characteristics; a preferred queue unit, used to prioritize the multiple scanning requests according to a preset algorithm to obtain a preferred sorting queue; the transceiver unit is also used to respond to the target scanning request in the preferred sorting queue in priority order to establish a connection with the scanning device corresponding to the target scanning request.

[0013] The fourth aspect of the present application provides a scanning device with accelerated discovery characteristics, including: a generation unit, which generates a scanning request; a transceiver unit, which sends the scanning request to a broadcasting device, so that after the broadcasting device receives multiple scanning requests sent by one or more of the scanning devices, the multiple scanning requests are prioritized according to a preset algorithm to obtain a preferred sorting queue; the transceiver unit is also used to receive a connection response sent by the broadcasting device, wherein the broadcasting device responds to the multiple scanning requests in the preferred sorting queue in order of priority; a connection unit, which is used to connect to the broadcasting device based on the connection response.

[0014] A fifth aspect of the embodiments of the present application provides a computer-readable storage medium, including instructions, which, when executed on a computer, enable the computer to execute the methods described in the above aspects.

[0015] A sixth aspect of the embodiments of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the methods described in the above aspects.

[0016] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages: by introducing an intelligent priority queue, it dynamically and intelligently identifies which scan request has a higher priority, and responds to high-priority scan requests first, thereby ensuring the stability and speed of device discovery to the greatest extent. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A possible system architecture diagram for the application of the embodiment of the present application;

[0018] Figure 1a Discovering interaction graphs for one possible existing scan;

[0019] Figure 2 A flowchart of a possible device connection method provided in an embodiment of the present application;

[0020] Figure 2a A possible scanning discovery interaction diagram provided in an embodiment of the present application;

[0021] Figure 3A flowchart of another possible device connection method provided in an embodiment of the present application;

[0022] Figure 3a A possible comparison diagram of the frame structure of a broadcast packet is provided for an embodiment of the present application;

[0023] Figure 3b A possible system module diagram provided for an embodiment of the present application;

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

[0025] Figure 5 A schematic diagram of a possible scanning device provided in an embodiment of the present application;

[0026] Figure 6 A schematic block diagram of a broadcasting device provided in an embodiment of the present application;

[0027] Figure 7 A schematic diagram of the structure of a broadcast device provided in an embodiment of the present application;

[0028] Figure 8 A schematic diagram of the structure of a system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0029] For ease of understanding, the relevant technologies involved in the embodiments of the present application are first described below.

[0030] The following will describe the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0031] It should be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the previous and next associated objects are in an "or" relationship. It should be noted that the naming of the parameters in this article is for the convenience of description. Other names can be used in practice, and this application does not limit it.

[0032] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0033] The "plurality" appearing in the embodiments of the present application refers to two or more than two.

[0034] See also Figure 1 , is a possible system architecture diagram for the application of the embodiment of the present application, including: a terminal 101 and one or more Bluetooth devices 102. Among them, the terminal 101 and the Bluetooth device 102 can communicate through Bluetooth technology. The Bluetooth technology includes basic power (basic rate, BR) Bluetooth, enhanced data rate (enhanced data rate, EDR) Bluetooth or BLE, etc., and can also be Bluetooth technology corresponding to other new Bluetooth protocol types that will be withdrawn in the future. Terminal 101 can be any device with computing and processing capabilities. Of course, terminal 101 can also have audio and video playback and interface display functions. For example, terminal 101 can be a mobile phone, a computer, a smart TV, a car-mounted device, a wearable device, an industrial device, etc., which is not specifically limited here. Terminal 101 supports the Bluetooth communication protocol. Bluetooth device 102 is an electronic device that supports the Bluetooth communication protocol. Bluetooth device 102 can be a smart phone, a media player, a tablet computer, a personal digital assistant (personal digital assistant, PDA), a smart TV, a Bluetooth headset, a smart watch, and the like.

[0035] like Figure 1 As shown, the system architecture of the present application is introduced by taking the terminal 101 as a smart TV and the Bluetooth device 102 as a smart phone or a Bluetooth headset. It should be noted that this example should not be understood as a limitation to the present application.

[0036] by Figure 1 Based on the system architecture of Figure 2 , is a device connection method provided in an embodiment of the present application, wherein the scanning device may be a terminal 101, and the broadcasting device may be a Bluetooth device 102 as an example to better understand the present solution, specifically comprising the following steps:

[0037] 201. The broadcasting device receives multiple scanning requests;

[0038] Scanning devices such as smart TVs / mobile phones initiate discovery scans and listen within the set scanning cycle to see if the same channel receives broadcasts from broadcasting devices. When a scanning device and a broadcasting device meet on the same channel, the scanning device immediately initiates a scan request ScanRequest on the channel, and then waits for the broadcasting device to respond to complete a scan. In actual scenarios, there may be multiple scanning devices around, so multiple scanning devices will initiate scan requests to the broadcasting device at the same time or at similar times, that is, the broadcasting device receives multiple scan requests, which are sent by one or more scanning devices with accelerated discovery features. The broadcasting device needs to process multiple scan requests concurrently, including filtering out duplicate requests from the same scanning device in the scan request.

[0039] 202. The broadcasting device determines whether the device sending the scan request has an accelerated discovery feature;

[0040] After receiving a scanning request, the broadcasting device determines whether the device sending the scanning request has an accelerated discovery feature. The judgment method may include: the scanning request carries a capability indication parameter, and the capability indication parameter is used to indicate whether it has the accelerated discovery feature. If the capability indication parameter indicates yes, the broadcasting device determines that the scanning device corresponding to the scanning request has the accelerated discovery feature.

[0041] Among them, the so-called accelerated discovery feature is a capability attribute of the device. In actual application scenarios, it can be the support of a specific transmission protocol, the capability that the device has when it leaves the factory, or it can also be the capability of the device to handle specific services, which can trigger the broadcast device to start the preferred sorting queue. The essence of the accelerated discovery feature is that in an environment with many Bluetooth devices around, there are multiple mobile phones scanning peripherals at the same time, and scan requests are initiated for multiple scanners. A preferred sorting queue is introduced, which can identify which request has a higher priority, sort the request mirror queue, and give priority to responding to the scanreq in the header. Identifying which one has a higher priority is determined by the number of times the user has scanned the device and the signal strength. This gives priority to responding to scan requests from high-priority users, and can also avoid the failure of multiple requests, thereby achieving the accelerated discovery feature.

[0042] 203. If so, the broadcast device prioritizes the corresponding multiple scan requests according to a preset algorithm to obtain a preferred sorting queue;

[0043] If the broadcasting device determines that the device of the scanning request has the accelerated discovery feature, the scanning requests issued by the scanning device with the accelerated discovery feature are sorted according to a preset algorithm to obtain a preferred sorting queue.

[0044] Specifically, in an optional implementation, each scanning request is associated with the identifier of the corresponding scanning device and the received signal strength indication (RSSI) to encapsulate each scanning request packet; the scanning request packets are sorted in order from high to low according to RSSI to obtain the preferred sorting queue.

[0045] Alternatively, in another optional implementation, the RSSI corresponding to each scanning request is converted into the distance corresponding to each scanning request through the RSSI-distance relationship; the scanning requests are sorted in order from near to far distance to obtain the preferred sorting queue.

[0046] In an embodiment of the present application, the preset algorithm can sort the scan request packets based on the RSSI parameter. Optionally, it can also be based on parameters such as signal to interference plus noise ratio (SINR), signal to noise ratio (SNR), reference signal received power (RSRP), reference signal received quality (RSRQ), reference signal carrier and interference plus signal to noise ratio (RS-CINR), etc., which are not limited to the specific parameters in this application.

[0047] 204. The broadcasting device responds to the target scanning request in the preferred sorting queue according to the priority sorting to establish a connection with the scanning device corresponding to the target scanning request.

[0048] After obtaining the preferred sorting queue, the broadcasting device replies to the target scanning request with a high queue priority in sequence according to the preferred sorting queue to establish a connection with the scanning device corresponding to the target scanning request, and then replies to the queue with a low priority.

[0049] Optionally, the broadcasting device can also dynamically adjust the broadcasting cycle according to the number of received scan requests. For example, when a scan request is added, the broadcasting cycle increases by a preset value, which can be 2ms, etc. Then, the signals are sorted according to RSSI signal strength, and the ones with higher queue priority are replied first, followed by the ones with lower queue priority.

[0050] It should be noted that, in the embodiment of the present application, after step 202, step 205 may be further executed. Step 205 includes: if both parties do not support the accelerated discovery feature, the broadcasting device discards subsequent scan requests after receiving the first scan request.

[0051] Compared with the traditional peripheral device discovery connection, the embodiment of the present application sorts multiple scanning devices. For details, please refer to Figure 2a , which is a possible peripheral discovery interaction diagram provided by an embodiment of the present application, wherein multiple scanners include scanner 1 and scanner 2, TX represents Transmit, i.e., sending action, and RX represents Recieve, i.e., receiving action. The broadcaster broadcasts within a broadcast cycle (such as 10ms), including TX and RX, and scanner 1 and scanner 2 receive the broadcast sent by the broadcaster within their respective scanning cycles. Specifically, the broadcaster broadcasts request 4, and after scanner 1 and scanner 2 receive it, they respectively send scan requests ScanRequest to the broadcaster. When scanner 1 and scanner 2 both have the accelerated discovery feature, the broadcaster adds scan requests 1 and scan requests 2 sent by scanner 1 and scanner 2 to the preferred sorting queue, wherein scanner 1 has a higher priority than scanner 2 in the preferred sorting queue, then the broadcaster responds to the scan request sent by scanner 1 first, i.e., sends scan response 1 to scanner 1, and then sends scan response 2 to respond to the scan request sent by scanner 2.

[0052] In summary, the present application introduces a preferred sorting queue to dynamically and intelligently identify the priority of each scanning request among the scanning requests sent by the scanning device, and responds to high-priority scanning requests first. Compared with the prior art of only prioritizing connections according to the timing of the received scanning requests and discarding subsequent scanning requests, the stability and speed of device discovery are improved, and it is also more adaptable to multiple demand scenarios.

[0053] In addition, in the prior art, when a user finds a device and clicks to initiate a connection, the connection initiation information will be sent to the Bluetooth module first. When the Bluetooth module receives the device broadcast again, it will initiate a connection notification ConnectionIndication to the peer device, that is, the connection initiator needs to wait for the next channel to initiate the connection notification. In the case of a poor wireless environment, it will take a long time for the Bluetooth module to receive the device broadcast, affecting the speed of establishing the connection. In view of this, the embodiment of the present application also provides a device connection method that can improve the connection speed between the broadcasting device and the scanning device.

[0054] For ease of description, the scanning device corresponding to the target scanning request is referred to as the target scanning device. After receiving the response sent by the broadcasting device, the target scanning device displays it to the user and accepts the click operation sent by the user. When the click operation is used to indicate the initiation of a connection, the embodiment of the present application also provides a device connection method, which is applied to the scanning device side. The scanning device has an accelerated discovery feature, which specifically includes the following steps:

[0055] 301. The target scanning device receives a click operation sent by the user;

[0056] After the scanning device scans the broadcasting device, it displays it to the user and receives a click operation sent by the user to indicate to initiate a connection with the broadcasting device.

[0057] 302. The target scanning device receives the broadcast notification sent by the broadcast device, and determines whether the broadcast device has an accelerated connection feature;

[0058] The scanning device receives the broadcast notification sent by the broadcast device, and determines whether the broadcast device has the accelerated connection feature based on the received broadcast notification. For example, the broadcast notification sent by the broadcast device carries a capability indication, which is used to indicate whether it has the capability of the accelerated connection feature.

[0059] 303. If yes, the target scanning device parses the broadcast notification to obtain the NC field;

[0060] If it is determined that the broadcast device also has the accelerated connection feature, the broadcast notification is parsed to obtain the next switching channel (nextchannel, NC) field, which indicates the broadcast channel to be switched by the broadcast device next time. That is, the broadcast device must go through the broadcast management module before broadcasting, adjust the broadcast field strategy, and add the NC field in the broadcast notification to identify the broadcast channel to be switched. Figure 3a The figure shows a possible frame structure diagram of a broadcast packet. Compared with the frame structure of a traditional broadcast packet, the frame structure of the broadcast packet provided in the embodiment of the present application adds an NC field.

[0061] It should be noted that there are two situations according to the device capabilities: the broadcast channel is in a fixed order or a random order. In other words, the fixed order is broadcast in a fixed order, and the random order is to randomly select a channel with a broadcast packet loss rate less than a preset value as the NC for broadcasting, avoiding broadcasting notifications on channels with large interference.

[0062] Optionally, if the broadcast device does not have an accelerated connection feature, the connection is performed according to existing techniques.

[0063] 304. The target scanning device sends a connection request to the broadcasting device on the NC to establish a connection with the broadcasting device.

[0064] The scanning device sends a connection request to the broadcasting device according to the NC indicated in the broadcast notification. The broadcasting device will also adjust to the receiving state (recieve) on the NC to listen to the connection request initiated by the scanning device, so as to ensure the rapid initiation of the connection request to the greatest extent.

[0065] Optionally, when the link is not established successfully when using accelerated connection, the scanning device will send a connection request again. At the same time, the corresponding fault tolerance processing will be started, and the broadcast of the broadcasting device will continue to be monitored. When the broadcast is received again, a connection notification request will be immediately initiated on the broadcast channel. At this time, the channel uses the latest one of both parties. That is, the broadcast will be monitored and the connection notification will be initiated again at the same time, and the corresponding process will be executed first according to the priority of the behavior.

[0066] In summary, from a modular perspective, this solution can include four modules, see Figure 3b , which is a possible system module diagram provided in an embodiment of the present application, including an intelligent preferred queue, a broadcast management module, an accelerated connection module and a Bluetooth module, wherein the intelligent preferred queue is responsible for processing concurrent scan requests and giving priority to responding to high-priority requests according to a predetermined algorithm; the broadcast management module is used to dynamically adjust the broadcast cycle according to the number of scan requests, and adjust the broadcast strategy to identify which NC is about to be switched to; the accelerated connection module is responsible for determining whether it has the ability to accelerate the connection, and handles the abnormal recovery mechanism for connection failure.

[0067] Therefore, the embodiment of the present application introduces a preferred sorting queue to dynamically and intelligently identify which scan request has a higher priority, respond to the scan request with a higher priority first, and dynamically adjust the broadcast cycle. It can process multiple concurrent scan requests at the same time and filter duplicate requests, thereby ensuring the stability and speed of device discovery to the greatest extent. Then, by introducing and adjusting the broadcast packet interaction strategy, the broadcast packet notifies the next switching channel NC in advance. When the user clicks to initiate a connection, the need to receive the broadcast packet again to initiate the connection is omitted, and the connection notification is directly initiated on the NC channel. The accelerated connection strategy is used to determine whether to use the accelerated connection, and is responsible for handling abnormal recovery mechanisms such as connection failures.

[0068] In the embodiment of the present application, a device connection method is described, which increases the implementable methods and application scenarios of the embodiment of the present application and makes the steps of the embodiment of the present application more complete.

[0069] The above describes the device connection method in the embodiment of the present application. The following describes the broadcast device and the scanning device in the embodiment of the present application respectively. Figure 4 , an embodiment of a broadcasting device in an embodiment of the present application, the broadcasting device includes:

[0070] The transceiver unit 401 is used to receive multiple scanning requests, where the multiple scanning requests are respectively sent by one or more scanning devices with an accelerated discovery feature;

[0071] The preferred queue unit 402 is used to prioritize the plurality of scan requests according to a preset algorithm to obtain a preferred sorting queue;

[0072] The transceiver unit 401 is further configured to respond to the target scanning requests in the preferred sorting queue in order of priority, so as to establish a connection with a scanning device corresponding to the target scanning request.

[0073] Optionally, the preferred queue unit 402 is specifically used to: associate each scanning request with the identifier of the corresponding scanning device and the received signal strength indication RSSI to encapsulate each scanning request packet; sort the scanning request packets in order from high to low RSSI to obtain the preferred sorting queue; or, convert the RSSI corresponding to each scanning request into the distance corresponding to each scanning request through the RSSI-distance relationship; sort the scanning requests in order from near to far distance to obtain the preferred sorting queue.

[0074] Optionally, the broadcasting device further includes:

[0075] A determination unit 403, configured to determine whether the device sending the scan request has the accelerated discovery feature;

[0076] If not, the transceiver unit 401 sends a connection rejection response to the target device, where the target device is the device that does not have the accelerated discovery feature among the devices that send the scan request.

[0077] Optionally, the broadcasting device further includes:

[0078] The processing unit 404 is configured to adjust the broadcast packet interaction strategy according to the number of received scan requests, so as to broadcast the next switching channel NC in advance.

[0079] Optionally, the processing unit 404 is specifically used to: adjust the broadcast cycle when the number of the scanning requests is greater than a first preset value; broadcast the NC in a fixed order based on the adjusted broadcast cycle; or, based on the adjusted broadcast cycle, randomly select a channel corresponding to a broadcast packet loss rate less than a second preset value as the NC for broadcasting.

[0080] See also Figure 5 , an embodiment of a scanning device in an embodiment of the present application, the scanning device has an accelerated discovery feature, including:

[0081] A generating unit 501 generates a scanning request;

[0082] The transceiver unit 502 sends the scanning request to the broadcasting device, so that after receiving the multiple scanning requests sent by one or more scanning devices, the broadcasting device prioritizes the multiple scanning requests according to a preset algorithm to obtain a preferred sorting queue;

[0083] The transceiver unit 502 is further configured to receive a connection response sent by the broadcast device, wherein the broadcast device responds to the multiple scan requests in the preferred sorting queue in order of priority;

[0084] The connecting unit 503 is configured to connect with the broadcasting device based on the connection response.

[0085] Optionally, the scanning device further includes:

[0086] The monitoring unit 504 is configured to continue monitoring the broadcasting device and send a connection notification request again if the connection between the scanning device and the broadcasting device fails.

[0087] above Figure 4 and Figure 5 The broadcasting device and the scanning device in the embodiment of the present application are described in detail from the perspective of modular functional entities. The broadcasting device in the embodiment of the present application is described in detail from the perspective of hardware processing.

[0088] Figure 6 This is a schematic diagram of the structure of a broadcast device provided in an embodiment of the present application, with reference to Figure 6 In the case of an integrated unit, Figure 6 A possible structural diagram of the broadcasting device involved in the above embodiment is shown. The broadcasting device 600 includes: a processing unit 602 and a communication unit 603. The processing unit 602 is used to control and manage the actions of the broadcasting device. For example, the processing unit 602 is used to support the broadcasting device to execute Figure 2 The communication unit 603 is used to support the communication between the broadcast device and other devices. For example, the communication unit 603 is used to support the broadcast device to perform Figure 2 The broadcasting device may further include a storage unit 601 for storing program codes and data of the base station.

[0089] Among them, the processing unit 602 can be a processor or a controller, for example, it can be a central processing unit (CPU), a general processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The communication unit 603 can be a communication interface, a transceiver, a transceiver circuit, etc., wherein the communication interface is a general term and can include one or more interfaces, such as a transceiver interface. The storage unit 601 can be a memory.

[0090] See also Figure 7 As shown, the broadcasting device 710 includes: a processor 712, a communication interface 713, and a memory 711. Optionally, the video playback device 710 may also include a bus 714. The communication interface 713, the processor 712, and the memory 711 may be interconnected via the bus 714; the bus 714 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus 714 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0091] The steps performed by the broadcasting device in the above embodiment can be based on the Figure 7 The broadcasting equipment structure shown.

[0092] The embodiment of the present application also provides a device, which may be a chip, and includes a processor and a memory, wherein the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory, so that the device executes the video playback device in Figure 2 Some or all of the steps in the device connection method in the embodiment, such as Figure 2 Steps 202 to 204 in, and / or other processes for the technology described in this application.

[0093] The embodiment of the present application also provides a system, which may include one or more central processors 822 and memory 832, one or more storage media 830 (e.g., one or more mass storage devices) storing application programs 842 or data 844. Among them, the memory 832 and the storage medium 830 may be short-term storage or permanent storage. The program stored in the storage medium 830 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the system. Further, the central processor 822 may be configured to communicate with the storage medium 830 and execute a series of instruction operations in the storage medium 830 on the system 800. The system 800 may also include one or more power supplies 826, one or more wired or wireless network interfaces 850, one or more input and output interfaces 858, and / or, one or more operating systems 841, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc.

[0094] The scanning device may also have a similar hardware device structure, which will not be described in detail here.

[0095] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.

[0096] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a server, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.

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

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

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

[0100] In addition, each functional unit in the embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0101] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution 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 a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0102] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A device connection method, characterized in that: include: receiving a plurality of scan requests, the plurality of scan requests being respectively sent by one or more scanning devices having an accelerated discovery feature; Prioritizing the plurality of scanning requests according to a preset algorithm to obtain a preferred sorting queue; The target scanning requests in the preferred sorting queue are responded to in order of priority to establish a connection with a scanning device corresponding to the target scanning request.

2. The method according to claim 1, characterized in that: The step of prioritizing the plurality of scanning requests according to a preset algorithm to obtain a preferred sorting queue includes: Associating each scanning request with the identifier of the corresponding scanning device and the received signal strength indication RSSI to encapsulate and obtain each scanning request packet; Sorting the scan request packets in descending order of RSSI to obtain the preferred sorting queue; or, Converting the RSSI corresponding to each scanning request into the distance corresponding to each scanning request through the RSSI-distance relationship; The scanning requests are sorted in order of distance from near to far to obtain the preferred sorting queue.

3. The method according to claim 1, characterized in that After receiving the multiple scanning requests, the method further includes: Determining whether the device sending the scan request has the accelerated discovery feature; If not, a connection rejection response is sent to the target device, where the target device is a device that does not have the accelerated discovery feature among the devices that sent the scan request.

4. The method according to claim 3, characterized in that After receiving the multiple scanning requests, the method further includes: The broadcast packet interaction strategy is adjusted according to the number of received scan requests to broadcast the next switching channel NC in advance.

5. The method according to claim 4, characterized in that The step of adjusting the broadcast packet interaction strategy according to the number of received scan requests includes: When the number of the scanning requests is greater than a first preset value, adjusting the broadcast period; Based on the adjusted broadcast period, broadcast the NCs in a fixed order; or, Based on the adjusted broadcast period, a channel corresponding to a broadcast packet loss rate less than a second preset value is randomly selected as the NC for broadcasting.

6. A device connection method, characterized in that: Applied to a scanning device having an accelerated discovery feature, the method comprises: Generate a scan request; Sending the scanning request to a broadcasting device, so that after receiving a plurality of scanning requests sent by one or more scanning devices, the broadcasting device prioritizes the plurality of scanning requests according to a preset algorithm to obtain a preferred sorting queue; receiving a connection response sent by the broadcast device, wherein the broadcast device responds to the multiple scan requests in the preferred sorting queue in order of priority; A connection is made with the broadcasting device based on the connection response.

7. The method according to claim 6, characterized in that After connecting with the broadcasting device based on the connection response, the method further includes: If the scanning device fails to connect to the broadcasting device, continue to monitor the broadcasting device and send a connection notification request again.

8. A broadcasting device, characterized in that: include: A transceiver unit, configured to receive a plurality of scan requests, wherein the plurality of scan requests are respectively sent by one or more scanning devices having an accelerated discovery feature; A preferred queue unit, used for prioritizing the plurality of scanning requests according to a preset algorithm to obtain a preferred sorting queue; The transceiver unit is further configured to respond to the target scanning requests in the preferred sorting queue in order of priority, so as to establish a connection with a scanning device corresponding to the target scanning request.

9. A scanning device, characterized in that: The scanning device has accelerated discovery features, including: A generating unit, generating a scanning request; A transceiver unit sends the scanning request to a broadcast device, so that after receiving a plurality of scanning requests sent by one or more scanning devices, the broadcast device prioritizes the plurality of scanning requests according to a preset algorithm to obtain a preferred sorting queue; The transceiver unit is further configured to receive a connection response sent by the broadcast device, wherein the broadcast device responds to the multiple scan requests in the preferred sorting queue in order of priority; A connecting unit is configured to connect with the broadcasting device based on the connection response.

10. A computer-readable storage medium comprising instructions, which, when executed on a computer, enables the computer to execute the method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Communication control method and electronic equipment

    CN121463159A