Multi-machine communication device and method for 2.4 G wireless gamepad
Through the custom channel and access address mapping method, combined with private protocol and timing synchronization module, the problems of small number of channels and poor anti-interference of 2.4G wireless gamepads are solved, and low-cost, high-interference-resistant multi-computer communication is realized, ensuring that multiple sets of devices work independently in the same space.
Patent Information
- Application Number
- CN202510303181.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-14
- Publication Date
- 2025-05-30
AI Technical Summary
The existing 2.4G wireless gamepad has a small number of channels and a fixed channel value, which leads to the problems of channel congestion and poor anti-interference of multiple devices in the same space.
Using custom channel and access address mapping methods, through private protocols and timing synchronization modules, a unique channel and access address configuration between each USB end and the corresponding handle end is realized, ensuring that multiple sets of devices work independently in the same space.
It realizes low-cost, strong interference-resistant multi-computer communication, meeting the needs of multiple sets of equipment independent and non-interference in the same space.
Smart Images

Figure CN120074776A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of multi - machine communication, and particularly relates to a multi - machine communication device and method for a 2.4G wireless game controller. Background Art
[0002] Generally, a set of wireless game controllers consists of 1 or 2 controller ends and 1 USB end. The wireless communication between the controller end and the USB end is used for pairing connection and the transmission of controller key values, etc. The communication flow block diagram is as Figure 1 shown. The existing wireless game controllers on the market are mainly divided into Bluetooth wireless game controllers and 2.4G wireless game controllers. The cost of Bluetooth wireless game controllers is higher than that of 2.4G wireless game controllers. In terms of the selection of wireless communication channels, Bluetooth wireless game controllers adopt the adaptive frequency - hopping technology of the Bluetooth protocol stack, which has a large number of channels and flexible selection, and can ensure that multiple sets of game controllers work together in the same space without being affected. While the communication channels of 2.4G wireless game controllers are generally 3 to 5, and the channel values are fixed. Multiple sets of wireless game controllers in the same space will have channel congestion, which will affect the independent operation between multiple sets of wireless game controllers.
[0003] In summary, the existing technologies mainly have the following technical defects: 1) Bluetooth wireless game controllers have strong anti - interference ability but high cost; 2) 2.4G wireless game controllers have low cost, but few channels and fixed channel values, and poor anti - interference ability. Summary of the Invention
[0004] The purpose of the present invention is to overcome the above - mentioned deficiencies of the existing technology. The present invention provides a multi - machine communication device and method for a 2.4G wireless game controller, so as to achieve the advantages of low cost, strong anti - interference ability, and the ability to meet the independent and non - interfering operation of multiple sets of devices in the same space.
[0005] To solve the above - mentioned technical problems, the present invention provides a multi - machine communication device for a 2.4G wireless game controller, including: n controller ends, each controller end including a first controller and a second controller; n USB ends, which are used to transmit and receive wireless data, perform wireless data interaction with the corresponding n controller ends, and transmit key value data to the corresponding n personal computers; A private protocol, which is used to provide the requirements for the wireless data frame format of the communication between each controller end and the corresponding USB end; A timing synchronization module, which is used for the timing synchronization of the transceiver between each USB end and the corresponding controller end; An own ID module, which is used for data interaction identification, and each USB end and the corresponding controller end independently have a unique ID; A mapping module, according to the own ID module of each USB port, to implement the mapping of channels and access addresses; Among them, the mapping of the channels is customarily mapped to 2402 MHz to 2530 MHz according to each USB port ID, and the interval between every two adjacent values is 1 MHz, with a total of 129 channels. This channel range is the working channel of the 2.4G chip; The method for custom mapping of the channels is: select a certain channel among the 129 channels as the public channel, sort the remaining 128 channels from small to large, and divide them into 2 blocks of 64 each, which are divided into a small channel group and a large channel group; the channel of the first handle is selected from the small channel group, and the channel of the second handle is selected from the large channel group; The mapping of the access addresses is customarily mapped to a certain access address according to each USB port ID to ensure the number of channels within a limited range; The method for custom mapping of the access addresses is: select a certain access address as the public access address, and generate an access address according to each USB port ID in combination with the whitening algorithm in Bluetooth. The first handle and the second handle share the same access address.
[0006] Preferably, it further includes a timer for timing to switch the working channels and access addresses.
[0007] Preferably, the channels of the first handle and the second handle are not a certain fixed channel, but a channel group composed of 3 to 5 channels.
[0008] The present invention also provides a multi-machine communication method for a 2.4G wireless game handle, adopting a multi-machine communication device for a 2.4G wireless game handle as described above, including the following steps: Step S1: The handle end is paired and connected with the USB end, and scans and listens for the paired connection data from the USB end; Step S2: The USB end turns on the timer and always transmits and receives data regularly on the public channel, the channel of the first handle, and the channel of the second handle respectively; Step S3: When the handle end first scans and listens for the data from the USB end on the public channel, it will respond to the data on the public channel; Step S4: Subsequently, the handle end continues to wait for the USB end to respond on the public channel; Step S5: When the USB end receives the data from the handle end on the public channel, it performs data verification. After the verification passes, it saves the current handle ID, assigns an IP number to the handle, and transmits the data carrying the handle ID back on the public channel; Step S6: When the handle end detects data from the USB end on the public channel for the second time, perform data verification. After the verification passes, save the current USB end ID. The handle end maps and switches to the handle one channel and the handle one access address according to the received USB end ID and the assigned IP number; or switches to the handle two channel and the handle two access address. At this time, the pairing process between the handle end and the USB end is completed, and the data interaction communication for establishing the handle key value transmission and maintaining the connection state starts. Step S7: The handle end activates a timer to periodically activate the transceiver window, perform data interaction with the USB end, and synchronize the time for the next activation of the transceiver window.
[0009] Preferably, in step S1, the handle end operates on the public channel all the time before pairing and connecting.
[0010] Preferably, in step S2, the data content transmitted belongs to a private protocol, including the USB end's own ID, the handle end's own ID, the current working channel, the current pairing and connection state, the packet header, and the checksum data.
[0011] Preferably, in step S3, the data content of the response belongs to a private protocol, including the handle end's own ID, the USB end's own ID, the current working channel, the handle key value, the packet header, and the checksum data.
[0012] Preferably, the data verification process in steps S5 and S6 specifically includes: first verifying whether the packet header in the private protocol is consistent with the preset packet header, then verifying whether the channel in the private protocol is consistent with the current working channel, then verifying whether the ID in the private protocol is consistent with the own ID, and finally comparing whether the checksum in the private protocol is consistent with the calculated checksum.
[0013] Preferably, in step S7, the synchronization of the transceiver window means that after the handle end receives data from the USB end, it adjusts the timing time of the timer for activating the next transceiver window.
[0014] Compared with the prior art, the present invention has the following beneficial effects: The present invention utilizes the 2.4G private protocol, enables automatic pairing between the USB end and the handle end when powered on, and uses a custom mapping method and a data interaction timing synchronization mechanism to achieve the pairing of one USB end with two handle ends, with the advantages of low cost, strong anti-interference ability, and meeting the requirement that multiple sets of devices can work independently and without interference in the same space. Description of the Drawings
[0015] Figure 1 It is a communication flow block diagram of the USB end and the handle end in the prior art.
[0016] Figure 2This is the structural block diagram of a multi-device communication device for a 2.4G wireless game controller according to the present invention.
[0017] Figure 3 This is the data interaction timing diagram after the successful pairing of the controller end and the USB end of the present invention. Specific embodiments
[0018] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. According to the following description, the advantages and features of the present invention will be clearer. It should be noted that the accompanying drawings are all in a very simplified form and use non-precise scales, only for the purpose of facilitating and clearly assisting in explaining the embodiments of the present invention.
[0019] As Figure 2 shown, an embodiment of the present invention provides a multi-device communication device for a 2.4G wireless game controller, including n USB ends, n controller ends, a private protocol, a timing synchronization module, an own ID module, and a mapping module. The USB end is used to transmit and receive wireless data, perform wireless data interaction with the controller end, and transmit key value data to n PCs; the controller end is used to transmit and receive wireless data and perform wireless data interaction with the USB end; the private protocol is used for wireless data interaction and provides the requirements for the wireless data frame format of the communication between the controller end and the USB end; the timing synchronization module is used for the timing synchronization of the transceiver between the USB end and the controller end and provides a stable data interaction timing mechanism; the own ID module is used for data interaction identification, and each USB end and controller end independently has a unique ID; the mapping module is used to map the controller 1 channel, controller 2 channel, controller 1 access address, and controller 2 access address according to the USB own ID module.
[0020] Optionally, it further includes a timer for periodically switching the working channel and the access address.
[0021] An embodiment of the present invention also provides a multi-device communication method for a 2.4G wireless game controller, including the following steps: The controller end and the USB end are paired and connected. Before the pairing connection, the controller end has been working on the public channel, scanning and listening for pairing connection data from the USB end; The USB end starts the timer and always transmits and receives data at regular intervals on three channels: the public channel, the controller 1 channel, and the controller 2 channel. The transmitted data content belongs to the private protocol and includes the USB end's own ID, the controller end's ID, the current working channel, the current pairing connection status, the packet header, and the checksum. The data frame transmitted by the USB end is shown in Table 1 below.
[0022] Table 1
[0023] When the handle end first scans and monitors data from the USB end on the public channel, it will reply on the public channel. The content of the reply data belongs to the private protocol and includes the handle end's own ID, USB ID, current working channel, handle key values, packet header, and checksum. The data frame transmitted by the handle end is shown in Table 2 below.
[0024] Table 2
[0025] Subsequently, the handle end continues to wait for a reply from the USB end on the public channel; When the USB end receives data from the handle end on the public channel, it performs a check. After the check passes, it saves the current handle ID, assigns an IP address to the handle, and transmits data carrying the handle ID back on the public channel; When the handle end scans and monitors data from the USB end on the public channel for the second time, it performs data verification. After the verification passes, it saves the current USB end ID. The handle end maps and switches to the handle 1 channel or the handle 2 channel according to the received USB end and the assigned IP address. At this time, the pairing process between the handle end and the USB end is completed, and the data interaction communication for key value transmission and connection status maintenance begins, as Figure 3 shown. The USB end starts a timer and always transmits (TX) and receives (RX) data at regular intervals on the public channel, handle 1 channel, and handle 2 channel respectively. After pairing is completed, handle 1 first enables the receive state on the handle 1 channel, receives data sent from the USB end, and then transmits data to reply to the USB end to maintain the connection state. The same applies to handle 2.
[0026] The handle end starts a timer, regularly opens the transmit and receive windows, interacts with the USB end, and synchronizes the time for the next opening of the transmit and receive windows.
[0027] Optionally, the verification process includes verifying the packet header, channel, checksum, and whether it is consistent with its own ID. Specifically, it includes: first verifying whether the packet header in the private protocol is consistent with the pre-set packet header, then verifying whether the channel in the private protocol is consistent with the current working channel, then verifying whether the ID in the private protocol is consistent with its own ID, and finally comparing whether the checksum in the private protocol is consistent with the calculated checksum.
[0028] Optionally, the channel mapping is customized according to the USB port ID and mapped to 2402 MHz to 2530 MHz, with an interval of 1 MHz, for a total of 129 channels. This channel range is the operating channel of the 2.4G chip. The method of custom channel mapping is as follows: Select a certain channel in the 129 channels as the public channel, such as 2500 MHz. The remaining 128 channels are sorted from small to large and evenly divided into 2 groups of 64 each, which are divided into a small channel group and a large channel group. The channel of handle 1 is selected from the small channel group, and the channel of handle 2 is selected from the large channel group.
[0029] Optionally, the access address mapping is customized according to the USBD port ID and mapped to a certain access address to ensure the number of channels within a limited range. Different access addresses can satisfy the independent operation of multiple sets of devices. The method of custom access address mapping is as follows: Select a certain access address as the public access address, and generate an access address according to the USB port ID and combined with the whitening algorithm in Bluetooth. Handle 1 and handle 2 share the same access address.
[0030] Optionally, the channels of handle 1 and handle 2 are not a certain fixed channel, but a channel group composed of 3 to 5 channels, which improves the anti-interference ability of communication.
[0031] Optionally, the synchronous transceiver window is to adjust the timing time of the timer for opening the next transceiver window after the handle end receives data from the USB end. For example, the handle end opens a transceiver window every 60 ms. When the handle end receives data from the USB end, it will adjust the timing time, which is no longer a fixed 60 ms, to avoid communication asynchronization caused by the clock error between the transceiver parties.
[0032] The above description is only a description of the preferred embodiments of the present invention, and does not limit the scope of the present invention in any way. Any changes and modifications made by those of ordinary skill in the art of the present invention according to the above disclosure are within the scope of protection of the claims.
Claims
1. A multi-machine communication device for a 2.4G wireless game controller, characterized in that: include: n handle ends, each handle end comprising handle one and handle two; n USB ports, used to transmit and receive wireless data, and to perform wireless data interaction with the corresponding n handle ports, and to transmit key value data to the corresponding n PCs; A private protocol used to provide wireless data frame format requirements for communication between each handle end and the corresponding USB end; Timing synchronization module, used for synchronizing the sending and receiving timing of each USB end with the corresponding handle end; Self-ID module, used for data interaction identification, each USB port and corresponding handle end have their own unique ID; A mapping module, which realizes the mapping of channels and access addresses according to the ID module of each USB port; The channel mapping is customized to 2402MHz~2530MHz according to each USB port ID, and the interval between each two adjacent values is 1MHz, with a total of 129 channels. This channel range is the working channel of the 2.4G chip; The custom channel mapping method is as follows: select one of the 129 channels as a public channel, sort the remaining 128 channels from small to large, and divide them into two blocks of 64 each, which are divided into a small channel group and a large channel group; the handle channel 1 is selected from the small channel group, and the handle channel 2 is selected from the large channel group; The mapping of the access address is to define a mapping to a certain access address according to each USB port ID, so as to ensure the number of channels within a limited range; The custom mapping method of the access address is: select a certain access address as a public access address, generate an access address according to each USB terminal ID and in combination with the whitening algorithm in Bluetooth, and handle one and handle two share the same access address.
2. A multi-machine communication device for a 2.4G wireless game controller as claimed in claim 1, characterized in that: It also includes a timer for regularly switching the working channel and the access address.
3. A multi-machine communication device for a 2.4G wireless game controller as claimed in claim 1, characterized in that: The handle channel 1 and the handle channel 2 are not fixed channels, but a channel group consisting of 3 to 5 channels.
4. A multi-machine communication method for a 2.4G wireless game controller, using a multi-machine communication device for a 2.4G wireless game controller as claimed in any one of claims 1 to 3, characterized in that: The steps include: Step S1: The handle end is paired with the USB end, and the pairing connection data from the USB end is scanned and monitored; Step S2: The USB end starts a timer to periodically transmit and receive data on the public channel, the handle channel 1, and the handle channel 2 respectively; Step S3: When the handle end first scans and monitors data from the USB end on the public channel, it responds to the data on the public channel; Step S4: The handle end then continues to wait for a response from the USB end on the public channel; Step S5: When the USB end receives data from the handle end in the public channel, it performs data verification. After the verification passes, the current handle ID is saved, an IP number is assigned to the handle, and data carrying the handle ID is transmitted back in the public channel; Step S6: When the handle end scans and monitors the data from the USB end for the second time in the public channel, the data is verified. After the verification is passed, the current USB end ID is saved. The handle end maps and switches to the handle channel 1 and the handle access address 1 according to the received USB end ID and the assigned IP number; or switches to the handle channel 2 and the handle access address 2; at this time, the pairing process between the handle end and the USB end is completed, and the establishment of handle key value transmission and data interactive communication to maintain the connection state begins; Step S7: The handle end starts the timer, opens the sending and receiving window at a fixed time, exchanges data with the USB end, and synchronizes the time for opening the sending and receiving window next time.
5. A multi-machine communication method for a 2.4G wireless game controller as claimed in claim 4, characterized in that: In the step S1, the handle end always works on the public channel before pairing and connection.
6. A multi-machine communication method for a 2.4G wireless game controller as claimed in claim 4, characterized in that: In step S2, the data content transmitted belongs to a private protocol, including the USB end's own ID, the handle end's own ID, the current working channel, the current pairing connection status, the packet header and the checksum.
7. A multi-machine communication method for a 2.4G wireless game controller as claimed in claim 4, characterized in that: In step S3, the data content of the response belongs to a private protocol, including the handle end's own ID, the USB end's own ID, the current working channel, the handle key value, the packet header and the checksum.
8. A multi-machine communication method for a 2.4G wireless game controller as claimed in claim 4, characterized in that: The data verification process in step S5 and step S6 specifically includes: first verifying whether the packet header in the private protocol is consistent with the pre-set packet header, then verifying whether the channel in the private protocol is consistent with the current working channel, then verifying whether the ID in the private protocol is consistent with its own ID, and finally comparing whether the checksum in the private protocol is consistent with the calculated checksum.
9. A multi-machine communication method for a 2.4G wireless game controller as claimed in claim 4, characterized in that: In step S7, the synchronous transceiver window is to adjust the timer timing of opening the next transceiver window after the handle end receives data from the USB end.
Citation Information
Cited By
Wireless equipment offline firmware upgrading method based on 2.4 G private protocol
CN120469706A
A method for offline firmware upgrade of wireless devices based on 2.4G private protocol
CN120469706B