Multi-device pairing method and communication method using encoding on the same channel

The idle encoding is obtained through the device and the same encoding is used for pairing and communication, which solves the problem of multi-device channel interference and improves communication quality and pairing efficiency.

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

Patent Information

Application Number
CN202510292095.7
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 sets of devices communicate based on the same channel, there is a problem that interferes with each other and affects the communication quality.

Method used

The idle encoding is obtained separately through the devices, and the same pairing encoding is used for information interaction during the pairing process. After establishing a communication connection, it switches to the working mode and uses the same encoding to communicate to isolate the communication of different devices.

Benefits of technology

The communication quality between devices is improved, mutual interference between devices is reduced, and a convenient and accurate pairing process is achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119815579B_ABST
    Figure CN119815579B_ABST
Patent Text Reader

Abstract

The present application discloses a multi-device pairing method and a communication method using codes encoded on the same channel. The pairing method includes: a first device obtains an idle first code, and then enters a pairing mode using the pairing code to listen for pairing requests; a second device obtains an idle second code, and then enters a pairing mode using the pairing code to send pairing requests; 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; both the first device and the second device use a third code to switch from the pairing mode to the working mode, completing the pairing process between the first device and the second device. By using the same pairing code for pairing, the present application can make the pairing process more convenient and accurate, and can isolate the communication between different devices using multiple codes, thereby reducing the mutual interference between devices and improving the communication quality of the devices.
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 particularly to a multi-device pairing method and a communication method using coding on the same channel. Background Art

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

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

[0004] The purpose of this application is to provide a multi-device pairing method and a communication method using coding 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 many technical effects that can be produced by the preferred 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 using coding on the same channel provided by this application includes: a first device obtains an idle first code, and then enters the pairing mode to listen for pairing requests using the pairing code; a second device obtains an idle second code, and then enters the pairing mode to send the pairing request using the pairing code; 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, where 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, where the third code is either the idle first code or the idle second code; both the first device and the second device use the third code to switch from the pairing mode to the working mode, completing the pairing process of the first device and the second device.

[0007] In some embodiments, the first device obtains an idle first code, including: if the first device fails to obtain any data based on the current code within a first preset duration, the current code is used as the idle first code.

[0008] In some embodiments, the multi-device pairing method using codes on the same channel further 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, either 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 among the idle first code and the idle second code is used as the third code.

[0009] In some embodiments, the first device sends a pairing response according to the pairing request, including: the first device sends the pairing response after a second preset duration from receiving the pairing request.

[0010] 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 a third preset duration from sending the pairing confirmation request; the first device automatically enters the working mode based on the third code after a fourth preset duration from replying the pairing confirmation response.

[0011] In a second aspect, the present application provides a multi-device communication method using codes on the same channel, which is applied to a first device and a second device that have completed the pairing process using the multi-device pairing method using codes on the same channel as described above. The method includes: the first device obtains an idle fourth code and listens for a communication request using a communication code; the second device obtains an idle fifth code and sends the communication request to the first device using the communication code, where 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 the working mode using the sixth code, where the sixth code is either the idle fourth code or the idle fifth code.

[0012] In some embodiments, the multi-device communication method using codes on the same channel further 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, 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, the one with the latest acquisition time among the idle fourth code and the idle fifth code is used as the sixth code.

[0013] In some embodiments, 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 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, where the seventh code used last time refers to the third code paired and used last time or the sixth code used for communication last time; 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.

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

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

[0016] 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 acquire 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, each group of the first device and the second device can be assigned an idle code for communication and the codes of this group of devices are the same. Thus, 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. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0018] Figure 1 is a schematic flowchart of a multi-device pairing method using coding on the same channel in an embodiment of the present application;

[0019] Figure 2 is a schematic flowchart of a multi-device communication method using coding on the same channel in an embodiment of the present application;

[0020] Figure 3 is a schematic flowchart of a specific embodiment of a multi-device communication method using coding on the same channel in an embodiment of the present application;

[0021] Figure 4 is a structural block diagram of a processing device in an embodiment of the present application.

[0022] In the figure: 1, processing device; 10, memory; 11, processor. Detailed implementation manners

[0023] In order to make the objectives, technical solutions and advantages of the present application more clear and understandable, the following various exemplary embodiments will refer to the corresponding accompanying 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 numbers in different accompanying 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 only 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.

[0024] 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 orientation shown in the drawings. These are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the indicated elements 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 specifying 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, 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 communication inside two elements or the 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.

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

[0026] The multi-device pairing method using coding on the same channel involved in the present 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 pairing between devices. That is, the first device and the second device can complete the pairing process through the multi-device pairing method using coding on the same channel involved in the present application.

[0027] The multi-device communication method using coding on the same channel involved in the present 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 establish a communication connection through the multi-device communication method using coding on the same channel involved in the present application. Specifically, the communication connection can refer to the first communication connection after pairing and subsequent multiple communication connections.

[0028] As Figure 1 shown, the present application provides a multi-device pairing method using coding on the same channel, including the following steps (step S1 to step S3):

[0029] S1. The first device obtains an idle first code and 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 a pairing request using the pairing code.

[0030] 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 a receiver or a transmitter on the device, or an integration of a receiver and a transmitter, such as a dongle of a game console.

[0031] 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 implement pairing and 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. Here, the encoding can be the same encoding used by the devices for pairing.

[0032] In some embodiments, the first device and the second device can communicate through the same encoding. That is, the first device can establish a communication process with the second device 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. Since the encoding is unique, if the first device and the second device are communicating through encoding A, then other first devices and other second devices cannot communicate through encoding A. Thus, communication between multiple groups of devices can be achieved through multiple encodings, reducing mutual interference.

[0033] In some embodiments, an idle encoding may refer to an encoding that is not used or occupied in the same channel, 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.

[0034] In some embodiments, the first device or the second device may 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 may 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.

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

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

[0037] 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.

[0038] 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 multiple codes in the same channel can be preset as the pairing code.

[0039] 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, where 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. The third code is either the idle first code or the idle second code.

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

[0041] In some embodiments, the multi-device pairing method using codes encoded on the same channel may further include: 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, either 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 among the idle first code and the idle second code is used as the third code. In this case, since there is a situation where other devices occupy the first code or the second code, by comparing the differences between the first code and the second code and using the one with the latest acquisition time as the third code, it can better avoid affecting the pairing due to the occupied code.

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

[0043] In some embodiments, the first device sending a pairing response according to the pairing request may include: The first device sends a pairing response after receiving the pairing request for a second preset duration. 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.

[0044] 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.

[0045] 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.

[0046] In some embodiments, the device ID 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 among multiple first devices.

[0047] S3. Both the first device and the second device switch to the working mode using the third code, completing the pairing process of the first device and the second device.

[0048] 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 confirmed third code, that is, the first device and the second device can switch from the pairing mode to the 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.

[0049] In some embodiments, both the first device and the second device use the third code to switch from the pairing mode to the working mode, which may include: after the second device sends a pairing confirmation request for up to a third preset duration, it automatically enters the working mode based on the third code; after the first device replies to the pairing confirmation response for up to 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 other party's reply information and affecting the pairing effect. It should be noted that each preset duration of the present application can be set according to requirements, so each preset duration can be different, or some can be the same or all can be the same.

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

[0051] In some embodiments, the second device can send a status switch request to the first device multiple times. The second device can enter the working mode based on the third code after sending the status switch request up to a preset number of times.

[0052] As Figure 2 shown, the present application relates to a multi-device communication method using codes on the same channel, which is applied to the first device and the second device that have completed the pairing process by using the multi-device pairing method using codes on the same channel as described above, and includes the following steps (step S10 to step S20):

[0053] S10. The first device obtains an idle fourth code and listens for communication requests using the communication code; the second device obtains an idle fifth code and sends a communication request to the first device using the communication code, where the communication request includes the device ID of the second device and the idle fifth code. It should be noted that the technical solutions for the first device to obtain an idle fourth code and the second device to obtain an idle fifth code here can refer to the specific description of the multi-device pairing method using codes on the same channel involved in the present application, that is, the related technical solutions for the first device to obtain an idle first code and the second device to obtain an idle second code described above. It will not be elaborated here. The communication code can be different from the pairing code.

[0054] In some embodiments, before the first device obtains an idle fourth code, the multi-device communication method using codes on the same channel may include: the first device obtains the seventh code used last time, determines whether the second device is in the 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.

[0055] 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, when the first device disconnects the communication connection with the second device, the second device may remain in the 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 the working mode, the first device can establish a communication process with the second device through this code. That is to say, 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 the subsequent communication of the first communication connection.

[0056] In some embodiments, 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.

[0057] In some embodiments, after the first device enters the working mode based on the seventh code used last time, the second device may obtain the seventh code used last time, determine whether the first device is in the working mode based on the seventh code used last time, and 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 enter the working mode and establish a communication process based on the same code, that is, the seventh code used last time, one after another.

[0058] In some embodiments, the communication method may include: when the first device and / or the second device is in the 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 in the pairing process or the communication process. In this case, it can be informed to other devices that the current code is in use and occupied, that is, the currently used code is a non-idle code. On the one hand, it can reduce the influence 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 judge the status of the next code, thereby improving the communication efficiency.

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

[0060] S20. The first device replies with the sixth coding based on the communication request, and both the first device and the second device enter the working mode using the sixth coding.

[0061] In some embodiments, the first device and the second device may record the coding used for the current communication to facilitate the next communication establishment process. That is, it can be used as the seventh coding used last time required for the next communication establishment process.

[0062] As Figure 3 shown, a specific embodiment of the multi-device communication method using coding on the same channel involved in this application may include the following steps:

[0063] S300. The device is powered on; specifically, the device can be the first device or the second device. Further, the device can be the first device and / or the second device that has completed the pairing process using the multi-device pairing method using coding on the same channel of this application.

[0064] S310. Search for the coding used last time; the coding used last time can refer to the coding used for the last pairing or communication. The device can store at least one coding used last time.

[0065] S320. Determine whether there is a paired device. If so, go to step S330; if not, go to step S340. For example, if the coding used last time is not in the idle state, the first device can receive the information of the paired second device through the coding used last time and determine that there is a paired device.

[0066] S330. Enter the working state using the coding last time, and then go to step S410.

[0067] S340. Determine whether the coding used last time is idle. If so, return to step S330; otherwise, go to step S350.

[0068] S350. Find the next idle coding and record the current time; the device can obtain the idle coding by traversing. The first device can obtain the idle fourth coding, and the second device can obtain the idle fifth coding.

[0069] S360. Use the communication coding and wait for the paired device to go online.

[0070] S370. Information of the paired device is received.

[0071] S380. Compare the available codes to determine whether they are the same; if they are the same, proceed to step S390, otherwise proceed to step S400. If the fourth code is the same as the fifth code, select either the fourth code or the fifth code as the sixth code and enter the working state.

[0072] S390. Enter the working state using the available code, and then proceed to step S410.

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

[0074] S410. The device sends data or broadcasts information at fixed time intervals. This can inform that the currently used code is occupied, that is, it is not in the idle state.

[0075] In this application, the first device and the second device respectively obtain available 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, each group of the first device and the second device can be assigned an available code for communication and the codes of this group of devices are the same. Thus, 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.

[0076] 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 on the same channel and the multi-device communication method using codes on the same channel as described above. Therefore, the computer program product according to this application has the same advantages as those detailed with reference to the device 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, such as Internet users can download the computer program product from the network, such as the Internet when needed. The computer program product can be implemented either by means of a computer program, that is, software, or by means of one or more dedicated electronic circuits, that is, hardware, or in any hybrid form, that is, by means of software components and hardware components, or in the form of a hybrid of software, hardware, or software and hardware.

[0077] Those of ordinary skill in the art can understand that all or part of the features / steps for 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 encoding on the same channel and the method of multi-device communication using encoding on the same channel.

[0078] 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.

[0079] 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 encoding on the same channel and the method of multi-device communication using encoding on the same channel.

[0080] 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 coding on the same channel, characterized in that Including: The first device obtains an idle first code, and then enters the pairing mode using the pairing code to listen for pairing requests; The second device obtains an idle second code, and then enters the pairing mode using the pairing code 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, where 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, where the third code is either the idle first code or the idle second code; Both the first device and the second device use the third code to switch from the pairing mode to the working mode, completing the pairing process of the first device and the second device; The multi-device pairing method using codes on the same channel further 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 either the idle first code or the idle second code is used as the third code; if the idle first code and the idle second code are different, then the one with the latest acquisition time among the idle first code and the idle second code is used as the third code; the code is a preamble or a synchronization header of a data frame.

2. The multi-device pairing method using encoding on the same channel according to claim 1, wherein 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 duration, then the current code is used as the idle first code.

3. The multi-device pairing method using encoding on the same channel according to claim 1, characterized in that, The first device sends a pairing response according to the pairing request, including: After the first device receives the pairing request for a second preset duration, it then sends the pairing response.

4. The multi-device pairing method using coding on the same channel according to claim 1, wherein Both the first device and the second device use the third code to switch from the pairing mode to the working mode, including: After the second device sends the 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 the pairing confirmation response for a fourth preset duration, it automatically enters the working mode based on the third code.

5. A multi-device communication method using encoding on the same channel, characterized in that, Including: The first device obtains an idle fourth code and listens for communication requests using the communication code; The second device obtains an idle fifth code and sends the communication request to the first device using the communication code, where the communication request includes the device ID of the second device and the idle fifth code, and the first device and the second device are devices that have completed the pairing process through the multi-device pairing method using codes on the same channel according to any one of claims 1 to 4; The first device replies with a sixth code based on the communication request, and both the first device and the second device enter the working mode using the sixth code, where the sixth code is either the idle fourth code or the idle fifth code.

6. The multi-device communication method using encoding on the same channel according to claim 5, wherein, The multi-device communication method using coding on the same channel further includes: the second device compares the idle fourth coding with the idle fifth coding. If the idle fourth coding is the same as the idle fifth coding, the idle fourth coding or the idle fifth coding is used as the sixth coding; if the idle fourth coding is different from the idle fifth coding, the one with the latest acquisition time among the idle fourth coding and the idle fifth coding is used as the sixth coding.

7. The multi-device communication method using encoding in the same channel according to claim 5, wherein Before the first device obtains the idle fourth coding, the multi-device communication method using coding on the same channel includes: the first device obtains the last used seventh coding, and based on the last used seventh coding, determines whether the second device is in the working mode. If the second device is in the working mode, the first device enters the working mode based on the last used seventh coding, where the last used seventh coding refers to the third coding paired and used last time or the sixth coding used for communication last time; If the second device is not in the working mode, it is determined whether the last used seventh coding is idle. If the last used seventh coding is idle, the first device enters the working mode based on the last used seventh coding.

8. The multi-device communication method using encoding on the same channel according to claim 5, wherein The multi-device communication method using coding on the same channel includes: when the first device and / or the second device is in the working mode, the first device and / or the second device broadcasts information periodically based on the currently used coding.

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 using coding on the same channel according to any one of claims 1-4 and to execute the multi-device communication method using coding on the same channel according to any one of claims 5-8.

Citation Information

Patent Citations

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

    CN111464993A