Device connection methods, systems, electronic devices and computer-readable storage media
By dividing the interaction domain among wireless devices and performing sub-interaction domain search or listening, the problem of slow wireless device connection speed is solved, achieving fast and accurate communication connection, which is suitable for various device interconnection scenarios.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-02
- Publication Date
- 2026-03-13
AI Technical Summary
The existing wireless devices have slow connection speeds, which cannot adapt to changing interconnection scenarios and affect normal user experience.
The interaction domain division conditions for the connection between the target device and the peer device are determined by the target device, which is divided into multiple sub-interaction domains. Based on these sub-interaction domains, the peer device is searched or monitored to quickly establish a communication connection.
It improves the connection speed between wireless devices, is suitable for connection scenarios with varying numbers of devices, and enhances the user experience.
Smart Images

Figure CN115734392B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and more specifically, to a device connection method, system, electronic device, and computer-readable storage medium. Background Technology
[0002] Existing wireless connectivity methods, such as classic Bluetooth, are already supported on various terminal devices, driving the large-scale development of wireless devices, such as wireless headphones and wireless microphones. Currently, the use cases for wireless devices often involve interconnection between multiple devices, such as sharing multiple pairs of TWS (True Wireless Stereo) headphones, sharing multiple microphones, connecting multiple mobile phones, and interconnecting multiple Bluetooth speakers on multiple PCs, laptops, and TVs, enabling users to use multiple wireless devices normally.
[0003] However, because wireless devices such as mobile phones and headphones are mobile, situations arise such as device movement, power-on, and exceeding distances between multiple devices. Furthermore, during the connection process, the functions or protocols of different wireless devices may switch. Therefore, the interconnection scenarios between multiple wireless devices also change as the wireless devices move. To reduce the impact of these changes on users' normal use of wireless devices, higher requirements are placed on the connection speed between wireless devices. Current wireless device connection speeds are relatively slow and cannot adapt to the changing interconnection scenarios, which adversely affects the user's normal experience. Summary of the Invention
[0004] In view of this, the purpose of this application is to provide a solution to improve the problem of slow connection speed between wireless devices in the prior art.
[0005] To address the aforementioned problems, in a first aspect, embodiments of this application provide a device connection method, the method comprising:
[0006] The conditions for dividing the interaction domain when determining the connection between the target device and the peer device using the target device;
[0007] The target device divides the interaction domain based on the division criteria to obtain multiple sub-interaction domains;
[0008] The target device searches for or listens to the peer device based on multiple sub-interaction domains, thereby connecting the target device and the peer device.
[0009] In the above implementation process, by dividing the interaction domain corresponding to the connection task when connecting between devices, the corresponding peer devices can be searched or monitored according to the divided sub-interaction domains, thereby quickly establishing a communication connection between the target device and the peer device. This allows for fast and accurate control and allocation of connection tasks between multiple wireless devices, performing search and monitoring in parallel. It effectively improves the processing efficiency of wireless devices for the interaction domains corresponding to connection tasks, thereby increasing the connection speed when communicating between wireless devices, improving the user experience, and making it suitable for connection scenarios with varying numbers of devices.
[0010] Optionally, the target device includes multiple sub-devices; the criteria for dividing the interaction domain when determining the connection between the target device and the peer device through the target device include:
[0011] Among the multiple sub-devices, identify the group leader device and group member devices in the target device;
[0012] The group leader's device searches for each member's device to obtain the group information of the target device.
[0013] The group leader device analyzes the interaction domain based on the group situation to obtain the partitioning conditions.
[0014] In the above implementation process, when the target device is a group of devices comprising multiple sub-devices, a group leader device and member devices can be identified among the multiple sub-devices to control the group of devices. During control, the group leader device searches for member devices within the group to determine the group situation within the group of devices, and based on the group situation, performs corresponding analysis and processing on the interaction domain to determine appropriate partitioning conditions. This ability to determine the corresponding partitioning conditions based on the current actual situation of the group of devices effectively improves the effectiveness and applicability of the partitioning conditions in the interaction domain.
[0015] Optionally, the step of analyzing the interaction domain based on the group situation using the group leader device to obtain the partitioning conditions includes:
[0016] The group leader device selects the corresponding interaction domain from the partitioned domain based on the group situation; wherein the partitioned domain includes at least one of frequency domain, time domain, and time series.
[0017] The group leader device determines the connection requirements of each member device based on the group situation.
[0018] The group leader device determines the corresponding partitioning conditions based on the interaction domain and the connection requirements.
[0019] In the above implementation process, when determining the partitioning conditions, a suitable interaction domain can be selected from the partitioning domains corresponding to multiple connection tasks. The connection requirements of each member device within the group are determined based on the grouping situation. The partitioning conditions for partitioning within the interaction domain are then set in conjunction with the determined interaction domain and connection requirements. This allows for the selection of appropriate interaction domains and the determination of corresponding partitioning conditions from multiple partitioning domains such as frequency domain, time domain, and timing domain, based on the actual situation of device connections. This expands the applicability of the partitioning conditions and makes them suitable for various connection scenarios.
[0020] Optionally, the step of dividing the interaction domain by the target device based on the partitioning conditions to obtain multiple sub-interaction domains includes:
[0021] The interaction domain information corresponding to the interaction domain is determined by the group leader device; wherein, the interaction domain information includes at least one of frequency domain information, time domain information, and timing information;
[0022] The group leader device divides the interaction domain according to the division conditions and the interaction domain information to determine the sub-interaction domain corresponding to each group member device.
[0023] In the above implementation process, when dividing the interaction domain according to the partitioning conditions, the group leader device first determines the interaction domain information corresponding to the interaction domain, and then performs corresponding partitioning processing on the interaction domain according to the partitioning conditions and interaction domain information, determining the sub-interaction domain corresponding to each group member device. This allows the interaction domain to be divided into multiple sub-interaction domains and distributed to various group leader and group member devices for processing, enabling multiple sub-devices in the target device to process the corresponding sub-interaction domains in parallel, thus improving the accuracy and effectiveness of the partitioning process.
[0024] Optionally, the step of dividing the interaction domain by the group leader device according to the division conditions and the interaction domain information to determine the sub-interaction domain corresponding to each group member device includes:
[0025] Using the group leader device, the interaction domain is divided equally according to the number of group member devices and the frequency domain information to determine multiple sub-interaction domains; or
[0026] The group leader device divides the interaction domain according to the processing capabilities of each member device and the frequency domain information, thereby determining multiple sub-interaction domains; or
[0027] The group leader device divides the interaction domain according to the time domain situation and the time domain information to determine multiple sub-interaction domains; or
[0028] The group leader device divides the interaction domain according to the timing situation and the timing information to determine multiple sub-interaction domains.
[0029] In the above implementation process, the corresponding division conditions differ depending on the interaction domain. Therefore, based on the actual situation of the interaction domain and the corresponding interaction domain information, combined with the number of member devices, processing capabilities, and timing or sequence conditions during connection, the corresponding type of interaction domain can be adaptively divided. The group leader device can control and divide the interaction domain accordingly, and distribute it to each member device to control the search or monitoring processing of member devices, improving the correlation and practicality between each sub-interaction domain and the corresponding member devices.
[0030] Optionally, the step of searching or monitoring the peer device based on multiple sub-interaction domains by the target device, and connecting the target device and the peer device, includes:
[0031] The member device searches for or listens to the peer device based on the corresponding sub-interaction domain;
[0032] When any of the group member devices searches for or listens to the peer device, the group leader device sends a stop command to each of the group member devices.
[0033] The group leader device determines the main link with the peer device and connects the target device and the peer device.
[0034] In the above implementation process, multiple member devices within the target device establish connections based on their respective sub-interaction domains. If the target device is a paging device, the peer device is a paging scanner, and member devices can search for the peer device based on the sub-interaction domain. If the target device is a paging scanner, the peer device is a paging device, and member devices can monitor the peer device based on the sub-interaction domain. When any member device searches for or monitors the peer device, it notifies the group leader device, which then issues a stop command to control all member devices to cease their search or monitoring actions. This establishes the primary link between the group leader device and the peer device, quickly establishing a connection between the target device and the peer device. This enables connections between various numbers of wireless devices and is suitable for diverse and dynamic device interconnection scenarios.
[0035] Optionally, the target device includes multiple sub-devices; the method further includes:
[0036] Among the multiple sub-devices, identify the group leader device and group member devices in the target device;
[0037] The group leader device searches the connection database based on the first identity information of the target device and the second identity information of the peer device.
[0038] If the historical connection information between the target device and the peer device is obtained through the search, the connection with each member device is verified through the group leader device.
[0039] If the connection verification between the group leader device and each of the group members' devices is successful, the member information of each of the group members' devices is obtained through the group leader device;
[0040] The group leader device compares the member information with the historical member information in the historical connection information.
[0041] If the member information is consistent with the historical member information, then the historical division conditions in the historical connection information are obtained through the group leader device and used as the division conditions.
[0042] In the above implementation process, existing partitioning conditions can also be determined through historical information. The system can search the connection database based on the identity information of the target device and the peer device to determine if the target device and peer device already have historical connections. If so, it continues to verify the connections between member devices and the group leader device within the target device. If the verification is successful, it compares the member information of each member device with the historical member information in the historical connections to determine if multiple sub-devices within the target device have changed. If no changes have occurred, there is no need to determine new partitioning conditions; the historical partitioning conditions in the historical connections can be directly used as the partitioning conditions for the current connection. This allows for direct acquisition of historical partitioning conditions for partitioning when there is an existing connection history and the connected devices are the same, effectively saving resource costs during partitioning and improving the efficiency of partitioning the interaction domain.
[0043] Secondly, embodiments of this application also provide a device connection system, the system comprising: a target device and a peer device;
[0044] The target device is used to determine the partitioning conditions of the interaction domain when connecting the target device and the peer device.
[0045] The target device is further configured to divide the interaction domain based on the division conditions to obtain multiple sub-interaction domains;
[0046] The target device is also used to search for or monitor the peer device based on multiple sub-interaction domains, and to connect the target device and the peer device.
[0047] In the above implementation process, in the device connection system, the interaction domain corresponding to the connection task when connecting devices is divided by the target device. Based on the sub-interaction domains obtained, the corresponding peer devices can be searched or monitored, thereby quickly establishing a communication connection between the target device and the peer device.
[0048] Thirdly, embodiments of this application also provide an electronic device, which includes a memory and a processor. The memory stores program instructions, and when the processor reads and runs the program instructions, it executes the steps in any of the above-described implementations of the device connection method.
[0049] Fourthly, embodiments of this application also provide a computer-readable storage medium storing computer program instructions, which, when read and executed by a processor, perform steps in any of the above-described implementations of the device connection method.
[0050] In summary, the embodiments of this application provide a device connection method, system, electronic device, and computer-readable storage medium. By dividing the interaction domain during device connection and searching or listening according to the sub-interaction domains obtained from the division, the connection tasks between devices can be controlled and allocated quickly and accurately, effectively improving the connection speed when wireless devices communicate with each other. This method is suitable for connection scenarios between various numbers of devices. Attached Figure Description
[0051] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0052] Figure 1 A block diagram illustrating an electronic device provided in an embodiment of this application;
[0053] Figure 2 A schematic flowchart illustrating a device connection method provided in an embodiment of this application;
[0054] Figure 3 A detailed flowchart of step S200 provided for an embodiment of this application;
[0055] Figure 4 A detailed flowchart of step S230 provided for an embodiment of this application;
[0056] Figure 5A detailed flowchart of step S300 provided for an embodiment of this application;
[0057] Figure 6 A detailed flowchart of step S400 provided for an embodiment of this application;
[0058] Figure 7 A flowchart illustrating another device connection method provided in an embodiment of this application;
[0059] Figure 8 This is a schematic diagram illustrating the operation and interaction of a device connection system provided in an embodiment of this application.
[0060] Icons: 100 - Electronic device; 111 - Memory; 112 - Memory controller; 113 - Processor; 114 - Peripheral interface; 115 - Input / output unit; 116 - Display unit; 600 - Target device; 700 - Peer device. Detailed Implementation
[0061] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of the embodiments of this application.
[0062] The standard Bluetooth core protocol specifies that for each pair of connected devices, one must perform paging behavior, and the other must perform page scan behavior. For example, in a typical connection process, page scan behavior is characterized by: a relatively large RX (receive) window, with frequency hopping every 1.28 seconds; if a page packet is detected at this scan frequency, a response will be sent. Page behavior itself has a period of 1.25ms, divided into 625µs TX (transport) slots and RX slots. Within a 625µs TX slot, two ID packets with different frequencies but identical content are sent, which are then received in subsequent RX slots to receive responses from the page scan device. The page device's frequency hopping rate is 3600 hops / s, meaning it changes frequency every 312.5 microseconds, hopping 16 frequencies in 10 milliseconds. For the page device and page scan device to pair and connect, there needs to be a point in time where the page's frequency matches the page scan's frequency. For example, if a page action lasts longer than 1.28 seconds, it can collide with a page scan device on the same frequency. Therefore, Bluetooth devices typically perform page actions for at least 1.28 seconds or 2.56 seconds, or even longer. The frequency tuning order is determined by the frequency changes of the page device and the page scan device. If the page scan device's frequency changes more slowly, the page device's frequency changes more quickly, so that the page device can catch up with the page scan frequency as soon as possible, thus achieving a successful connection.
[0063] In current wireless connectivity scenarios, multiple wireless devices typically connect. Since mobile phones, headphones, and other wireless devices are mobile, issues arise such as device movement, power-on, and exceeding distances between multiple devices. Furthermore, during the connection process, the functions or protocols of different wireless devices may switch. Therefore, the interconnection scenario between multiple wireless devices changes as the wireless devices move. To minimize the impact of these changes on users' normal use of wireless devices, higher requirements are placed on the connection speed between wireless devices.
[0064] Currently, to improve connection speeds between wireless devices, modifications are typically made to the Bluetooth protocol. For example, the page scan window is enlarged to cover at least 16 page frequencies (equivalent to more than 10 milliseconds) to ensure successful connection on a specific frequency; or the page interval is reduced for speed. However, these methods do not achieve a significant average speedup, and connection speeds between wireless devices remain slow. They are unsuitable for diverse interconnection scenarios and can negatively impact normal user experience.
[0065] Therefore, in order to solve the above problems, this application provides a device connection method, which is applied to electronic devices. The electronic devices can be headphones, personal computers (PCs), tablet computers, smartphones, personal digital assistants (PDAs), and other electronic devices with logical computing functions and capable of wireless connection. The method can divide the interaction domain during connection so as to search or listen for multiple sub-interaction domains at the same time and quickly connect to the other end device.
[0066] Optionally, both the target device and the peer device can be wirelessly connected electronic devices, and both can include one or more electronic devices of the same or different types. For example, the target device may include multiple headsets and microphones, and the peer device may be a mobile phone. The target device and the peer device may overlap or partially overlap in time and space. The greater the overlap, the faster the wireless connection between the target device and the peer device.
[0067] Optionally, please refer to Figure 1 , Figure 1 This is a block diagram illustrating an electronic device according to an embodiment of this application. The electronic device 100 may include a memory 111, a memory controller 112, a processor 113, a peripheral interface 114, an input / output unit 115, and a display unit 116. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the electronic device 100. For example, the electronic device 100 may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0068] The aforementioned memory 111, memory controller 112, processor 113, peripheral interface 114, input / output unit 115, and display unit 116 are electrically connected directly or indirectly to each other to achieve data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines. The aforementioned processor 113 is used to execute executable modules stored in the memory.
[0069] The memory 111 can be, but is not limited to, Random Access Memory (RAM), Read Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), etc. The memory 111 stores programs. After receiving execution instructions, the processor 113 executes the programs. The methods executed by the electronic device 100 as defined in any embodiment of this application can be applied to the processor 113, or implemented by the processor 113.
[0070] The aforementioned processor 113 may be an integrated circuit chip with signal processing capabilities. The processor 113 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a digital signal processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor.
[0071] The peripheral interface 114 described above couples various input / output devices to the processor 113 and the memory 111. In some embodiments, the peripheral interface 114, the processor 113, and the memory controller 112 can be implemented on a single chip. In other instances, they can be implemented on separate chips.
[0072] The input / output unit 115 described above is used to provide user input data. The input / output unit 115 can be, but is not limited to, a mouse and a keyboard.
[0073] The aforementioned display unit 116 provides an interactive interface (e.g., a user interface) between the electronic device 100 and the user, or displays image data for the user's reference. In this embodiment, the display unit can be a liquid crystal display (LCD) or a touch display. If it is a touch display, it can be a capacitive touchscreen or a resistive touchscreen that supports single-point and multi-point touch operations. Supporting single-point and multi-point touch operations means that the touch display can sense touch operations generated simultaneously from one or more locations on the touch display and pass the sensed touch operations to the processor for calculation and processing. In this embodiment, the display unit 116 can display information such as the name and type of the connected peer device.
[0074] The electronic device in this embodiment can be used to execute various steps in the various device connection methods provided in the embodiments of this application. The implementation process of the device connection method is described in detail below through several embodiments.
[0075] Please see Figure 2 , Figure 2 This is a flowchart illustrating a device connection method provided in an embodiment of this application, which includes steps S200-S400.
[0076] Step S200: Determine the partitioning conditions of the interaction domain when connecting the target device and the peer device through the target device.
[0077] When a target device connects to a peer device, there is an interaction domain corresponding to the connection task, such as the time domain, frequency domain, or timing. To improve the speed of connections between devices, the connection task can be assigned, i.e., the partitioning conditions for dividing the interaction domain are determined first.
[0078] Step S300: The target device divides the interaction domain based on the partitioning conditions to obtain multiple sub-interaction domains.
[0079] By dividing the interaction domain according to the partitioning conditions, multiple corresponding sub-interaction domains can be obtained.
[0080] Step S400: The target device searches for or listens to the peer device based on multiple sub-interaction domains, and connects the target device and the peer device.
[0081] In this context, the target device can be a page device, in which case the peer device is the corresponding page scan device; conversely, the target device can also be a page scan device, in which case the peer device is the corresponding page device. Therefore, when the target device is a page device, a paging search operation can be performed on the peer device based on multiple sub-interaction domains; when the target device is a page scan device, a paging scan listening operation can be performed on the peer device based on multiple sub-interaction domains, thereby establishing a connection between the target device and the peer device.
[0082] exist Figure 2 In the illustrated embodiment, connection tasks between multiple wireless devices can be controlled and allocated quickly and accurately, and search and listen processes can be performed in parallel. This effectively improves the processing efficiency of the wireless devices in the interaction domain corresponding to the connection tasks, thereby increasing the connection speed when wireless devices communicate with each other, improving the user experience, and is suitable for connection scenarios between various numbers of devices.
[0083] It should be noted that the target device may include multiple sub-devices, and the peer device may be a single electronic device or multiple electronic devices. Please refer to [link / reference]. Figure 3 , Figure 3 This is a detailed flowchart of step S200 provided in an embodiment of the present application. Step S200 may include steps S210-S230.
[0084] Step S210: Determine the group leader device and group member devices among the target devices from among the multiple sub-devices.
[0085] In this context, when the target device comprises multiple sub-devices, such as multiple headphone devices, the target device is the corresponding group, i.e., a group device. Therefore, a group leader device for controlling the entire target device and one or more member devices controlled can be identified among the multiple sub-devices in the group device.
[0086] Step S220: Search for each member's device through the group leader's device to obtain the group information of the target device.
[0087] The group leader device can first search for member devices within the group to determine the group situation within the target device. The group situation can include the situation of each member device within the target device, such as the number of sub-devices included in the target device, the types of group leader device and member devices, and the Bluetooth protocol used for connection.
[0088] Optionally, if the group leader device does not find a corresponding group member device, the target device may be a single electronic device, in which case the target device will be processed as both the group leader device and the group member device.
[0089] Step S230: The group leader device analyzes the interaction domain based on the group situation to obtain the partitioning conditions.
[0090] The group leader device can analyze and process the interaction domain according to the group situation, that is, according to the actual situation of the groups within the target device, in order to determine the appropriate partitioning conditions. It can also make corresponding adjustments when the group situation within the target device changes, so that the partitioning conditions can be applied to the current target device.
[0091] Optionally, when the group leader device and member devices connect within the group, they can use various connection media such as Bluetooth, wireless network, and wired network to connect in various ways. If the connection method between the group leader device and member devices is relatively stable, such as a fixed network such as Ethernet, the search action of the group leader device for member devices can be omitted, and the interaction domain can be directly divided based on fixed partitioning conditions to accelerate the connection between the target device and the peer device.
[0092] exist Figure 3 In the illustrated embodiment, the corresponding partitioning conditions can be determined based on the current actual situation of the group of devices, which effectively improves the effectiveness and applicability of the partitioning conditions in the interaction domain.
[0093] Optionally, please refer to Figure 4 , Figure 4 This is a detailed flowchart of step S230 provided in an embodiment of the present application. Step S230 may include steps S231-S233.
[0094] Step S231: The group leader device selects the corresponding interaction domain from the partitioned domains based on the group situation.
[0095] The partitioned domain refers to the problem domain corresponding to the connection task when the target device and the peer device connect. It can include various domain information such as frequency domain, time domain, and timing. The group leader device can select one or more problem domains suitable for the target device to connect from various different problem domains as the interaction domain during connection, based on the group situation.
[0096] Step S232: The group leader determines the connection requirements of each group member's device based on the group situation using the group leader's device.
[0097] Since the RF (Radio Frequency) devices of each member device have different functions, the connection requirements and capabilities of each member device are also different. Therefore, the group leader device can determine the multiple connection requirements of each member device when connecting, based on the specific situation of each member device in the group. For example, member devices with better RF device functions or stronger connection capabilities can undertake more connection tasks. Connection requirements can include various information such as connection frequency, interaction sequence, and time slot.
[0098] Step S233: The group leader device determines the corresponding partitioning conditions based on the interaction domain and connection requirements.
[0099] Among these, appropriate partitioning conditions can be determined in various problem domains such as frequency domain, time domain, or time series, by combining the defined interaction domain and connection requirements.
[0100] Alternatively, when the group leader's device and the group members' devices are electronic devices of the same type, the connection requirements of each sub-device are basically the same. Therefore, the division condition can also be to divide the interaction domain equally.
[0101] exist Figure 4 In the illustrated embodiment, the appropriate interaction domain can be selected from multiple partitioning domains such as frequency domain, time domain, and timing domain, and the corresponding partitioning conditions can be determined according to the actual situation when devices are connected. This expands the scope of application of the partitioning conditions and is suitable for various connection scenarios.
[0102] Optionally, please refer to Figure 5 , Figure 5 This is a detailed flowchart of step S300 provided in an embodiment of the present application. Step S300 may include steps S310-S320.
[0103] Step S310: Determine the interaction domain information corresponding to the interaction domain through the group leader's device.
[0104] Since the interaction domains to be divided may differ, the corresponding interaction domain information includes frequency domain information, time domain information, and timing information corresponding to the frequency domain, time domain, or timing sequence information within the interaction domain. After determining the interaction domains to be divided, the group leader device can obtain and process the interaction domain information corresponding to the interaction domain selected when the target device connects to the peer device.
[0105] Step S320: The group leader device divides the interaction domain according to the division conditions and interaction domain information to determine the sub-interaction domain corresponding to each group member device.
[0106] The group leader device can divide the interaction domain according to the division conditions and the corresponding interaction domain information using the corresponding algorithm, thereby obtaining the sub-interaction domains corresponding to the group leader device and each member device, that is, each electronic device contained in the target device.
[0107] It should be noted that when dividing the data, the group leader device can be a device that simply performs control, or it can be a member device of the group to divide the corresponding sub-interaction domains.
[0108] Optionally, the partitioning method may include: dividing the interaction domain equally based on the number of member devices and frequency domain information using the group leader device to determine multiple sub-interaction domains. For example, since the frequency hopping method during Bluetooth connection is relatively complex, there are many frequency points when connecting between devices. The frequency domain information may include the number of frequency points. When the target device is a paging TWS (True Wireless Stereo) earphone and the peer device is a paging scanning mobile phone, during connection, if a pair of TWS earphones (including two earphones, i.e., the left earphone and the right earphone) is open, or in other cases, the earphones reconnect to the mobile phone, and the two earphones have already been paired and connected, the primary earphone, i.e., the member device, first connects to the secondary earphone, i.e., the member device. When the number of frequency points in the frequency domain information is 80, the domain can be divided equally based on the number of frequency points and the number of earphone devices. For example, the primary earphone A is assigned 1-40 frequency points, and the secondary earphone B is assigned 41-80 frequency points as corresponding sub-interaction domains.
[0109] For example, the connection strategy between the primary and secondary earbuds can be communicated. If neither earbud connects within 500ms, the scanning channels can be swapped to avoid situations where one earbud is too far from the phone. Since multiple earbuds can connect via private links, interconnection between multiple earbuds can be initiated simultaneously with the connection between the phone, further improving the speed of device interconnection. If there are subsequent scenarios requiring parallel operation for acceleration, the primary earbud can send a fast page request to the secondary earbud, thus agreeing on the start and end time of the page request.
[0110] It should be noted that when the target device is a paging scanning device, such as an earphone, and the peer device is a paging device, such as a mobile phone, page scan can also be divided accordingly. For example, the primary earphone A performs paging scanning operations on frequency points 1-40, and the secondary earphone B performs paging scanning operations on frequency points 41-80, etc., as corresponding sub-interaction domains.
[0111] Optionally, the partitioning method may also include: using the group leader device to divide the interaction domain according to the processing capabilities and frequency domain information of each member device, thus determining multiple sub-interaction domains. Since each member device may have different types and models, and the RF processing capabilities of the RF devices configured in the member devices may also differ, the frequency points can also be partitioned according to the processing capabilities of each member device. For example, if device C has better RF device processing capabilities and device D has weaker RF device processing capabilities, then with 80 frequency points, 1-60 frequency points can be allocated to device C, and 61-80 frequency points can be allocated to device D as corresponding sub-interaction domains.
[0112] Optionally, the division method may also include: using the group leader device to divide the interaction domain according to the time domain situation and time domain information to determine multiple sub-interaction domains. The time domain information may include the paging or paging scanning operations that the device needs to perform within a certain time period, and the time domain situation is the time period that each group member device can process. Based on the time domain situation and time domain information, the processing time and processing operations of each group member device can be divided to obtain the corresponding sub-interaction domains.
[0113] Optionally, the partitioning method may also include: using the group leader device to divide the interaction domain according to timing conditions and timing information to determine multiple sub-interaction domains. Since the Bluetooth protocols used for connection between devices are different, the frequency hopping sequences for paging or paging scanning are also different, and their corresponding timing information is also different. Therefore, the partitioning can be based on the timing status of member devices in the target device, such as timing order and sequence number, combined with the timing information corresponding to the protocol frequency hopping sequence, to obtain the corresponding sub-interaction domains.
[0114] Optionally, through the various division methods described above, interactive domains of corresponding types can be adaptively divided based on the actual situation of the interactive domain and the corresponding interactive domain information, combined with the number of member devices, processing capabilities, and timing or sequence conditions during connection. The group leader device controls and divides the interactive domains accordingly and distributes them to each member device to control the search or monitoring processing of member devices, thereby improving the correlation and practicality between each sub-interactive domain and the corresponding member devices.
[0115] exist Figure 5 In the illustrated embodiment, the interaction domain can be divided into multiple sub-interaction domains and assigned to various group leader devices and group member devices for processing, so that multiple sub-devices in the target device can process the corresponding sub-interaction domains in parallel, improving the accuracy and effectiveness of the division.
[0116] Optionally, please refer to Figure 6 , Figure 6This is a detailed flowchart of step S400 provided in an embodiment of the present application. Step S400 may include steps S410-S430.
[0117] Step S410: The member device searches for or listens to the peer device according to the corresponding sub-interaction domain.
[0118] Each member device or group leader device can perform corresponding search or monitoring processes on the peer device based on the assigned sub-interaction domain. For example, if a headset is assigned to 1-40 frequency points, then the headset can perform paging search or paging scan monitoring processes on the corresponding peer device within those 1-40 frequency points.
[0119] Step S420: When any member device searches for or listens to the peer device, a stop command is sent to each member device through the group leader device.
[0120] When any member device searches for or listens to a corresponding peer device, the member device successfully connects to the peer device. The member device can then send the successful connection information to the group leader device, which can then send a stop command to each member device to stop the search or listening operation, thereby controlling the connection to stop and reducing the loss caused by the search or listening process in the device.
[0121] Step S430: The main link with the peer device is determined through the group leader device, and the target device and the peer device are connected.
[0122] The leader device can also perform RSSI (Received Signal Strength Indicator) filtering on multiple links when connecting to the peer device to determine the link with the higher strength as the main link and establish a connection between the target device and the peer device.
[0123] Optionally, other member devices can connect only to the group leader device to achieve connection with the peer device through the group leader device, or the connection between the member devices and the peer device can be established directly based on the connection between the group leader device and the peer device. The specific connection situation can be determined and adjusted according to the connection requirements of each member device.
[0124] exist Figure 6 In the illustrated embodiment, a connection can be quickly established between the target device and the peer device, enabling connections between various numbers of wireless devices, and is suitable for a variety of dynamic device interconnection scenarios.
[0125] Optionally, please refer to Figure 7 , Figure 7This is a flowchart illustrating another device connection method provided in an embodiment of this application. When the target device includes multiple sub-devices, the method may further include steps S510-S560.
[0126] Step S510: Determine the group leader device and group member devices among the target devices from among the multiple sub-devices.
[0127] The method for determining the equipment of the group leader and group members is the same as in step S210, and will not be repeated here.
[0128] Step S520: The group leader device searches the connection database based on the first identity information of the target device and the second identity information of the peer device.
[0129] Since there may be multiple connections between devices, the connection database can be searched based on the group leader device, the first identity information of the target device and the second identity information of the peer device to determine whether the target device and the peer device have a corresponding connection history.
[0130] Step S530: If the historical connection information between the target device and the peer device is obtained, the connection with each member device is verified through the group leader device.
[0131] Specifically, if the target device and the peer device have previously connected, historical connection information can be retrieved from the connection database. This historical connection information may include various details such as the historical partitioning conditions used by the target device during previous connections and member information for each device within the target device. Furthermore, if the target device and the peer device have a connection history, the group leader device can verify the connections between each group member device to ensure that the group leader device and group member devices can connect normally for data transmission and command control.
[0132] Step S540: If the connection verification between the group leader device and each group member device is successful, the member information of each group member device is obtained through the group leader device.
[0133] When the group leader device successfully connects to all member devices within the target device, the group leader device can obtain member information for each member device based on the connection, such as the type and number of device 1, the type and number of device 2, the type and number of device 3, and so on.
[0134] Step S550: The group leader device compares the member information with the historical member information in the historical connection information.
[0135] To ensure that the current connection status is the same as the historical connection status, the group leader device can compare the member information with the historical member information in the historical connection information to determine whether multiple sub-devices in the target device have changed, such as a device leaving the target device's group or a new device being added to the target device.
[0136] Step S560: If the member information is consistent with the historical member information, then obtain the historical division conditions from the historical connection information through the group leader device, and use them as the division conditions.
[0137] When the member information is consistent with the historical member information, the group within the target device has not changed, so there is no need to determine new partitioning conditions. The historical partitioning conditions in the historical connection can be directly used as the partitioning conditions for the current connection.
[0138] exist Figure 7 In the illustrated embodiment, historical partitioning conditions can be directly obtained for partitioning when there is an existing connection history and the connected devices are the same, which effectively saves resource costs during partitioning and improves the efficiency of partitioning the interaction domain.
[0139] Please see Figure 8 , Figure 8 This is a schematic diagram of the operation and interaction of a device connection system provided in an embodiment of this application. The system includes a target device 600 and a peer device 700, and the target device 600 and the peer device 700 establish a wireless connection through a network, Bluetooth or other means.
[0140] Target device 600 is used to determine the partitioning conditions of the interaction domain when connecting the target device 600 and the peer device 700;
[0141] The target device 600 is also used to divide the interaction domain based on the partitioning conditions to obtain multiple sub-interaction domains;
[0142] The target device 600 is also used to search for or listen to the peer device 700 based on multiple sub-interaction domains, and to connect the target device 600 and the peer device 700.
[0143] Optionally, the target device 600 includes multiple sub-devices. In one optional implementation, the target device 600 is specifically used to determine the group leader device and group member devices among the multiple sub-devices. The group leader device is used to search for each group member device to obtain the group situation of the target device 600. The interaction domain is analyzed based on the group situation to obtain the partitioning conditions.
[0144] In an optional implementation, the group leader device is specifically used to select the corresponding interaction domain in the partitioning domain based on the group situation; wherein the partitioning domain includes at least one of frequency domain, time domain, and timing; determine the connection requirements of each group member device according to the group situation; and determine the corresponding partitioning conditions according to the interaction domain and connection requirements.
[0145] In one optional implementation, the group leader device is specifically used to determine the interaction domain information corresponding to the interaction domain; wherein the interaction domain information includes at least one of frequency domain information, time domain information, and timing information; the interaction domain is divided according to the division conditions and the interaction domain information to determine the sub-interaction domain corresponding to each group member device.
[0146] In one optional implementation, the group leader device is specifically used to divide the interaction domain equally according to the number of group member devices and frequency domain information to determine multiple sub-interaction domains; or, to divide the interaction domain according to the processing capability and frequency domain information of each group member device to determine multiple sub-interaction domains; or, to divide the interaction domain according to the time domain situation and time domain information to determine multiple sub-interaction domains; or, to divide the interaction domain according to the timing situation and timing information to determine multiple sub-interaction domains.
[0147] In an optional implementation, the member device is used to search for or listen to the peer device 700 based on the corresponding sub-interaction domain;
[0148] When any member device searches for or listens to the peer device 700, the group leader device sends a stop command to each member device; determines the main link with the peer device 700, and connects the target device 600 and the peer device 700.
[0149] Optionally, the target device 600 includes multiple sub-devices. In one optional embodiment, the target device 600 is specifically used to determine the group leader device and group member devices among the multiple sub-devices. The group leader device is specifically used to search the connection database based on the first identity information of the target device 600 and the second identity information of the peer device 700. If the historical connection information between the target device 600 and the peer device 700 is obtained, the connection with each group member device is verified. If the connection verification between the group leader device and each group member device is successful, the member information of each group member device is obtained. The member information is compared with the historical member information in the historical connection information. If the member information is consistent with the historical member information, the historical division conditions in the historical connection information are obtained as the division conditions.
[0150] This application also provides a computer-readable storage medium storing computer program instructions. When the computer program instructions are read and executed by a processor, they perform the steps of any of the methods in the device connection method provided in this embodiment.
[0151] In the several embodiments provided in this application, it should be understood that the disclosed device can also be implemented in other ways. The system embodiments described above are merely illustrative; for example, the block diagrams in the accompanying drawings show the architecture, functionality, and operation of possible implementations of the device according to various embodiments of this application. In this regard, each block in the block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagram, and combinations of block diagrams, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0152] In addition, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0153] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0154] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application. It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
[0155] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.
[0156] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.
Claims
1. A device connection method, characterized in that, The method includes: The conditions for dividing the interaction domain when determining the connection between the target device and the peer device using the target device; The target device divides the interaction domain based on the division criteria to obtain multiple sub-interaction domains; The target device searches for or listens to the peer device based on multiple sub-interaction domains, thereby connecting the target device and the peer device. The target device includes multiple sub-devices; the criteria for dividing the interaction domain when determining the connection between the target device and the peer device through the target device include: identifying the group leader device and group member devices in the target device among the multiple sub-devices; searching for each group member device through the group leader device to obtain the group situation of the target device; and analyzing the interaction domain based on the group situation through the group leader device to obtain the division criteria. The step of dividing the interaction domain by the target device based on the division conditions to obtain multiple sub-interaction domains includes: determining the interaction domain information corresponding to the interaction domain by the group leader device; wherein the interaction domain information includes at least one of frequency domain information, time domain information, and timing information; and dividing the interaction domain by the group leader device according to the division conditions and the interaction domain information to determine the sub-interaction domain corresponding to each group member device. The step of searching or monitoring the peer device based on multiple sub-interaction domains by the target device and connecting the target device and the peer device includes: searching or monitoring the peer device by the group member device according to the corresponding sub-interaction domain; when any group member device searches for or monitors the peer device, sending a stop command to each group member device by the group leader device; and determining the main link with the peer device by the group leader device and connecting the target device and the peer device.
2. The method according to claim 1, characterized in that, The step of analyzing the interaction domain based on the group situation using the group leader device to obtain the partitioning conditions includes: The group leader device selects the corresponding interaction domain from the partitioned domain based on the group situation; wherein the partitioned domain includes at least one of frequency domain, time domain, and time series. The group leader device determines the connection requirements of each member device based on the group situation. The group leader device determines the corresponding partitioning conditions based on the interaction domain and the connection requirements.
3. The method according to claim 1, characterized in that, The step of dividing the interaction domain by the group leader device according to the division conditions and the interaction domain information to determine the sub-interaction domain corresponding to each group member device includes: Using the group leader device, the interaction domain is divided equally according to the number of group member devices and the frequency domain information to determine multiple sub-interaction domains; or The group leader device divides the interaction domain according to the processing capabilities of each member device and the frequency domain information, thereby determining multiple sub-interaction domains; or The group leader device divides the interaction domain according to the time domain situation and the time domain information to determine multiple sub-interaction domains; or The group leader device divides the interaction domain according to the timing situation and the timing information to determine multiple sub-interaction domains.
4. The method according to claim 1, characterized in that, The method further includes: The group leader device searches the connection database based on the first identity information of the target device and the second identity information of the peer device. If the historical connection information between the target device and the peer device is obtained through the search, the connection with each member device is verified through the group leader device. If the connection verification between the group leader device and each of the group members' devices is successful, the member information of each of the group members' devices is obtained through the group leader device; The group leader device compares the member information with the historical member information in the historical connection information. If the member information is consistent with the historical member information, then the historical division conditions in the historical connection information are obtained through the group leader device and used as the division conditions.
5. A device connection system, characterized in that, The system includes: a target device and a peer device; The target device is used to determine the partitioning conditions of the interaction domain when connecting the target device and the peer device. The target device is further configured to divide the interaction domain based on the division conditions to obtain multiple sub-interaction domains; The target device is also used to search for or listen to the peer device based on multiple sub-interaction domains, and to connect the target device and the peer device; The target device includes multiple sub-devices; specifically, the target device is used to: determine the group leader device and group member devices among the multiple sub-devices; search each group member device through the group leader device to obtain the group situation of the target device; and analyze the interaction domain based on the group situation through the group leader device to obtain the partitioning conditions. The group leader device is specifically used to: determine the interaction domain information corresponding to the interaction domain; wherein the interaction domain information includes at least one of frequency domain information, time domain information, and timing information; divide the interaction domain according to the division conditions and the interaction domain information to determine the sub-interaction domain corresponding to each group member device; The member devices are used to search for or listen to the peer devices according to the corresponding sub-interaction domains; when any member device searches for or listens to the peer device, the leader device is used to send a stop command to each member device, determine the main link with the peer device, and connect the target device and the peer device.
6. An electronic device, characterized in that, The electronic device includes a memory and a processor. The memory stores program instructions, and when the processor executes the program instructions, it performs the steps of the method according to any one of claims 1-4.
7. A computer-readable storage medium, characterized in that, The readable storage medium stores computer program instructions, which, when executed by a processor, perform the steps of the method according to any one of claims 1-4.
Citation Information
Patent Citations
Ultra-wideband communication method based on bluetooth scan negotiation and electronic device therefor
WO2022215993A1