Multi-device pairing method and communication method using encoding for time-division multiplexing on the same channel

Through the encoding pairing and random delay mechanisms between devices, the interference problem when multiple devices share the same channel is solved, and convenient and accurate pairing and high-quality communication are achieved.

CN119815578BActive Publication Date: 2025-07-22AIFRUTECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510292054.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-03-12
Publication Date
2025-07-22
Estimated Expiration
2045-03-12

AI Technical Summary

Technical Problem

When multiple groups of devices share the same channel for communication, there is a problem of mutual interference between devices and affecting communication quality.

Method used

The idle encoding is obtained by each device, pairing encoding is used for pairing mode monitoring and response, random delay is set to ensure that at least one device completes pairing with the second device, and switches to the working mode after the pairing is successful, and communicates with the same encoding.

Benefits of technology

It improves the convenience and accuracy of equipment pairing, reduces mutual interference between equipment, and improves communication quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119815578B_ABST
    Figure CN119815578B_ABST
Patent Text Reader

Abstract

The present application discloses a multi-device pairing method and a communication method that utilize time-division multiplexing of encodings on the same channel. The pairing method includes: each first device respectively obtains an idle first encoding, and then enters the pairing mode to listen for pairing requests using the pairing encoding; the second device obtains an idle second encoding, and then enters the pairing mode to send pairing requests using the pairing encoding; after each first device receives a pairing request, it sends a pairing response after a random delay, the second device sends a pairing confirmation request based on the pairing response, and at least one first device replies with a pairing confirmation response based on the pairing confirmation request. By using the same pairing encoding for pairing, the present application can make the pairing process more convenient and accurate. At the same time, by setting a random delay, it is ensured that at least one of the multiple first devices acts as a third device to complete pairing with the second device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of wireless communication technologies, and in particular, to a multi-device pairing method and a communication method that utilize encoding for time-division multiplexing on the same channel. Background Art

[0002] Nowadays, as a type of game control device, gamepads are widely used in various game platforms. Especially in action, sports, and racing games, gamepads provide a better operation experience. Therefore, players' requirements for the communication quality between gamepads and game consoles are also getting higher and higher.

[0003] In the prior art, gamepads and game consoles generally rely on wireless communication, such as Bluetooth, WiFi, etc. However, in some actual scenarios, the channels available for gamepads and game consoles are limited, and there are often multiple sets of devices communicating simultaneously in this scenario, resulting in the pairing and communication between gamepads and game consoles being affected. Summary of the Invention

[0004] The purpose of this application is to provide a multi-device pairing method and a communication method that utilize encoding for time-division multiplexing on the same channel to solve the technical problem in the prior art that existing multiple sets of devices communicating based on the same channel will interfere with each other during communication and affect the communication quality. The numerous technical effects that can be produced by the preferred technical solutions among the numerous technical solutions provided in this application are described in detail below.

[0005] To achieve the above purpose, this application provides the following technical solutions:

[0006] In a first aspect, a multi-device pairing method that utilizes encoding for time-division multiplexing on the same channel provided by this application includes:

[0007] Each first device respectively obtains an idle first code, and then enters the pairing mode to listen for pairing requests using the pairing code; the second device obtains an idle second code, and then enters the pairing mode to send the pairing request using the pairing code; after each first device receives the pairing request, it sends a pairing response after a random delay, the second device sends a pairing confirmation request based on the pairing response, and at least one first device replies with a pairing confirmation response based on the pairing confirmation request, where the pairing response includes the device ID of the first device and the idle first code, the pairing confirmation request includes the device ID of the second device, the device ID of the third device, and the third code, where the third code is either the idle first code or the idle second code, and the third device is the first device determined to be paired with the second device among the multiple first devices; both the second device and the third device use the third code to switch from the pairing mode to the working mode, completing the pairing process of the second device and the third device.

[0008] In some embodiments, the second device sending a pairing confirmation request based on the pairing response includes: the second device receives the first pairing response, generates the pairing confirmation request according to the first pairing response, and sends the pairing confirmation request to the third device corresponding to the first pairing response or each first device.

[0009] In some embodiments, at least one first device replying with a pairing confirmation response based on the pairing confirmation request includes: the first device compares the device ID of the third device in the pairing confirmation request, and if the device ID of the third device is the same as the device ID of the first device itself, it sends the pairing confirmation response to the second device based on the pairing confirmation request.

[0010] In some embodiments, after the first device compares the device ID of the third device in the pairing confirmation request, the multi-device pairing method using time-division multiplexing of codes on the same channel further includes: if the device ID of the third device in the pairing confirmation request is different from the device ID of the first device itself, the first device saves the third code in the pairing confirmation request; after the second device switches from the pairing mode to the working mode, the first device uses the third code to switch from the pairing mode to the working mode.

[0011] In some embodiments, the multi-device pairing method using encoding for time-division multiplexing on the same channel includes: the second device compares the idle first encoding with the idle second encoding. If the idle first encoding is the same as the idle second encoding, then either the idle first encoding or the idle second encoding is set as the third encoding; if the idle first encoding is different from the idle second encoding, then the one with the latest acquisition time among the idle first encoding and the idle second encoding is set as the third encoding.

[0012] In a second aspect, the present application provides a multi-device communication method using encoding for time-division multiplexing on the same channel, which is applied to the second device and multiple third devices that have completed the pairing process using the multi-device pairing method using encoding for time-division multiplexing on the same channel as described above, and includes: the second device obtains an idle fourth encoding, and uses the idle fourth encoding to broadcast a communication request, where the communication request at least includes the device ID of the second device; the multiple third devices switch the current encoding until the communication request is received; the multiple third devices use the idle fourth encoding to send a communication response to the second device based on time-division multiplexing to establish communication, and the second device communicates with the multiple third devices separately in sequence, and each third device communicates with the second device based on time-division multiplexing.

[0013] In some embodiments, before the second device obtains the idle fourth encoding, the multi-device communication method using encoding for time-division multiplexing on the same channel includes: the second device obtains the last used fifth encoding, and based on the last used fifth encoding, determines whether any of the third devices is in the working mode. If any of the third devices is in the working mode, then the second device enters the working mode based on the last used fifth encoding, where the last used fifth encoding refers to the encoding used by the second device and the third device when they last entered the pairing mode or the working mode; if none of the multiple third devices is in the working mode, then it is determined whether the last used fifth encoding is idle. If the last used fifth encoding is idle, then the second device enters the working mode based on the last used fifth encoding.

[0014] In some embodiments, the multiple third devices switch the current encoding until the communication request is received, and includes: the multiple third devices use the last used fifth encoding to monitor the communication request. If the communication request is not monitored within a preset interval, or the communication request does not include the device ID of the second device, then the multiple third devices use the next encoding to continue monitoring the communication request.

[0015] In some embodiments, the multi-device communication method using encoding for time-division multiplexing on the same channel includes: when the second device and / or the multiple third devices are in the working mode, the second device and / or the multiple third devices broadcast information periodically.

[0016] In a third aspect, the present application provides a computer program product, which is stored on a data carrier and is designed to execute the multi-device pairing method using encoding for time-division multiplexing on the same channel as described above and execute the multi-device communication method using encoding for time-division multiplexing on the same channel as described above.

[0017] Implementing one of the above technical solutions of the present application has the following advantages or beneficial effects: In the present application, the first device and the second device respectively obtain idle encodings, and perform information interaction during the pairing process based on the same pairing encoding. After establishing a communication connection, they then enter the working mode from the pairing mode based on the same encoding to complete the pairing process. In this case, by using the same pairing encoding for pairing, the pairing process can be made more convenient and accurate. At the same time, by setting a random delay, it is ensured that at least one of the multiple first devices acts as a third device to complete the pairing with the second device. At this time, both the second device and the third device can be allocated an idle encoding for communication and the encodings of this group of devices are the same. Thus, the communication between different devices can be isolated by using multiple encodings, thereby reducing the mutual interference between devices and improving the communication quality of the devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] To more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings. In the drawings:

[0019] Figure 1 is a flowchart of the multi-device pairing method using encoding for time-division multiplexing on the same channel according to an embodiment of the present application;

[0020] Figure 2 is a flowchart of the multi-device communication method using encoding for time-division multiplexing on the same channel according to an embodiment of the present application;

[0021] Figure 3 is a pairing timing diagram of the multi-device pairing method using encoding for time-division multiplexing on the same channel according to an embodiment of the present application;

[0022] Figure 4 is a structural block diagram of a processing device according to an embodiment of the present application.

[0023] In the figure: 1. Processing device; 10. Memory; 11. Processor. Detailed implementation manners

[0024] In order to make the objectives, technical solutions and advantages of the present application clearer, various exemplary embodiments to be described below will refer to the corresponding drawings, which form a part of the exemplary embodiments and describe various exemplary embodiments that may be adopted to implement the present application. Unless otherwise indicated, the same numerals in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present disclosure. It should be understood that they are merely examples of processes, methods, devices, etc. consistent with some aspects of the present application disclosed in detail in the appended claims. Other embodiments may also be used, or structural and functional modifications may be made to the embodiments listed herein without departing from the scope and essence of the present application.

[0025] In the description of the present application, it should be understood that terms such as "center", "longitudinal", "lateral", etc. indicate the orientation or positional relationship based on the drawings shown, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the elements referred to must have a specific orientation, be constructed and operated in a specific orientation. Terms such as "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features. The meaning of the term "plurality" is two or more. The terms "connected" and "coupled" should be understood in a broad sense. For example, they may be fixedly connected, detachably connected, integrally connected, mechanically connected, electrically connected, communicatively connected, directly connected, indirectly connected through an intermediate medium, and may be the internal connection or interaction relationship between two elements. The term "and / or" includes any and all combinations of one or more of the related listed items. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to specific circumstances.

[0026] In order to illustrate the technical solutions described in the present application, the following will be described through specific examples, and only the parts related to the embodiments of the present application are shown.

[0027] The multi-device pairing method using encoding and time-division multiplexing on the same channel involved in this application can be applied to the pairing between a group of devices in a multi-device scenario. Specifically, it can be applied to one-to-one or one-to-many pairing between devices, that is, one or more first devices and a second device can complete the pairing process through the multi-device pairing method using encoding and time-division multiplexing on the same channel involved in this application. After completing the pairing process, the first device can record the information of the second device, and correspondingly, the second device can also record the information of the first device. The information can be device ID, name, serial number, serial code, etc. Thus, when receiving corresponding data, it can be determined whether the data is sent from a paired device. The first device that has completed the pairing process can be called a third device for distinguishing from other first devices.

[0028] The multi-device communication method using encoding and time-division multiplexing on the same channel involved in this application can be applied to the communication between a group of paired devices in a multi-device scenario. Specifically, when the first device and the second device have completed the pairing process, the first device and the second device can establish a communication connection through the multi-device communication method using encoding and time-division multiplexing on the same channel involved in this application, that is, establish a communication process. Subsequently, the first device and the second device can perform communication behaviors such as data transmission.

[0029] As Figure 1 shown, this application provides a multi-device pairing method using encoding and time-division multiplexing on the same channel, including the following steps (step S1 to step S3):

[0030] S1. Each first device obtains an idle first code respectively, and then enters the pairing mode to listen for pairing requests using the pairing code; the second device obtains an idle second code, and then enters the pairing mode to send pairing requests using the pairing code.

[0031] In some embodiments, the first device and the second device can be devices that need to be paired for use. For example, the first device and the second device can be a television and a remote control, a game controller and a game console, etc. The first device and the second device can also be one of the receivers or one of the transmitters on the device, or an integration of one or more receivers and transmitters, such as the dongle of a game console.

[0032] In some embodiments, the encoding may be a preset encoding sequence, and the encoding may be located at the head of the data frame. For example, in UWB communication, the encoding may be a preamble, that is, the synchronization header of the data frame of the UWB PHY layer. Specifically, in the same channel, due to the property of complete periodic autocorrelation of the encoding, the encoding on the same channel has the lowest cross-correlation. Therefore, different multiple encodings can be used in the same channel to achieve pairing / communication between multiple groups of devices. A group of devices can establish a communication process based on the same encoding, and another group of devices can establish a communication process based on another encoding.

[0033] In some embodiments, the first device and the second device can communicate through the same encoding. That is, the first device and the second device can establish a communication process using the same encoding, which is convenient for subsequent data transmission between the first device and the second device. Therefore, it can also be said that the first device and the second device establish communication by occupying the same encoding. Due to the uniqueness of the encoding, if the first device and the second device are communicating through encoding A, if other devices communicate through encoding A, they will incorrectly receive the information between the first device and the second device and cannot be used. Thus, communication between multiple groups of devices can be achieved through multiple encodings, reducing mutual interference.

[0034] In some embodiments, an idle encoding may refer to an encoding that is not being used or occupied, that is, an encoding that is not used to establish a communication process. Specifically, an idle encoding may refer to an encoding that is not currently used to establish communication between the first device and the second device.

[0035] In some embodiments, the first device or the second device can traverse the encodings of the same channel to obtain an idle encoding and record the acquisition time. Specifically, the first device or the second device can select an encoding to determine whether it is in an idle state. If the encoding is in an idle state, the encoding can be used as the first encoding or the second encoding; if the encoding is not in an idle state, the next encoding can be obtained for judgment until an idle encoding is obtained as the first encoding or the second encoding.

[0036] In some embodiments, each first device obtaining an idle first encoding may include: if the first device does not obtain any data based on the current encoding within a first preset duration, the current encoding is set as the idle first encoding. Specifically, the first device can use the current encoding for listening. If no data communicated based on the current encoding is obtained within the first preset duration, it can be considered that the current encoding is not occupied, that is, the current encoding is the idle first encoding. Multiple first devices can respectively obtain different idle first encodings, and the idle first encodings of some first devices can also be the same.

[0037] In some embodiments, for the second device to obtain an idle second encoding, it may include: if the second device does not obtain any data based on the current encoding within the first preset duration, the current encoding is set as the idle second encoding. Specifically, the second device can use the current encoding for listening. If no data communicated based on the current encoding is obtained within the first preset duration, it can be considered that the current encoding is not occupied, that is, the current encoding is the idle second encoding.

[0038] In some embodiments, the first preset duration of the first device may be different from that of the second device. In other embodiments, the first preset duration can be adjusted in real time so that the first preset duration of the first device is the same as that of the second device.

[0039] In some embodiments, the pairing encoding may refer to the encoding established for communication during the pairing between the first device and the second device. That is, if the first device and the second device communicate based on the pairing encoding, it can be considered that the first device and the second device are in the pairing process, that is, the first device and the second device enter the pairing mode. One encoding can be preset from multiple encodings in the same channel as the pairing encoding.

[0040] In some embodiments, multiple first devices can all enter the pairing mode using the same pairing encoding. It can be understood that one or more of the first devices need to be paired with the same second device, that is, some or all of the multiple first devices and the same second device are a group of devices that need to be paired for use.

[0041] S2. After each first device receives a pairing request, it sends a pairing response after a random delay. The second device sends a pairing confirmation request based on the pairing response, and at least one first device replies with a pairing confirmation response based on the pairing confirmation request. The pairing response includes the device ID of the first device and the idle first encoding. The pairing confirmation request includes the device ID of the second device, the device ID of the third device, and the third encoding, where the third encoding is either the idle first encoding or the idle second encoding, and the third device is the first device determined to be paired with the second device among the multiple first devices.

[0042] In some embodiments, the random delay can obtain the random delay time through a random number generator and can be implemented through a random delay function. In this case, it can form a sequential order among multiple pairing responses, and can preferably avoid the situation where each first device sends a pairing response at the same moment, so that the second device does not need to process multiple pairing responses simultaneously, reducing the impact on the pairing process.

[0043] In some embodiments, the device ID may be an identifier used to uniquely identify an electronic device. The first device may obtain a pairing request from the second device based on a pairing code. The second device may periodically send the pairing request multiple times until a pairing response from the first device is received.

[0044] In some embodiments, the second device sending a pairing confirmation request based on the pairing response may include: the second device receives the first pairing response, generates a pairing confirmation request according to the first pairing response, and sends the pairing confirmation request to the third device corresponding to the first pairing response or each first device. At this time, the pairing confirmation request may include the device ID of the third device corresponding to the first pairing response. In this case, when the second device only needs to pair with one of multiple first devices, the influence of other first devices on this pairing process can be reduced, enabling the second device to conveniently pair with any one of the first devices.

[0045] In some embodiments, after the second device receives the first pairing response, the multi-device pairing method using time-division multiplexing of encoding on the same channel may include: the second device stops receiving subsequent pairing responses; or the second device discards the subsequent pairing responses after receiving them.

[0046] In some embodiments, at least one first device replying a pairing confirmation response based on the pairing confirmation request may include: the first device compares the device ID of the third device in the pairing confirmation request. If the device ID of the third device is the same as the device ID of the first device itself, a pairing confirmation response is sent to the second device based on the pairing confirmation request. Thus, the third device determined to be paired can accurately complete the pairing process with the second device according to the pairing confirmation request.

[0047] In some embodiments, after the first device compares the device ID of the third device in the pairing confirmation request, the multi-device pairing method using time-division multiplexing of encoding on the same channel may further include: if the device ID of the third device in the pairing confirmation request is different from the device ID of the first device itself, the first device saves the third code in the pairing confirmation request; after the second device switches from the pairing mode to the working mode, the first device uses the third code to switch from the pairing mode to the working mode. In this case, after one first device completes pairing with the second device, the remaining first devices among the multiple first devices can conveniently continue to pair with the same second device, that is, new multiple paired devices can be added.

[0048] In some embodiments, the multi-device pairing method using encoding time-division multiplexing on the same channel may include: The second device compares the idle first encoding with the idle second encoding. If the idle first encoding is the same as the idle second encoding, either the idle first encoding or the idle second encoding is used as the third encoding; if the idle first encoding is different from the idle second encoding, the one with the latest acquisition time among the idle first encoding and the idle second encoding is used as the third encoding. In this case, since there is a situation where other devices occupy the first encoding or the second encoding, by comparing the differences between the first encoding and the second encoding and using the one with the latest acquisition time as the third encoding, it can better avoid affecting the pairing due to the encoding being occupied.

[0049] In some embodiments, the second device may compare the serial numbers and numbers of the encodings to confirm whether the encodings are the same.

[0050] In other embodiments, the multi-device pairing method using encoding time-division multiplexing on the same channel may include: After the first device receives the pairing request and reaches the second preset duration, it then sends a pairing response. The second preset durations of different first devices may be different, and the first device may adjust the second preset duration based on actual requirements. Thus, it can be ensured that only one first device pairs with the second device within the same period of time, and interference from other devices can be reduced. In this case, by adjusting the second preset durations of different first devices, the sending of the pairing response can be controlled, so that a specific first device can be selected to complete the pairing with the second device.

[0051] In some embodiments, the second device may record the device ID of the first device after receiving the pairing response. Correspondingly, the first device may record the device ID of the second device after receiving the pairing confirmation request. Thus, information about the device paired with it can be obtained through the device.

[0052] In some embodiments, the second device may record the device ID of the first device corresponding to the first received pairing response and discard subsequent received pairing responses. Thus, interference from other first devices can be reduced.

[0053] In some embodiments, one or more device IDs of the first device may be pre-stored in the second device. The second device may compare the device ID of the first device in the pairing response with the pre-stored device ID of the first device after receiving the pairing response. If they are the same, it may be received; if they are different, it may be discarded. Thus, the second device can accurately communicate with the first device that needs to be paired, that is, the third device, among multiple first devices.

[0054] S3. Both the second device and the third device use the third encoding to switch from the pairing mode to the working mode, completing the pairing process of the second device and the third device.

[0055] In some embodiments, the first device and the second device can switch from the communication process established by the pairing code to the communication process established by the third code, that is, switch from the pairing mode to the working mode. At this time, the second device and the paired first device, that is, the third device, both establish communication using the third code. When in the working mode, the third code is in an occupied state.

[0056] In some embodiments, the multi-device pairing method using time-division multiplexing of codes on the same channel may include: after the second device sends a pairing confirmation request for a third preset duration, it automatically enters the working mode based on the third code; after the first device replies with a pairing confirmation response for a fourth preset duration, it automatically enters the working mode based on the third code. In this case, since the communication process may be interfered by the outside world, by setting the third preset duration and the fourth preset duration and the device automatically enters the working mode, it can prevent the first device and the second device from waiting too long for the reply information of the other party and affecting the pairing effect.

[0057] In some embodiments, the second device may send a status switch request to the determined paired first device after receiving the pairing confirmation response from the determined paired first device. After receiving the status switch request, the determined paired first device enters the working mode based on the third code.

[0058] In some embodiments, the second device may send a status switch request to the determined paired first device multiple times. After the second device sends the status switch request for a preset number of times, it enters the working mode based on the third code.

[0059] As Figure 2 shown, the present application relates to a multi-device communication method using time-division multiplexing of codes on the same channel, which is applied to the second device and multiple third devices that complete the pairing process using the multi-device pairing method using time-division multiplexing of codes on the same channel as described above, and includes the following steps (step S10 to step S20):

[0060] S10. The second device obtains an idle fourth code, and broadcasts a communication request using the idle fourth code. The communication request includes at least the device ID of the second device. Multiple third devices switch the current code until they receive the communication request. It should be noted that the technical solution for the second device to obtain an idle fourth code here can refer to the specific description of the multi-device pairing method using time-division multiplexing of codes on the same channel involved in the present application, that is, it is similar to the related technical solution for the second device to obtain an idle second code, and will not be elaborated here.

[0061] In some embodiments, before the second device obtains an idle fourth code, the multi-device communication method using time-division multiplexing of codes on the same channel may include: the second device obtains the last used fifth code, determines whether any third device is in the working mode based on the last used fifth code, and if any third device is in the working mode, the second device enters the working mode based on the last used fifth code.

[0062] In some embodiments, the last used fifth code may refer to the code used when the second device and the third device last entered the pairing mode or the working mode. Specifically, when the third device disconnects the communication connection with the second device, the third device or the second device may maintain the working mode, and the code used at this time may remain unchanged. When the third device needs to communicate with the second device again and the second device is in the working mode, the third device can establish a communication process with the second device through the last used fifth code. Correspondingly, when the second device needs to communicate with the third device again and the third device is in the working mode, the second device can establish a communication process with the third device through the last used fifth code.

[0063] In some embodiments, if none of the multiple third devices is in the working mode, it is determined whether the last used fifth code is idle. If the last used fifth code is idle, the second device enters the working mode based on the last used fifth code.

[0064] In some embodiments, the multiple third devices may start switching from the last used fifth code. Specifically, after the second device enters the working mode based on the last used fifth code, the multiple third devices can obtain the last used fifth code, determine whether the second device is in the working mode based on the last used fifth code, and if the second device is in the working mode, the third device enters the working mode based on the last used fifth code. At this time, the third device and the second device can enter the working mode and establish a communication process based on the same code, that is, the last used fifth code, successively.

[0065] In some embodiments, the multiple third devices switch the current code until a communication request is received, which may include: the multiple third devices use the last used fifth code to listen for the communication request. If the communication request is not detected within a preset interval, or the communication request does not include the device ID of the second device, the multiple third devices continue to listen for the communication request using the next code. In this case, since the fourth code used by the second device is different from the current code of the first device, the first device cannot receive the communication request from the second device using the current code. Therefore, the multiple first devices can listen for the communication request from the second device by traversing the codes until the fourth code used by the second device is used.

[0066] In some embodiments, a multi-device communication method using time-division multiplexing of codes on the same channel may include: when the second device and / or the third device is in working mode, the second device and / or multiple third devices periodically broadcast information. The information may be irrelevant information including at least the currently used code. In this case, other devices can be informed that the current code is in a state of being used and occupied, that is, the current code is a non-idle code. On the one hand, it can reduce the impact on communication between devices, and on the other hand, it can enable other devices to immediately judge the state of the next code, thereby improving communication efficiency. At the same time, it can facilitate the second device and the third device to confirm whether their corresponding paired devices are in working mode through information.

[0067] S20. Multiple third devices send communication responses to the second device based on time division multiplexing using the idle fourth code to establish communication. The second device communicates with the multiple third devices in sequence, and each third device communicates with the second device based on time division multiplexing.

[0068] Specifically, after the first third device sends a communication response, the second third device sends a communication response based on a preset time slot, that is, each third device sends a communication response based on its own preset time slot. Accordingly, in the subsequent communication process, the third device can also communicate based on its own preset time slot. In this case, multiple third devices can use the same fourth code to communicate, which improves utilization and reduces interference.

[0069] The following is based on Figure 3 The pairing sequence of the multi-device pairing method using time-division multiplexing of coding on the same channel involved in this application is described. Figure 3 In the figure, handle 1, handle 2 and handle 3 are the first devices, and dongle 1 is the second device.

[0070] like Figure 3 As shown, in some embodiments, dongle1 can find an idle code, that is, an idle second code, and use code 26, that is, the pairing code, to enter the pairing mode. Correspondingly, each handle can enter the pairing mode through the same pairing code. Then, dongle1 initiates a pairing request to each handle, and the pairing request carries the pairing information. Each handle sends a pairing response after a random delay. Dongle1 receives the first pairing response, that is, Figure 3The pairing response of the middle handle 3 is paired and recorded, while subsequent pairing responses are discarded. Then, the dongle 1 sends a confirmation pairing response to each handle. The confirmation pairing response can carry the device ID of the handle 3. After receiving the confirmation pairing response, the handle 3 sends an information confirmation. The remaining handles continue to wait for pairing requests due to information mismatch. At this time, the handle 3 is paired with the dongle 1 as the third device. Finally, the dongle 1 initiates a working state switching request. After receiving the working state switching request, the handle 3 enters the working state (i.e., the working mode). At this time, the dongle 1 completes the pairing process with the handle 3. Further, if the waiting time between the dongle 1 and the handle 3 times out, both the dongle 1 and the handle 3 will automatically enter the working mode.

[0071] In this application, the first device and the second device respectively obtain idle codes and perform information interaction during the pairing process based on the same pairing code. After establishing a communication connection, they enter the working mode from the pairing mode based on the same code to complete the pairing process. In this case, by using the same pairing code for pairing, the pairing process can be made more convenient and accurate. At the same time, by setting a random delay, it is ensured that at least one of the multiple first devices is paired with the second device as the third device. At this time, both the second device and the third device can be assigned an idle code for communication and the codes of this group of devices are the same. Therefore, the communication between different devices can be isolated by using multiple codes, thereby reducing the mutual interference between devices and improving the communication quality of the devices.

[0072] This application also provides a computer program product. The computer program product is stored on a data carrier and is designed to execute the multi-device pairing method using codes for time-division multiplexing on the same channel and the multi-device communication method using codes for time-division multiplexing on the same channel as described above. Therefore, the computer program product according to this application has the same advantages as those described in detail with reference to the devices according to this application. The computer program product can be executed as computer-readable instruction codes in each appropriate programming language such as JAVA, C++. In addition, the computer program product can be provided on a network, such as the Internet, or a network user can download the computer program product from a network, such as the Internet, when needed. The computer program product can be implemented either by means of a computer program, i.e., software, or by means of one or more dedicated electronic circuits, i.e., hardware, or in any mixed form, i.e., by means of software components and hardware components, or in a mixed form of software, hardware, or software and hardware.

[0073] Those of ordinary skill in the art can understand that all or part of the features / steps of implementing the above method embodiments can be realized by a method, a data processing system, or a computer program. These features can be implemented without using hardware, entirely using software, or using a combination of hardware and software. The aforementioned computer program can be stored in one or more computer-readable storage media. When the computer program stored on the storage media is executed (such as by a processor), it executes the steps including the above method embodiments of multi-device pairing using time-division multiplexing of codes on the same channel and the method embodiments of multi-device communication using time-division multiplexing of codes on the same channel.

[0074] The aforementioned storage media that can store program codes include: a static hard disk, a solid-state drive, a random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), an optical storage device, a magnetic storage device, a flash memory, a magnetic disk or an optical disc, and / or a combination of the above devices, that is, it can be implemented by any type of volatile or non-volatile storage device or a combination thereof.

[0075] As Figure 4 shown, the present application also provides an embodiment of a processing device 1, including one or more processors 11 and a memory 10; wherein, the memory 10 is used to store one or more computer programs, and the one or more processors 11 are used to execute the one or more computer programs stored in the memory 10, so that the processor 11 executes the features / steps of the above method embodiments of multi-device pairing using time-division multiplexing of codes on the same channel and the method embodiments of multi-device communication using time-division multiplexing of codes on the same channel.

[0076] The above are only the preferred embodiments of the present application. Those skilled in the art know that without departing from the spirit and scope of the present application, various changes or equivalent replacements can be made to these features and embodiments. Additionally, under the teaching of the present application, these features and embodiments can be modified to adapt to specific situations and materials without departing from the spirit and scope of the present application. Therefore, the present application is not limited by the specific embodiments disclosed herein, and all embodiments falling within the scope of the claims of the present application belong to the protection scope of the present application.

Claims

1. A multi-device pairing method using time-division multiplexing of encoding on the same channel, characterized in that Including: Each first device respectively obtains an idle first code, and then enters the pairing mode to listen for pairing requests using the pairing code; The second device obtains an idle second code, and then enters the pairing mode to send the pairing request using the pairing code; After each of the first devices receives the pairing request, it sends a pairing response after a random delay. The second device sends a pairing confirmation request based on the pairing response, and at least one of the first devices replies with a pairing confirmation response based on the pairing confirmation request. Wherein the pairing response includes the device ID of the first device and the idle first code, and the pairing confirmation request includes the device ID of the second device, the device ID of the third device, and the third code. Wherein the third code is either the idle first code or the idle second code, and the third device is the first device determined to be paired with the second device among the multiple first devices; Both the second device and the third device use the third code to switch from the pairing mode to the working mode, completing the pairing process of the second device and the third device; The multi-device pairing method using encoding for time-division multiplexing on the same channel includes: The second device compares the idle first code and the idle second code. If the idle first code and the idle second code are the same, then let the idle first code or the idle second code be used as the third code; If the idle first code and the idle second code are different, then let the one with the latest acquisition time among the idle first code and the idle second code be used as the third code; The encoding is the preamble or the synchronization header of the data frame.

2. The multi-device pairing method using time-division multiplexing of encoding on the same channel according to claim 1, wherein The second device sends a pairing confirmation request based on the pairing response, including: The second device receives the first pairing response, generates the pairing confirmation request according to the first pairing response, and sends the pairing confirmation request to the third device corresponding to the first pairing response or each of the first devices.

3. The multi-device pairing method using encoding multiplexed in the same channel time division according to claim 1 or 2, characterized in that, At least one of the first devices replies with a pairing confirmation response based on the pairing confirmation request, including: The first device compares the device ID of the third device in the pairing confirmation request. If the device ID of the third device is the same as the device ID of the first device itself, then sends the pairing confirmation response to the second device based on the pairing confirmation request.

4. The multi-device pairing method using time division multiplexing of encoding on the same channel according to claim 3, characterized in that, After the first device compares the device ID of the third device in the pairing confirmation request, the multi-device pairing method using encoding for time-division multiplexing on the same channel further includes: If the device ID of the third device in the pairing confirmation request is different from the device ID of the first device itself, the first device saves the third code in the pairing confirmation request; After the second device switches from the pairing mode to the working mode, the first device uses the third code to switch from the pairing mode to the working mode.

5. A multi-device communication method using time-division multiplexing of encoding on the same channel, characterized in that, Applied to a second device and multiple third devices that complete the pairing process using the multi-device pairing method with encoding multiplexed in the same channel as described in any one of claims 1 to 4, including: The second device obtains an idle fourth encoding, and broadcasts a communication request using the idle fourth encoding. The communication request includes at least the device ID of the second device. The multiple third devices switch the current encoding until the communication request is received. The multiple third devices send communication responses to the second device based on time-division multiplexing using the idle fourth encoding to establish communication. The second device communicates with the multiple third devices in sequence respectively, and each third device communicates with the second device based on time-division multiplexing.

6. The multi-device communication method using time-division multiplexing of encoding on the same channel according to claim 5, wherein, Before the second device obtains the idle fourth encoding, the multi-device communication method with encoding multiplexed in the same channel includes: the second device obtains the previously used fifth encoding, and determines whether any one of the third devices is in the working mode based on the previously used fifth encoding. If any one of the third devices is in the working mode, the second device enters the working mode based on the previously used fifth encoding, where the previously used fifth encoding refers to the encoding used when the second device and the third device last entered the pairing mode or the working mode. If none of the multiple third devices is in the working mode, it is determined whether the previously used fifth encoding is idle. If the previously used fifth encoding is idle, the second device enters the working mode based on the previously used fifth encoding.

7. The multi-device communication method using time-division multiplexing of encoding on the same channel according to claim 6, characterized in that, The multiple third devices switch the current encoding until the communication request is received, including: the multiple third devices listen for the communication request using the previously used fifth encoding. If the communication request is not detected within a preset interval, or the communication request does not contain the device ID of the second device, the multiple third devices continue to listen for the communication request using the next encoding.

8. The multi-device communication method using time division multiplexing of encoding on the same channel according to claim 5, characterized in that, The multi-device communication method with encoding multiplexed in the same channel includes: when the second device and / or the multiple third devices are in the working mode, the second device and / or the multiple third devices broadcast information periodically.

9. A computer program product, characterized in that, The computer program product is stored on a data carrier and is designed to execute the multi-device pairing method with encoding multiplexed in the same channel as described in any one of claims 1 to 4 and to execute the multi-device communication method with encoding multiplexed in the same channel as described in any one of claims 5 to 8.

Citation Information

Patent Citations

  • Pairing method used between binaural Bluetooth earphones and the binaural Bluetooth earphones

    CN111464993A