Multi-device pairing method and communication method in same channel by using codes

Through encoding pairing between devices and using the same idle encoding for communication, the mutual interference problem of multiple groups of devices when communicating on the same channel is solved, and the communication quality is improved.

CN119815579AActive Publication Date: 2025-04-11AIFRUTECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510292095.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-12
Publication Date
2025-04-11
Estimated Expiration
2045-03-12

AI Technical Summary

Technical Problem

In the prior art, multiple sets of devices are prone to interfere with each other when communicating on the same channel, affecting the communication quality.

Method used

By pairing codes between devices, free codes are obtained for pairing and communication, ensuring that each group of devices uses the same code, thereby reducing mutual interference between devices.

Benefits of technology

Improve the communication quality between devices, ensure the convenient and accurate pairing process, and reduce mutual interference between devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119815579A_ABST
    Figure CN119815579A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-device pairing method in the same channel by using codes and a communication method, and the pairing method comprises the steps: a first device obtains an idle first code, and then enters a pairing mode to monitor a pairing request by using a pairing code; the second device obtains an idle second code, and then enters a pairing mode by using the pairing code to send a pairing request; the first device sends a pairing response according to the pairing request, the second device sends a pairing confirmation request based on the pairing response, and the first device replies a pairing confirmation response based on the pairing confirmation request; and the first device and the second device switch from the pairing mode to the working mode by using the third code to complete the pairing process of the first device and the second device. According to the invention, pairing is carried out by using the same pairing code, so that the pairing process is more convenient and accurate, and communication between different devices can be isolated by using a plurality of codes, so that mutual interference between the devices can be reduced, and the communication quality of the devices can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless communication technology, and in particular to a method for pairing multiple devices and a communication method using coding on the same channel. Background Art

[0002] Nowadays, controllers are widely used in various game platforms as a kind of game control device, especially in action, sports and racing games, where controllers provide a better operating experience. Therefore, players have higher and higher requirements for the communication quality between controllers and game consoles.

[0003] In the prior art, the controller and the game console are generally based on wireless communication, such as Bluetooth, WiFi, etc. However, in some actual scenarios, the channels that the controller and the game console can use are limited, and there are often multiple groups or sets of devices communicating together in the scenario, which affects the pairing and communication between the controller and the game console. Summary of the invention

[0004] The purpose of this application is to provide a method for pairing multiple devices using coding on the same channel and a communication method to solve the technical problem in the prior art that multiple groups of devices communicating on the same channel will interfere with each other during communication, affecting the communication quality. The various technical effects that can be produced by the preferred technical solution among the various technical solutions provided in this application are described in detail below.

[0005] To achieve the above objectives, this application provides the following technical solutions: In the first aspect, the present application provides a method for pairing multiple devices using codes on the same channel, including: the first device obtains an idle first code, and then uses the pairing code to enter the pairing mode to listen for pairing requests; the second device obtains an idle second code, and then uses the pairing code to enter the pairing mode to send the pairing request; the first device sends a pairing response according to the pairing request, the second device sends a pairing confirmation request based on the pairing response, and the first device 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 first device, the device ID of the second device and a third code, wherein the third code is any one of the idle first code and the idle second code; the first device and the second device both use the third code to switch from the pairing mode to the working mode to complete the pairing process of the first device and the second device. In some embodiments, the first device obtains an idle first code, including: if the first device does not obtain any data based on the current code within a first preset time period, using the current code as the idle first code.

[0006] In some embodiments, the multi-device pairing method using coding on the same channel also includes: the second device compares the idle first code with the idle second code, if the idle first code is the same as the idle second code, then the idle first code or the idle second code is used as the third code; if the idle first code is different from the idle second code, then the one with the latest acquisition time between the idle first code and the idle second code is used as the third code.

[0007] In some embodiments, the first device sends a pairing response according to the pairing request, including: the first device sends the pairing response after receiving the pairing request for a second preset time.

[0008] In some embodiments, both the first device and the second device switch from the pairing mode to the working mode using the third code, including: the second device automatically enters the working mode based on the third code after sending the pairing confirmation request for a third preset time; the first device automatically enters the working mode based on the third code after replying the pairing confirmation response for a fourth preset time.

[0009] In the second aspect, the present application provides a multi-device communication method using coding on the same channel, which is applied to a first device and a second device that complete the pairing process using the multi-device pairing method using coding on the same channel as described above, including: the first device obtains an idle fourth code, and uses the communication code to listen to a communication request; the second device obtains an idle fifth code, and uses the communication code to send the communication request to the first device, wherein the communication request includes the device ID of the second device and the idle fifth code; the first device replies with a sixth code based on the communication request, and both the first device and the second device enter a working mode using the sixth code, wherein the sixth code is any one of the idle fourth code and the idle fifth code.

[0010] In some embodiments, the multi-device communication method using coding on the same channel also includes: the second device compares the idle fourth code with the idle fifth code; if the idle fourth code is the same as the idle fifth code, then the idle fourth code or the idle fifth code is used as the sixth code; if the idle fourth code is different from the idle fifth code, then the one with the latest acquisition time between the idle fourth code and the idle fifth code is used as the sixth code.

[0011] In some embodiments, before the first device obtains the idle fourth code, the multi-device communication method using codes on the same channel includes: the first device obtains the seventh code last used, and determines whether the second device is in working mode based on the seventh code last used; if the second device is in working mode, the first device enters working mode based on the seventh code last used, wherein the seventh code last used refers to the third code used for the last pairing or the sixth code used for the last communication; if the second device is not in working mode, it determines whether the seventh code last used is idle; if the seventh code last used is idle, the first device enters working mode based on the seventh code last used.

[0012] In some embodiments, the multi-device communication method using coding in the same channel includes: when the first device and / or the second device is in working mode, the first device and / or the second device periodically broadcasts information based on the currently used coding.

[0013] 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 on the same channel as described above and to execute the multi-device communication method using encoding on the same channel as described above.

[0014] 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 codes, and exchange information in the pairing process based on the same pairing code. After the communication connection is established, the pairing mode is entered into the working 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, each group of the first device and the second device can be allocated an idle code for communication and the codes of the group of devices are the same, so that multiple codes can be used to isolate the communication between different devices, thereby reducing mutual interference between devices and improving the communication quality of the devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. It is obvious that the drawings described below are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings: Figure 1 is a flowchart of a method for pairing multiple devices using encoding on the same channel according to an embodiment of the present application; Figure 2 is a flowchart of a method for communicating with multiple devices using coding on the same channel according to an embodiment of the present application; Figure 3 This is a flowchart of a specific embodiment of a method for multi-device communication using coding on the same channel according to an embodiment of the present application; Figure 4 It is a structural block diagram of the processing device of an embodiment of the present application.

[0016] In the figure: 1. processing device; 10. memory; 11. processor. DETAILED DESCRIPTION

[0017] In order to make the purpose, technical solutions and advantages of the present application clearer, the various exemplary embodiments to be described below will refer to the corresponding drawings, which constitute a part of the exemplary embodiments, wherein various exemplary embodiments that may be used to implement the present application are described. Unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation methods described in the following exemplary embodiments do not represent all implementation methods consistent with the present disclosure. It should be understood that they are only examples of processes, methods, and devices that are consistent with some aspects disclosed in the present application as detailed in the attached claims, and other embodiments may also be used, or the embodiments listed herein may be modified in structure and function without departing from the scope and essence of the present application.

[0018] In the description of the present application, it should be understood that the terms "center", "longitudinal", "lateral", etc. indicate the orientation or positional relationship based on the drawings, which is 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. The terms "first", "second", etc. are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. The term "multiple" means two or more. The terms "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, an integral connection, a mechanical connection, an electrical connection, a communication connection, a direct connection, an indirect connection through an intermediate medium, and can be the internal connection of two elements or the interaction relationship between two elements. The term "and / or" includes any and all combinations of one or more 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 the specific circumstances.

[0019] In order to illustrate the technical solution described in the present application, a specific embodiment is provided below, and only the parts related to the embodiment of the present application are shown.

[0020] The multi-device pairing method using encoding on the same channel involved in the present application can be applied to pairing between a group of devices in a multi-device scenario, and specifically can be applied to one-to-one pairing between devices, that is, the first device and the second device can complete the pairing process through the multi-device pairing method using encoding on the same channel involved in the present application.

[0021] The multi-device communication method using encoding 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, after the first device and the second device have completed the pairing process, the first device and the second device can be connected to each other through the multi-device communication method using encoding on the same channel involved in this application. Specifically, the communication connection can refer to the first communication connection after the pairing is completed and the subsequent multiple communication connections.

[0022] like Figure 1 As shown, the present application provides a method for pairing multiple devices using encoding on the same channel, comprising the following steps (step S1 to step S3): S1. The first device obtains an idle first code, uses the pairing code to enter the pairing mode and listens to the pairing request; the second device obtains an idle second code, and then uses the pairing code to enter the pairing mode and send the pairing request.

[0023] In some embodiments, the first device and the second device may be devices that need to be paired for use. For example, the first device and the second device may be a television and a remote control, a game controller and a game console, etc. The first device and the second device may also be receivers or transmitters on each other's devices, or an integration of a receiver and a transmitter, such as a dongle of a game console.

[0024] In some embodiments, the coding may be a preset coding sequence, and the coding may be located at the head of the data frame. For example, in UWB communication, the coding may be a preamble, that is, it may be a synchronization header of the data frame of the UWB PHY layer. Specifically, in the same channel, since the coding has the property of complete periodic autocorrelation, the coding on the same channel has the lowest mutual correlation, so different multiple codings can be used in the same channel to achieve pairing and communication between multiple groups of devices. A group of devices can establish a communication process based on the same coding, and another group of devices can establish a communication process based on another coding. The coding here can be the same coding used by the devices for pairing.

[0025] In some embodiments, the first device and the second device can communicate through the same code. That is, the first device can establish a communication process with the second device using the same code, which facilitates 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 code. Since the code is unique, if the first device and the second device are communicating through code A, other first devices and other second devices cannot communicate through code A. As a result, communication between multiple groups of devices can be achieved through multiple codes, reducing mutual interference.

[0026] In some embodiments, the idle code may refer to a code that is not used or occupied in the same channel, that is, a code that is not used to establish a communication process. Specifically, the idle code may refer to a code that is not currently used to establish communication between the first device and the second device.

[0027] In some embodiments, the first device or the second device may traverse the codes of the same channel to obtain an idle code and record the acquisition time. Specifically, the first device or the second device may select a code to determine whether it is in an idle state, and if the code is in an idle state, the code may be used as the first code or the second code; if the code is not in an idle state, the next code may be obtained for determination until an idle code is obtained as the first code or the second code.

[0028] In some embodiments, the first device obtains the idle first code, which may include: if the first device does not obtain any data based on the current code within a first preset time, then the current code is used as the idle first code. Specifically, the first device can monitor using the current code, and if it does not obtain any data based on the current code communication within the first preset time, then it can be considered that the current code is not occupied, that is, the current code is an idle code.

[0029] In some embodiments, the second device obtaining the idle second code may include: if the second device does not obtain any data based on the current code within a first preset time length, then the current code is used as the idle second code. Specifically, the second device can monitor using the current code, and if it does not obtain any data based on the current code communication within the first preset time length, then it can be considered that the current code is not occupied, that is, the current code is an idle code.

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

[0031] In some embodiments, the pairing code may refer to a code established for pairing communication between the first device and the second device. That is, if the first device and the second device communicate based on the pairing code, 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 of the codes in the same channel can be preset as the pairing code.

[0032] S2. The first device sends a pairing response according to the pairing request, the second device sends a pairing confirmation request based on the pairing response, and the first device 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 an idle first code, and the pairing confirmation request includes the device ID of the first device, the device ID of the second device, and a third code. The third code is any one of the idle first code and the idle second code.

[0033] In some embodiments, the device ID may be an identifier for uniquely identifying an electronic device. The first device may obtain a pairing request of the second device based on the pairing code. The second device may periodically send a pairing request multiple times until a pairing response is received.

[0034] In some embodiments, the method for pairing multiple devices using codes in the same channel may also include: the second device compares the idle first code with the idle second code, and if the idle first code is the same as the idle second code, the idle first code or the idle second code is used as the third code; if the idle first code is different from the idle second code, the one with the latest acquisition time between the idle first code and the idle second code is used as the third code. In this case, since there are other devices occupying the first code or the second code, by comparing the difference between the first code and the second code and using the one with the latest acquisition time as the third code, it is possible to better avoid the pairing being affected by the occupied code.

[0035] In some embodiments, the second device may compare the serial numbers or serial numbers of the codes to confirm whether the two codes are the same.

[0036] In some embodiments, the first device sending a pairing response according to the pairing request may include: the first device sending a pairing response after receiving the pairing request for a second preset time. The second preset time of different first devices may be different, and the first device may adjust the second preset time based on actual needs. In this way, it can be ensured that only one first device is paired with the second device in the same period of time, which can reduce interference from other devices.

[0037] 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, the information of the device paired with it can be obtained through the device.

[0038] In some embodiments, the second device may record the device ID of the first device corresponding to the first received pairing response, and discard the subsequently received pairing responses, thereby reducing interference from other first devices.

[0039] In some embodiments, the second device may pre-store the device ID of the first device. After receiving the pairing response, 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. If they are the same, the second device may receive the device ID, and if they are different, the second device may discard the device ID. Thus, the second device can accurately communicate with the first device to be paired among multiple first devices.

[0040] S3: Both the first device and the second device switch to the working mode using the third code to complete the pairing process of the first device and the second device.

[0041] In some embodiments, the first device and the second device can switch from a communication process established by the pairing code to a communication process established by a confirmed third code, that is, the first device and the second device can switch from a pairing mode to a working mode. When in the working mode, the first device and the second device can perform data transmission based on the same code, that is, the third code is in an occupied state.

[0042] In some embodiments, the first device and the second device both use the third code to switch from the pairing mode to the working mode, which may include: the second device automatically enters the working mode based on the third code after sending the pairing confirmation request for a third preset time; the first device automatically enters the working mode based on the third code after replying the pairing confirmation response for a fourth preset time. In this case, since the communication process may be interfered with by the outside world, by setting the third preset time and the fourth preset time for the device to automatically enter the working mode, the first device and the second device can avoid waiting for the other party to reply to the message for too long and affecting the pairing effect. It should be noted that each preset time in the present application can be set according to demand, so each preset time can be different, or partially the same or all the same.

[0043] In some embodiments, the second device may send a state switching request to the first device after receiving a pairing confirmation response from the first device. After receiving the state switching request, the first device enters the working mode based on the third code.

[0044] In some embodiments, the second device may send a state switching request to the first device multiple times. After sending the state switching request for a preset number of times, the second device may enter the working mode based on the third code.

[0045] like Figure 2 As shown, the present application relates to a multi-device communication method using coding on the same channel, which is applied to a first device and a second device that complete a pairing process using the multi-device pairing method using coding on the same channel as described above, including the following steps (step S10 to step S20): S10. The first device obtains the idle fourth code, and uses the communication code to monitor the communication request; the second device obtains the idle fifth code, and uses the communication code to send a communication request to the first device, wherein the communication request includes the device ID of the second device and the idle fifth code. It should be noted that the technical solution for the first device to obtain the idle fourth code and the second device to obtain the idle fifth code here can refer to the specific description of the multi-device pairing method using codes on the same channel involved in this application, that is, the related technical solution for the first device to obtain the idle first code and the second device to obtain the idle second code described above can be referred to. It will not be repeated here. The communication code may be different from the pairing code.

[0046] In some embodiments, before the first device obtains the idle fourth code, the multi-device communication method using the code on the same channel may include: the first device obtains the seventh code used last time, and determines whether the second device is in the working mode based on the seventh code used last time; if the second device is in the working mode, the first device enters the working mode based on the seventh code used last time.

[0047] In some embodiments, the seventh code used last time may refer to the third code used in the last pairing or the sixth code used in the last communication. Specifically, after the first device disconnects the communication connection with the second device, the second device may remain in working mode, and the code at this time may remain unchanged. When the first device needs to communicate with the second device again, and the second device is in working mode, the first device can establish a communication process with the second device through the code. In other words, if the third code used in the last pairing is used, it means that this communication is the first communication connection after pairing. Correspondingly, if the sixth code used in the last communication is used, it means that this communication is a subsequent communication of the first communication connection.

[0048] In some embodiments, if the second device is not in working mode, it determines whether the seventh code last used is idle. If the seventh code last used is idle, the first device enters working mode based on the seventh code last used.

[0049] In some embodiments, after the first device enters the working mode based on the seventh code used last time, the second device can obtain the seventh code used last time, and determine whether the first device is in the working mode based on the seventh code used last time. If the first device is in the working mode, the second device enters the working mode based on the seventh code used last time. At this time, the first device and the second device can successively enter the working mode and establish a communication process based on the same code, that is, the seventh code used last time.

[0050] In some embodiments, the communication method may include: when the first device and / or the second device is in working mode, the first device and / or the second device periodically broadcasts information based on the currently used code. The information may be irrelevant information including at least the currently used code, and the currently used code may refer to the code used during the pairing process or the communication process. In this case, other devices can be informed that the current code is in a state of being used and occupied, that is, the currently used code is a non-idle code. On the one hand, it can reduce the impact of other devices on the communication between the first device and the second device, and on the other hand, it can enable other devices to immediately determine the state of the next code, thereby improving communication efficiency.

[0051] In some embodiments, the multi-device communication method using coding on the same channel may also include: the second device compares the idle fourth code with the idle fifth code; if the idle fourth code is the same as the idle fifth code, then the idle fourth code or the idle fifth code is used as the sixth code; if the idle fourth code is different from the idle fifth code, then the one with the latest acquisition time between the idle fourth code and the idle fifth code is used as the sixth code.

[0052] S20: The first device replies with a sixth code based on the communication request, and both the first device and the second device enter a working mode using the sixth code.

[0053] In some embodiments, the first device and the second device may record the code used in the current communication to facilitate the next communication process, that is, the seventh code used last time may be obtained as required for the next communication process.

[0054] like Figure 3 As shown, a specific embodiment of the multi-device communication method using coding on the same channel involved in the present application may include the following steps: S300, power on the device; specifically, the device may be the first device or the second device, and further, the device may be the first device and / or the second device that completes the pairing process using the multi-device pairing method using encoding on the same channel of the present application.

[0055] S310. Search for a code used last time. The code used last time may refer to a code used last for pairing or communication. The device may store at least one code used last time.

[0056] S320: Determine whether there is a paired device. If yes, proceed to step S330; if no, proceed to step S340. For example, the last used code is not in an idle state, and the first device can receive information of the paired second device through the last used code, and determine that there is a paired device.

[0057] S330, use the last code to enter the working state, and then enter step S410.

[0058] S340: Determine whether the code used last time is free. If so, return to step S330; otherwise, proceed to step S350.

[0059] S350, find the next idle code and record the current time; the device can obtain the idle codes by traversal, the first device can obtain the idle fourth code, and the second device can obtain the idle fifth code.

[0060] S360, use the communication code and wait for the paired device to come online.

[0061] S370: Receive information about paired devices.

[0062] S380, compare the idle codes to determine whether they are consistent; if they are consistent, proceed to step S390, otherwise proceed to step S400. If the fourth code is consistent with the fifth code, select either the fourth code or the fifth code as the sixth code to enter the working state.

[0063] S390, use the idle code to enter the working state, and then enter step S410.

[0064] S400, use the idle code found the latest and enter the working state; specifically, the time when the first device and the second device obtain the idle code can be compared, and the latest code is selected to enter the working state. At this time, the idle code found the latest is the sixth code.

[0065] S410: The device sends data or broadcasts information at fixed time intervals, thereby notifying that the currently used code is occupied, that is, not in an idle state.

[0066] In the present application, the first device and the second device respectively obtain idle codes, and exchange information in the pairing process based on the same pairing code. After the communication connection is established, the pairing mode is entered into the working 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, each group of the first device and the second device can be assigned an idle code for communication and the codes of the group of devices are the same, so that multiple codes can be used to isolate the communication between different devices, thereby reducing mutual interference between devices and improving the communication quality of the devices.

[0067] The present application also provides a computer program product, which is stored on a data carrier and is designed to execute the multi-device pairing method using coding on the same channel as described above and the multi-device communication method using coding on the same channel. Therefore, the computer program product according to the present application produces the same advantages as those described in detail with reference to the device according to the present application. The computer program product can be executed as a computer-readable instruction code in each appropriate programming language such as JAVA, C++, etc. In addition, the computer program product can be provided on a network, such as the Internet, or a network, such as an Internet user, can download the computer program product from a network, such as the Internet when needed. The computer program product can be implemented 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.

[0068] Those skilled in the art can understand that all or part of the features / steps of the above-mentioned method embodiments can be implemented by methods, data processing systems or computer programs, and these features can be implemented without hardware, entirely by software, or by a combination of hardware and software. The aforementioned computer program can be stored in one or more computer-readable storage media, and the storage medium stores the computer program. When the computer program is executed (such as by a processor), the steps of the above-mentioned multi-device pairing method embodiment using encoding on the same channel and the multi-device communication method using encoding on the same channel are executed.

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

[0070] like Figure 4 As 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 one or more computer programs stored in the memory 10, so that the processor 11 executes the above-mentioned embodiment of the multi-device pairing method using encoding on the same channel and the features / steps of the multi-device communication method using encoding on the same channel.

[0071] The above is only the preferred embodiment of the present application. Those skilled in the art will appreciate that various changes or equivalent substitutions may be made to these features and embodiments without departing from the spirit and scope of the present application. In addition, under the guidance of the present application, these features and embodiments may be modified to adapt to specific circumstances and materials without departing from the spirit and scope of the present application. Therefore, the present application is not limited to 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 method for pairing multiple devices using encoding on the same channel, characterized in that: include: The first device obtains an idle first code, and then uses the pairing code to enter a pairing mode to listen for a pairing request; The second device obtains an idle second code, and then uses the pairing code to enter the pairing mode and send the pairing request; The first device sends a pairing response according to the pairing request, the second device sends a pairing confirmation request based on the pairing response, and the first device replies with a pairing confirmation response based on the pairing confirmation request, wherein the pairing response includes a device ID of the first device and the idle first code, and the pairing confirmation request includes a device ID of the first device, a device ID of the second device, and a third code, wherein the third code is any one of the idle first code and the idle second code; The first device and the second device both switch from the pairing mode to the working mode using the third code to complete the pairing process of the first device and the second device.

2. The method for pairing multiple devices using encoding in the same channel according to claim 1, characterized in that: The first device acquires an idle first code, including: if the first device fails to acquire any data based on the current code within a first preset time period, using the current code as the idle first code.

3. The method for pairing multiple devices using encoding in the same channel according to claim 1, characterized in that: The method for pairing multiple devices using codes on the same channel also includes: the second device compares the idle first code with the idle second code; if the idle first code is the same as the idle second code, the idle first code or the idle second code is used as the third code; if the idle first code is different from the idle second code, the one with the latest acquisition time between the idle first code and the idle second code is used as the third code.

4. The method for pairing multiple devices using encoding in the same channel according to claim 1, characterized in that: The first device sends a pairing response according to the pairing request, including: the first device sends the pairing response after receiving the pairing request for a second preset time.

5. The method for pairing multiple devices using encoding in the same channel according to claim 1, characterized in that: Both the first device and the second device switch from the pairing mode to the working mode using the third code, including: the second device automatically enters the working mode based on the third code after sending the pairing confirmation request for a third preset time; the first device automatically enters the working mode based on the third code after replying the pairing confirmation response for a fourth preset time.

6. A method for multi-device communication in the same channel using coding, characterized in that: A first device and a second device used to complete a pairing process using the multi-device pairing method using encoding on the same channel as described in any one of claims 1 to 5, comprising: The first device obtains an idle fourth code and uses the communication code to monitor a communication request; the second device obtains an idle fifth code and uses the communication code to send the communication request to the first device, wherein the communication request includes a device ID of the second device and the idle fifth code; The first device replies with a sixth code based on the communication request, and both the first device and the second device enter a working mode using the sixth code, wherein the sixth code is any one of the idle fourth code and the idle fifth code.

7. The method for multi-device communication using coding in the same channel according to claim 6, characterized in that: The multi-device communication method using coding on the same channel also includes: the second device compares the idle fourth code with the idle fifth code; if the idle fourth code is the same as the idle fifth code, then the idle fourth code or the idle fifth code is used as the sixth code; if the idle fourth code is different from the idle fifth code, then the one with the latest acquisition time between the idle fourth code and the idle fifth code is used as the sixth code.

8. The method for multi-device communication using coding in the same channel according to claim 6, characterized in that: Before the first device acquires the idle fourth code, the multi-device communication method using codes on the same channel includes: the first device acquires the seventh code used last time, and determines whether the second device is in a working mode based on the seventh code used last time, and if the second device is in the working mode, the first device enters the working mode based on the seventh code used last time, wherein the seventh code used last time refers to the third code used for the last pairing or the sixth code used for the last communication; If the second device is not in the working mode, it is determined whether the seventh code used last time is idle; if the seventh code used last time is idle, the first device enters the working mode based on the seventh code used last time.

9. The method for multi-device communication using coding in the same channel according to claim 6, characterized in that: The method for multi-device communication in the same channel using coding includes: when the first device and / or the second device is in working mode, the first device and / or the second device periodically broadcasts information based on the currently used coding.

10. A computer program product, characterized in that The computer program product is stored on a data carrier and is designed to execute the method for pairing multiple devices using encoding on the same channel according to any one of claims 1 to 5 and the method for communicating multiple devices using encoding on the same channel according to any one of claims 6 to 9.

Citation Information

Patent Citations

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

    CN111464993A

  • Point-to-point multi-channel network building method and system of private protocol

    CN112165733A

  • One-master multi-slave device communication method, device, equipment and medium

    CN118138398A

  • Pairing system, pairing management device, pairing method, and program

    US20100262696A1

  • Multi-channel resource allocation method and system

    WO2021230649A1