A USB wireless connection method, device, storage medium and terminal equipment
By obtaining wireless product ID information through a wired connection and establishing a wireless communication connection, the problem of traditional wireless product pairing requiring third-party devices and being susceptible to interference is solved, achieving automated, secure, and efficient multi-category wireless connections.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN LOYAL ELECTRONICS CO LTD
- Filing Date
- 2024-07-08
- Publication Date
- 2026-04-21
AI Technical Summary
Traditional wireless product pairing requires the assistance of third-party devices and is susceptible to interference from other wireless products, affecting the effectiveness and security of pairing.
By establishing a wired connection with the wireless product, identification information is obtained, identification confirmation information is sent to obtain product ID information, and it is saved to the pairing dataset. After disconnecting the wired connection, a wireless communication connection channel is established based on the ID information.
It enables automatic pairing of wireless products, improves the effectiveness and security of pairing, avoids signal interference, and supports wireless connections for multiple product categories.
Smart Images

Figure CN118632381B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a USB wireless connection method, apparatus, storage medium, and terminal device. Background Technology
[0002] Wireless products such as wireless keyboards, wireless mice, wireless headphones, wireless gamepads, and wireless microphones enable signal transmission and interaction over distances, and their convenience has led to their increasing prevalence in our daily lives. Traditional wireless products typically consist of a receiver and a transmitter (transmitter and receiver ends), and these devices need to be paired before they can communicate wirelessly.
[0003] Traditional pairing methods rely on wireless mode, where both devices are in a specific frequency and data format pairing or pairable state, searching for and recognizing each other's pairing data before successfully saving it. However, traditional wireless products require third-party assistance. For example, when pairing a wireless keyboard and receiver, the receiver needs to be plugged into a PC or other USB port. Furthermore, the wireless pairing process is inevitably susceptible to interference signals from other wireless devices, affecting the effectiveness and security of the pairing. Additionally, wireless pairing may interfere with other wireless devices currently in use.
[0004] Therefore, the aforementioned technical deficiencies urgently need to be addressed. Summary of the Invention
[0005] To address the shortcomings of existing technologies, this invention provides a USB wireless connection method, apparatus, storage medium, and terminal device, which aims to automatically identify the category of wireless products and complete pairing, enabling pairing of multiple product categories, improving the effectiveness and security of pairing, and solving the technical problem of signal interference that easily occurs during traditional wireless pairing.
[0006] To address the aforementioned technical problems, a first aspect of this application provides a USB wireless connection method, the method comprising:
[0007] Establish a wired connection with wireless products and obtain their identification information;
[0008] Based on the identification information, send identification confirmation information to the wireless product. The identification confirmation information includes a request to obtain the wireless product ID information.
[0009] Obtain the wireless product ID information and save it to the pairing dataset. The pairing dataset is used to store several wireless product ID information.
[0010] Disconnect the wired connection with the wireless product and establish a wireless communication connection channel with the wireless product based on the wireless product ID information.
[0011] In the USB wireless connection method, the data catalog of the pairing dataset includes at least product category and product ID information.
[0012] The USB wireless connection method, wherein the steps of obtaining wireless product ID information and saving the wireless product ID information to the pairing dataset include:
[0013] Obtain wireless product ID information;
[0014] The wireless product ID information is parsed from the data catalog of the pairing dataset, and wireless product pairing information is generated.
[0015] Based on the data catalog of the pairing dataset, save the wireless product pairing information to the pairing dataset;
[0016] A signal indicating successful pairing information saving was received.
[0017] The USB wireless connection method, after the step of saving the wireless product pairing information to the pairing dataset according to the data directory of the pairing dataset, includes:
[0018] Erase the previously saved pairing information for wireless products of the same product category.
[0019] The USB wireless connection method, prior to the step of saving the wireless product ID information to the pairing dataset, includes:
[0020] Traverse the pairing dataset and search for ID data that is identical to the wireless product ID information.
[0021] If not, save the wireless product ID information to the pairing dataset;
[0022] If so, a signal will be sent indicating that the ID information has been saved.
[0023] The USB wireless connection method, after the steps of disconnecting the wired connection with the wireless product and establishing a wireless communication connection channel with the wireless product based on the wireless product ID information, includes:
[0024] Establish a wired connection with a USB port device;
[0025] Traverse the pairing dataset and enable wireless communication connection channels with the wireless products based on the wireless product ID information.
[0026] The USB wireless connection method, wherein the step of traversing the pairing dataset and enabling a wireless communication connection channel with the wireless product based on the wireless product ID information includes:
[0027] Obtain multi-mode switching commands from wireless products;
[0028] Based on the multi-mode switching command, switch the wireless communication connection channel with the wireless product.
[0029] A second aspect of this application provides a computer-readable storage medium storing one or more programs that can be executed by one or more processors to implement the steps in any of the USB wireless connection methods described above.
[0030] A third aspect of this application provides a USB wireless connection device, comprising:
[0031] The acquisition module is used to establish a wired connection with the wireless product and acquire the identification information of the wireless product.
[0032] The pairing request module is used to send identification confirmation information to the wireless product based on the identification information, wherein the identification confirmation information includes a request to obtain the wireless product ID information;
[0033] The pairing module is used to obtain wireless product ID information and save the wireless product ID information to the pairing dataset. The pairing dataset is used to store several wireless product ID information.
[0034] The communication module is used to disconnect the wired connection with the wireless product and establish a wireless communication connection channel with the wireless product based on the wireless product ID information.
[0035] A fourth aspect of this application provides a terminal device, which includes: a processor, a memory, and a communication bus; the memory stores a computer-readable program that can be executed by the processor;
[0036] The communication bus enables communication between the processor and the memory;
[0037] When the processor executes the computer-readable program, it implements the steps in any of the USB wireless connection methods described above.
[0038] Beneficial Effects: Compared with existing technologies, this invention provides a USB wireless connection method, apparatus, storage medium, and terminal device. The method includes: establishing a wired connection with a wireless product and obtaining the wireless product's identification information; sending identification confirmation information to the wireless product based on the identification information, the identification confirmation information including a request to obtain the wireless product's ID information; obtaining the wireless product's ID information and saving it to a pairing dataset, the pairing dataset storing multiple wireless product ID information sets; disconnecting the wired connection with the wireless product and establishing a wireless communication connection channel with the wireless product based on the wireless product's ID information. When using the receiver, it is first plugged into the wireless product for automatic pairing. During this process, the ID information of the wireless product is saved to the corresponding category, enabling pairing of multiple product categories. After pairing, the receiver is plugged into the USB port device to establish a wireless connection between the USB port device and the wireless product. This effectively improves the effectiveness and security of pairing and avoids the technical problem of signal interference that easily occurs during traditional wireless pairing. Attached Figure Description
[0039] Figure 1 A flowchart of the USB wireless connection method provided by the present invention;
[0040] Figure 2 for Figure 1 A flowchart illustrating step S30;
[0041] Figure 3 for Figure 1 Another flowchart of step S30;
[0042] Figure 4 for Figure 1 Another flowchart of step S40;
[0043] Figure 5 This is a schematic diagram of the structure of the USB wireless connection device provided by the present invention;
[0044] Figure 6 The structural schematic diagram of the terminal device provided by the present invention;
[0045] Figure 7 A schematic diagram illustrating the communication principle between the wireless product and the receiving end provided by this invention;
[0046] Figure 8 Another schematic diagram illustrating the communication principle between the wireless product and the receiving end provided by this invention. Detailed Implementation
[0047] This invention provides a USB wireless connection method, apparatus, storage medium, and terminal device. To make the objectives, technical solutions, and effects of this invention clearer and more explicit, the invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only for explaining the invention and are not intended to limit the invention.
[0048] Those skilled in the art will understand that, unless specifically stated otherwise, the singular forms “a,” “an,” “the,” and “the” used herein may also include the plural forms. It should be further understood that the term “comprising” as used in this specification means the presence of features, integers, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. It should be understood that when we say an element is “connected” or “coupled” to another element, it can be directly connected or coupled to the other element, or there may be intermediate elements. Furthermore, “connected” or “coupled” as used herein can include wireless connections or wireless coupling. The term “and / or” as used herein includes all or any units and all combinations of one or more associated listed items.
[0049] It will be understood by those skilled in the art that, unless otherwise defined, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. It should also be understood that terms such as those defined in general dictionaries should be understood to have the same meaning as in the context of the prior art, and should not be interpreted in an idealized or overly formal sense unless specifically defined as herein.
[0050] The invention will be further explained below with reference to the accompanying drawings and the description of the embodiments.
[0051] First, it's important to clarify that traditional pairing methods rely on wireless mode, where both devices are in a specific frequency and data format pairing or pairable state, searching for and recognizing each other's pairing data before successfully saving it. However, traditional wireless products require third-party assistance. For example, when pairing a wireless keyboard and receiver, the receiver needs to be plugged into a PC or other USB port. Furthermore, the wireless pairing process is inevitably susceptible to interference signals from other wireless devices, affecting the effectiveness and security of the pairing. Additionally, wireless pairing may interfere with communication from other wireless devices in use.
[0052] This embodiment provides a USB wireless connection method, in which the executing entity can be a receiver used for wireless connection. It is understood that the executing entity in this embodiment can be a receiver. For example, the receiver establishes a wired connection with a wireless product, and the receiver obtains the identification information of the wireless product; based on the identification information, the receiver sends identification confirmation information to the wireless product, the identification confirmation information including a request to obtain the wireless product ID information; the receiver obtains the wireless product ID information and saves the wireless product ID information to a pairing dataset, the pairing dataset being used to store several wireless product ID information; the receiver disconnects the wired connection with the wireless product, and the receiver establishes a wireless communication connection channel with the wireless product based on the wireless product ID information.
[0053] It should be noted that the above application scenarios are shown only for the purpose of understanding the present invention, and the embodiments of the present invention are not limited in any way. On the contrary, the embodiments of the present invention can be applied to any applicable scenario.
[0054] Furthermore, in order to further explain the invention, the embodiments will be described in detail below with reference to the accompanying drawings.
[0055] The USB wireless connection method provided in this embodiment is as follows: Figure 1 As shown, the method specifically includes:
[0056] Step S10: Establish a wired connection with the wireless product and obtain the identification information of the wireless product;
[0057] Taking the receiver as the executing entity as an example, when using this solution, first plug the receiver into the wireless product (such as a mouse, keyboard, Bluetooth speaker, etc.) to pair the wireless product. The receiver is plugged into the port of the wireless product. The port of the wireless product can be a Type-C interface or other standard ports, and the plug end of the receiver can be a USB port or other standard plug end. When the plug end of the receiver is not compatible with the port of the wireless product, an adapter can be used for conversion.
[0058] Step S20: Based on the identification information, send identification confirmation information to the wireless product. The identification confirmation information includes a request to obtain the wireless product ID information.
[0059] Specifically, after the receiver is plugged into the wireless product, the wireless product detects the device inserted into the port and sends identification information to the receiver. The receiver then sends back an identification confirmation message based on the identification information. This establishes a wired communication connection between the receiver and the wireless product. The receiver then sends a request to obtain the wireless product ID information to request matching with the wireless product (see reference). Figure 7 and Figure 8 ).
[0060] Step S30: Obtain the wireless product ID information and save the wireless product ID information to the pairing dataset. The pairing dataset is used to store several wireless product ID information.
[0061] Specifically, after receiving a pairing request from the receiver, the wireless product sends its wireless product ID information to the receiver. The receiver receives the wireless product ID information, parses and saves it. The pairing dataset is integrated on the receiver, and the wireless product ID information saved in the pairing dataset is used to establish a wireless connection with the corresponding wireless product. The receiver connects to the wireless product via a plug-in method, avoiding the technical problem of signal interference that may cause pairing failures in traditional wireless pairing methods. Simultaneously, the receiver can pair with wireless products of different product categories; that is, a USB port device only needs one receiver to simultaneously establish wireless communication connections with multiple wireless products of different product categories, effectively improving communication efficiency and reducing the port usage of the USB port device.
[0062] Step S40: Disconnect the wired connection with the wireless product and establish a wireless communication connection channel with the wireless product based on the wireless product ID information. This completes the pairing of the receiver and the wireless product.
[0063] Furthermore, the data catalog of the paired dataset includes at least product category and product ID information.
[0064] Specifically, the data directory of the pairing dataset contains at least product category and product ID information. Product categories include at least mice, keyboards, and Bluetooth speakers. Product ID information refers to the product ID information of the wireless products within that product category. Each product category can match at least one wireless product. In Example 1, each product category matches one wireless product. When matching wireless products within the same product category is required, the matching information (product ID information) of the previously matched wireless product is deleted. This achieves the matching and connection of wireless products.
[0065] Furthermore, the steps of obtaining the wireless product ID information and saving it to the pairing dataset include:
[0066] Step S31: Obtain the wireless product ID information;
[0067] Step S32: Parse the wireless product ID information according to the data directory of the pairing dataset and generate wireless product pairing information;
[0068] Step S33: Save the wireless product pairing information to the pairing dataset according to the data directory of the pairing dataset;
[0069] Specifically, after receiving the wireless product ID information, the receiving end first parses the wireless product ID information to check if the data contains product ID information of other wireless products (some wireless products are originally paired with other wireless products, such as keyboard and mouse sets). If so, it also parses the product ID information of the accompanying wireless products. During the parsing process, the product type of the wireless product is first determined, and then the product ID information is saved according to the data directory of the paired dataset. After the data is saved, the receiving end can simultaneously establish wireless connections and communication with both the wireless product itself and any accompanying wireless products.
[0070] Step S34: Feedback signal indicating successful pairing information saving.
[0071] Specifically, after the receiver and the wireless product are paired, the receiver sends a success signal to the wireless product so that the wireless product can confirm that the pairing process is complete and can send a pairing completion signal (light indicator) to the outside world.
[0072] Further, after the step of saving the wireless product pairing information to the pairing dataset according to the data catalog of the pairing dataset, the following steps are included:
[0073] Erase previously saved pairing information for wireless products of the same product category. This prevents the receiver from storing too many IDs of wireless products of the same category, which could cause pairing confusion.
[0074] In Example 1, the matching dataset can store more than two wireless products of the same product category. During wireless communication, the receiving end can simultaneously establish wireless communication connections with two or more wireless products of the same product category. This is for use in some special application scenarios. For example, in Scenario 1, two keyboards and two mice placed separately can simultaneously control the same computer for collaborative discussions in a meeting room. During use, keyboard one and keyboard two, and mouse one and mouse two can alternately modify the content on the computer screen.
[0075] Furthermore, prior to the step of saving the wireless product ID information to the pairing dataset, the following steps are included:
[0076] Step S35: Traverse the pairing dataset and search whether the pairing dataset contains ID data that is the same as the wireless product ID information;
[0077] Step S36: If not, save the wireless product ID information to the pairing dataset;
[0078] Step S37: If yes, then send a signal that the ID information has been saved.
[0079] In this embodiment, the matching dataset can only store the product ID information of one wireless product within the same product category. That is, the receiving end can only establish a wireless communication connection with the most recently matched wireless product in a given product category, ensuring the highest level of control.
[0080] Further, after disconnecting the wired connection with the wireless product and establishing a wireless communication connection channel with the wireless product based on the wireless product ID information, the process includes:
[0081] Step S41: Establish a wired connection with the USB port device;
[0082] Step S42: Traverse the pairing dataset and enable the wireless communication connection channel with the wireless product based on the wireless product ID information.
[0083] In this embodiment, after pairing with the wireless product, the receiver is removed and plugged into the USB port of the USB port device. The USB port device can be a computer, in-vehicle infotainment system, etc. Besides a USB port, the connection port of the USB port device can also be a Type-C port or other standard ports. When the receiver's plug-in end is incompatible with the USB port device's port, an adapter can be used for conversion. This establishes a wired communication connection between the USB port device and the receiver.
[0084] At this point, the USB port device establishes a wireless communication connection with the wireless product through the receiving end.
[0085] USB port devices can simultaneously establish wireless communication connections with multiple wireless products of different product categories through only one receiver, effectively improving communication efficiency and reducing the port usage of USB port devices.
[0086] Further, the steps of traversing the pairing dataset and enabling the wireless communication connection channel with the wireless product based on the wireless product ID information include:
[0087] Obtain multi-mode switching commands from wireless products;
[0088] Based on the multi-mode switching command, switch the wireless communication connection channel with the wireless product.
[0089] Specifically, this solution can be implemented based on a multi-mode keyboard and mouse device (keyboard and mouse). The multi-mode switching command can be obtained through the switching device on the keyboard or mouse in the multi-mode keyboard and mouse. Specifically, this invention does not limit the keyboard and mouse device to be paired with multiple receivers of this application. That is to say, the keyboard and mouse device can be paired with multiple receivers of this application and installed on multiple different devices. The multi-mode mouse and keyboard can establish communication connections with multiple devices at the same time, and establish effective communication connections through the multi-mode switching command.
[0090] Specifically, the multi-mode switching command includes receiver information indicating a valid communication connection between the mouse and keyboard. Based on the multi-mode switching command, a valid communication connection is established between the mouse and keyboard and the receiver corresponding to the multi-mode switching command. At this time, control signals and data are transmitted between the valid communication connections, therefore the communication connection is valid. It is not necessary to disconnect the communication connection between the mouse / keyboard and other receivers. However, when other receivers communicate with the mouse / keyboard, no signals are transmitted, which is equivalent to invalidity. Therefore, the mouse / keyboard can communicate with multiple receivers via the switching command. The other receivers include receivers other than those that have established a valid communication connection with the mouse / keyboard, and may include a second receiver and / or a first receiver.
[0091] By setting up the multi-mode switching command, the mouse and keyboard can simultaneously establish communication connections with at least two devices. Furthermore, the multi-mode switching command switches the effective communication connection between the mouse / keyboard and the receiver, making the switching of the mouse and keyboard set more convenient and faster. This implementation achieves pairing between the wireless mouse and wireless keyboard by connecting the wireless mouse to the receiver, and then establishes a communication connection between the receiver, mouse, and keyboard by connecting either the wireless mouse or wireless keyboard to the receiver. This eliminates the need to establish separate communication connections between the mouse and keyboard and the receiver; simply connecting either the wireless mouse or wireless keyboard to the receiver enables communication between the receiver, mouse, and keyboard. The connection steps are simple, and the connection efficiency is increased.
[0092] In summary, this embodiment provides a USB wireless connection method, apparatus, storage medium, and terminal device. The method includes: establishing a wired connection with a wireless product and obtaining the identification information of the wireless product; sending identification confirmation information to the wireless product based on the identification information, the identification confirmation information including a request to obtain the wireless product ID information; obtaining the wireless product ID information and saving the wireless product ID information to a pairing dataset, the pairing dataset being used to store several wireless product ID information; disconnecting the wired connection with the wireless product and establishing a wireless communication connection channel with the wireless product based on the wireless product ID information. When using the receiver, it is first plugged into the wireless product for automatic pairing. During this process, the ID information of the wireless product is saved to the corresponding category according to its category, realizing pairing of multiple product categories. After pairing, the receiver is plugged into the USB port device to establish a wireless connection between the USB port device and the wireless product. This effectively improves the effectiveness and security of pairing and avoids the technical problem of signal interference that is prone to occur in traditional wireless pairing processes.
[0093] To better implement the above methods, this application embodiment also provides a USB wireless connection device 100. This device can be integrated into an electronic device, such as a terminal, server, or personal computer. For example, in this embodiment, the device may include: an acquisition module 101, a pairing request module 102, a pairing module 103, and a communication module 104, as detailed below (e.g.) Figure 5 ):
[0094] The acquisition module 101 is used to establish a wired connection with the wireless product and acquire the identification information of the wireless product;
[0095] The pairing request module 102 is used to send identification confirmation information to the wireless product based on the identification information. The identification confirmation information includes a request to obtain the wireless product ID information.
[0096] The pairing module 103 is used to obtain wireless product ID information and save the wireless product ID information to the pairing dataset. The pairing dataset is used to store several wireless product ID information.
[0097] The communication module 104 is used to disconnect the wired connection with the wireless product and establish a wireless communication connection channel with the wireless product based on the wireless product ID information.
[0098] In some embodiments, a USB wireless connection device 100 includes an acquisition module 101, a pairing request module 102, a pairing module 103, and a communication module 104. The acquisition module 101 establishes a wired connection with the wireless product and acquires the identification information of the wireless product. The pairing request module 102 sends identification confirmation information to the wireless product based on the identification information, the identification confirmation information including a request to acquire the wireless product ID information. The pairing module 103 acquires the wireless product ID information and saves the wireless product ID information to a pairing dataset, the pairing dataset being used to store several wireless product ID information. The communication module 104 disconnects the wired connection with the wireless product and establishes a wireless communication connection channel with the wireless product based on the wireless product ID information.
[0099] In practice, each of the above units can be implemented as an independent entity or can be arbitrarily combined to be implemented as the same or several entities. For the specific implementation of each of the above units, please refer to the previous method embodiments, which will not be repeated here.
[0100] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0101] Based on the above-described USB wireless connection method, this embodiment provides a computer-readable storage medium storing one or more programs, which can be executed by one or more processors to implement the steps in the USB wireless connection method as described in the above embodiment. For example, executing the above-described... Figure 1 Method steps S10 to S40 in the text Figure 2 Method steps S31 to S34 in the text Figure 3 Method steps S35 to S37 in the text Figure 4 Method steps S41 to S42 are described below.
[0102] Establish a wired connection with wireless products and obtain their identification information;
[0103] Based on the identification information, send identification confirmation information to the wireless product. The identification confirmation information includes a request to obtain the wireless product ID information.
[0104] Obtain the wireless product ID information and save it to the pairing dataset. The pairing dataset is used to store several wireless product ID information.
[0105] Disconnect the wired connection with the wireless product and establish a wireless communication connection channel with the wireless product based on the wireless product ID information.
[0106] In some embodiments, the step of obtaining wireless product ID information and saving the wireless product ID information to the pairing dataset includes:
[0107] Obtain wireless product ID information;
[0108] The wireless product ID information is parsed from the data catalog of the pairing dataset, and wireless product pairing information is generated.
[0109] Based on the data catalog of the pairing dataset, save the wireless product pairing information to the pairing dataset;
[0110] A signal indicating successful pairing information saving was received.
[0111] In some embodiments, prior to the step of saving the wireless product ID information to the pairing dataset, the following steps are included:
[0112] Traverse the pairing dataset and search for ID data that is identical to the wireless product ID information.
[0113] If not, save the wireless product ID information to the pairing dataset;
[0114] If so, a signal will be sent indicating that the ID information has been saved.
[0115] In some embodiments, after the step of disconnecting the wired connection with the wireless product and establishing a wireless communication connection channel with the wireless product based on the wireless product ID information, the following steps are included:
[0116] Establish a wired connection with a USB port device;
[0117] Traverse the pairing dataset and enable wireless communication connection channels with the wireless products based on the wireless product ID information.
[0118] Based on the above-described USB wireless connection method, the present invention also provides a terminal device, such as... Figure 6 As shown, it includes at least one processor 20; a display screen 21; and a memory 22, and may also include a communications interface 23 and a bus 24. The processor 20, display screen 21, memory 22, and communications interface 23 can communicate with each other via the bus 24. The display screen 21 is configured to display a preset user guide interface in the initial setup mode. The communications interface 23 can transmit information. The processor 20 can invoke logical instructions in the memory 22 to execute the methods described in the above embodiments.
[0119] Furthermore, the logical instructions in the aforementioned memory 22 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium.
[0120] The memory 22, as a computer-readable storage medium, can be configured to store software programs, computer-executable programs, such as program instructions or modules corresponding to the methods in the embodiments of this disclosure. The processor 20 executes functional applications and data processing by running the software programs, instructions, or modules stored in the memory 22, thereby implementing the methods in the above embodiments.
[0121] The memory 22 may include a program storage area and a data storage area. The program storage area may store the operating system and application programs required for at least one function; the data storage area may store data created based on the use of the terminal device. Furthermore, the memory 22 may include high-speed random access memory (RAM) and non-volatile memory. Examples include various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks; these can also be transient storage media.
[0122] Furthermore, the specific process of loading and executing multiple instructions in the aforementioned storage medium and mobile terminal has been described in detail in the above method, and will not be repeated here.
[0123] In summary, compared with existing technologies, the present invention has the following beneficial effects: a USB wireless connection method, apparatus, storage medium, and terminal device, wherein the method includes: establishing a wired connection with a wireless product and obtaining the identification information of the wireless product; sending identification confirmation information to the wireless product based on the identification information, the identification confirmation information including a request to obtain the wireless product ID information; obtaining the wireless product ID information and saving the wireless product ID information to a pairing dataset, the pairing dataset being used to store several wireless product ID information; disconnecting the wired connection with the wireless product and establishing a wireless communication connection channel with the wireless product based on the wireless product ID information. When using the receiver, it is first plugged into the wireless product for automatic pairing, during which the ID information of the wireless product is saved to the corresponding category according to its category, realizing pairing of multiple product categories. After pairing, the receiver is plugged into the USB port device to establish a wireless connection between the USB port device and the wireless product. This effectively improves the effectiveness and security of pairing and avoids the technical problem of signal interference that is prone to occur in traditional wireless pairing processes.
[0124] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A USB wireless connection method, characterized in that, The method includes: Establish a wired connection with wireless products and obtain their identification information; Based on the identification information, an identification confirmation message is sent to the wireless product, the identification confirmation message including a request to obtain the wireless product ID information; Obtaining wireless product ID information and saving the wireless product ID information to a pairing dataset, wherein the pairing dataset is used to store several wireless product ID information, and the data directory of the pairing dataset includes at least product category and product ID information, the step of obtaining wireless product ID information and saving the wireless product ID information to the pairing dataset includes: Obtain wireless product ID information; The wireless product ID information is parsed according to the data directory of the pairing dataset, and wireless product pairing information is generated. The step of parsing the wireless product ID information according to the data directory of the pairing dataset includes: searching whether the wireless product ID information contains accompanying wireless product ID information; if so, parsing the accompanying wireless product ID information; including determining the product type of the accompanying wireless product, and saving the accompanying wireless product ID information to the data directory of the pairing dataset according to the product type of the accompanying wireless product. According to the data directory of the pairing dataset, the wireless product pairing information is saved to the pairing dataset; Feedback signal indicating successful pairing information saving; Disconnecting the wired connection with the wireless product and establishing a wireless communication connection channel with the wireless product based on the wireless product ID information, the steps following the disconnection of the wired connection with the wireless product and the establishment of a wireless communication connection channel with the wireless product based on the wireless product ID information include: Establish a wired connection with a USB port device; The step of traversing the pairing dataset and enabling the wireless communication connection channel with the wireless product based on the wireless product ID information includes: Obtain the multi-mode switching command of the wireless product; Based on the multi-mode switching command, the wireless communication connection channel with the wireless product is switched, wherein the multi-mode switching command is obtained through the multi-mode switching button on the wireless product; based on the wireless product ID information, wireless products of the same product category within a preset communication distance range are retrieved, and a synchronous wireless communication connection channel is established with the wireless products of the same product category.
2. The USB wireless connection method according to claim 1, characterized in that, After the step of saving the wireless product pairing information to the pairing dataset according to the data directory of the pairing dataset, the following steps are included: Erase the wireless product pairing information of the same product category that was previously saved.
3. The USB wireless connection method according to claim 1, characterized in that, Before the step of saving the wireless product ID information to the pairing dataset, the following steps are included: Traverse the pairing dataset and search whether the pairing dataset contains ID data that is the same as the wireless product ID information; If not, the wireless product ID information is saved to the pairing dataset; If so, a signal will be sent indicating that the ID information has been saved.
4. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores one or more programs, which can be executed by one or more processors to implement the steps of a USB wireless connection method as described in any one of claims 1 to 3.
5. A USB wireless connection device, characterized in that, include: The acquisition module is used to establish a wired connection with the wireless product and acquire the identification information of the wireless product. The pairing request module is used to send identification confirmation information to the wireless product based on the identification information, wherein the identification confirmation information includes a request to obtain the wireless product ID information; A pairing module is used to obtain wireless product ID information and save the wireless product ID information to a pairing dataset. The pairing dataset is used to store several wireless product ID information. The data directory of the pairing dataset includes at least product category and product ID information. The step of obtaining wireless product ID information and saving the wireless product ID information to the pairing dataset includes: Obtain wireless product ID information; The wireless product ID information is parsed according to the data directory of the pairing dataset, and wireless product pairing information is generated. The step of parsing the wireless product ID information according to the data directory of the pairing dataset includes: searching whether the wireless product ID information contains accompanying wireless product ID information; if so, parsing the accompanying wireless product ID information; including determining the product type of the accompanying wireless product, and saving the accompanying wireless product ID information to the data directory of the pairing dataset according to the product type of the accompanying wireless product. According to the data directory of the pairing dataset, the wireless product pairing information is saved to the pairing dataset; Feedback signal indicating successful pairing information saving; A communication module is used to disconnect the wired connection with the wireless product and establish a wireless communication connection channel with the wireless product based on the wireless product ID information. Following the steps of disconnecting the wired connection with the wireless product and establishing a wireless communication connection channel with the wireless product based on the wireless product ID information, the module includes: Establish a wired connection with a USB port device; The step of traversing the pairing dataset and enabling the wireless communication connection channel with the wireless product based on the wireless product ID information includes: Obtain the multi-mode switching command of the wireless product; Based on the multi-mode switching command, the wireless communication connection channel with the wireless product is switched, wherein the multi-mode switching command is obtained through the multi-mode switching button on the wireless product; based on the wireless product ID information, wireless products of the same product category within a preset communication distance range are retrieved, and a synchronous wireless communication connection channel is established with the wireless products of the same product category.
6. A terminal device, characterized in that, include: Processor, memory, and communication bus; the memory stores a computer-readable program that can be executed by the processor; The communication bus enables communication between the processor and the memory; When the processor executes the computer-readable program, it implements the steps of the USB wireless connection method as described in any one of claims 1-3.
Citation Information
Patent Citations
A method and system for establishing wireless communication connection
CN112512026A
Receiver and processing method thereof
CN115086939A