Automatic connection switching method and device for wireless keyboard
By automatically switching the wireless keyboard's connection mode based on the detection of wireless charging status, the problem of cumbersome manual switching in existing technologies is solved, achieving seamless intelligent switching and improving user experience and system stability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- DONGGUAN ZOHE ELECTRONIC TECHNOLOGY CO LTD
- Filing Date
- 2026-02-02
- Publication Date
- 2026-05-12
AI Technical Summary
Current wireless keyboards require manual operation to switch between different connection modes, which is cumbersome and affects the user experience. Furthermore, existing technologies fail to effectively utilize the charging status for intelligent switching, increasing hardware costs and complexity.
By detecting the wireless charging status, the system uses power supply and power failure signals to determine the usage scenario and automatically switches the connection mode, including 2.4G wireless connection and Bluetooth connection, to achieve seamless switching using existing wireless charging interfaces and communication modules.
It enables intelligent automatic switching of wireless keyboard connection modes, improving user convenience and operating experience, reducing hardware complexity and cost, and ensuring the accuracy and stability of switching.
Smart Images

Figure CN122018710A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of wireless keyboard technology, specifically to a method and apparatus for automatically switching the connection of a wireless keyboard. Background Technology
[0002] With the rapid development of wireless communication technology and the increasing demand for mobile office solutions, wireless keyboards, as an important component of computer peripherals, have been widely used in various scenarios such as home office, mobile office, and multi-device collaborative work. Existing wireless keyboards typically support multiple connection modes, primarily including 2.4G wireless connection mode and Bluetooth connection mode. The 2.4G wireless connection mode establishes a connection with the computer device through a dedicated wireless receiver, offering advantages such as low transmission latency and fast response speed, making it suitable for fixed desktop office scenarios where high input accuracy and response speed are required. The Bluetooth connection mode supports wireless connections with various mobile devices such as smartphones and tablets, featuring high portability and good compatibility, making it suitable for mobile office and multi-device switching scenarios.
[0003] However, existing wireless keyboards typically require users to manually switch between different connection modes. Specifically, users need to use physical switches or key combinations to switch between modes, or manually select the corresponding device in system settings. This manual switching method is not only cumbersome and increases the user's workload, but it can also negatively impact user experience and work efficiency when frequently switching between usage scenarios. This is especially true in scenarios where users alternate between home and mobile work, where the drawbacks of manual operation are particularly pronounced when repeatedly switching between 2.4G and Bluetooth connections.
[0004] In recent years, wireless charging technology has been widely applied and rapidly developed in the consumer electronics field. Wireless keyboards supporting wireless charging have also gradually entered the market, solving the inconvenience problem of traditional wireless keyboards requiring wired charging or battery replacement. For example, Chinese patent CN201620840802.8 discloses a "Bluetooth keyboard with wireless charging," which integrates a wireless charging receiver module inside the keyboard to achieve wireless charging functionality, improving user convenience. However, this existing technology mainly focuses on the implementation of the charging function and does not involve the technical content of automatically identifying the usage scenario and intelligently switching the connection mode based on the charging status.
[0005] On the other hand, to address the issue of switching between multi-mode keyboard connections, existing technologies have proposed several multi-mode pairing and switching schemes. For example, Chinese patent CN120916271A discloses a "keyboard multi-mode pairing method," which primarily uses preset key combinations to switch between different connection modes. While this scheme simplifies the connection switching process to some extent, it still relies on manual triggering and active selection by the user, lacking automatic recognition and intelligent decision-making capabilities based on usage scenarios. Users still need to actively judge and execute the switching operation according to their own usage scenarios, failing to achieve truly intelligent and seamless switching.
[0006] In addition, existing technologies have proposed some scene recognition schemes based on sensor detection, such as detecting the movement of the keyboard using an accelerometer or detecting the distance between the keyboard and the device using a proximity sensor. However, these schemes require additional hardware sensor modules, which not only increases the cost and complexity of the product, but also makes the detection accuracy and reliability of the sensors susceptible to environmental factors, thus limiting their practical application.
[0007] In summary, the existing technologies suffer from the following technical problems: First, traditional wireless keyboards require manual switching of connection modes, which is cumbersome and negatively impacts user experience; second, existing wireless charging keyboards only focus on the charging function and do not use charging status as a basis for scene recognition and intelligent switching; third, existing multi-mode switching technologies rely on manual user operation and lack automated and intelligent scene recognition capabilities; fourth, sensor-based detection solutions increase hardware costs and system complexity. Therefore, there is an urgent need for a method and device that can automatically identify usage scenarios and intelligently switch connection modes based on wireless charging status to solve the problems existing in the current technologies and improve user convenience and experience. Summary of the Invention
[0008] To address the aforementioned issues, a method and apparatus for automatically switching the connection of a wireless keyboard are provided. The invention achieves intelligent and automatic switching of the connection mode by detecting the wireless charging status, thus solving the problem of traditional switching relying on manual intervention.
[0009] To address the problems of existing technologies, this invention provides a method for automatic connection switching of a wireless keyboard, characterized by comprising the following steps: Step S1: Detect the power supply status of the wireless keyboard. The wireless charging status of the wireless keyboard is used as a medium to determine the usage scenario. The system detects whether the keyboard is in a wireless charging power supply state and outputs a power supply status signal or a power off status signal. Step S2: Determine the usage scenario of the wireless keyboard. The current usage scenario is determined based on the power supply status signal output in step S1; if the output of step S1 is a power supply status signal, the current usage scenario is determined to be a fixed usage scenario; if the output of step S1 is a power outage signal, the current usage scenario is determined to be a mobile usage scenario. Step S3, Decision on wireless keyboard connection method, including: Step S3.1: Fixed usage scenario decision-making. When it is determined in step S2 that it is a fixed usage scenario, control the wireless keyboard to switch to wireless connection mode A; Step S3.2, Mobile usage scenario decision, When the mobile usage scenario is determined in step S2, the power outage duration is judged. If the power outage duration is greater than a preset threshold, the wireless keyboard is controlled to switch to wireless connection mode B. If the power outage duration is less than the preset threshold, the wireless connection mode A is maintained.
[0010] In some examples of the present invention, step S4, wireless keyboard usage scenario regression determination, is also included. It continuously monitors changes in the wireless charging status of the wireless keyboard, and automatically determines to return to the fixed usage scenario when the wireless keyboard is detected to be in wireless charging status again.
[0011] In some examples of the present invention, step S5, scenario return decision, is also included. When it is determined that the fixed usage scenario should be returned, the fixed usage scenario decision in step S3.1 is executed automatically.
[0012] In some examples of the present invention, in step S1, the wireless charging power supply status is determined by detecting the input voltage of the wireless charging interface of the wireless keyboard.
[0013] In some examples of the present invention, the wireless connection mode A is a 2.4G wireless connection mode and the wireless connection mode B is a Bluetooth wireless connection mode; or, the wireless connection mode A is a Bluetooth wireless connection mode and the wireless connection mode B is a 2.4G wireless connection mode.
[0014] An automatic connection switching device for a wireless keyboard, used to implement an automatic connection switching method for a wireless keyboard, comprising: A wireless charging receiver module, built into the bottom of the wireless keyboard, is used to receive power from the wireless charging device. The status detection module, built into the main control circuit board of the wireless keyboard, is used to detect the status of the wireless charging receiver module and output a power supply status signal or a power off status signal. The timing module, built into the main control circuit board of the wireless keyboard, is used to calculate the power-off duration of the wireless charging receiver module. A connection control module, built into the main control circuit board of the wireless keyboard, is used to control the switching of the wireless keyboard's connection mode based on the output of the status detection module and the timing result of the timing module. The first wireless communication module is used for the wireless keyboard to establish a communication connection in wireless connection mode A. The second wireless communication module is used for the wireless keyboard to establish a communication connection in wireless connection mode B.
[0015] In some examples of the present invention, the wireless charging receiver module supports one or more of the Qi protocol, A4WP protocol, or other wireless charging protocols.
[0016] In some examples of the present invention, the first wireless communication module has a 2.4G wireless communication chip to realize a 2.4G wireless connection mode; the second wireless communication module has a Bluetooth chip that supports the Bluetooth 4.2 protocol.
[0017] A data processing device, comprising: Memory, used to store computer programs; A processor, configured to implement, when executing the computer program, a method for automatically switching the connection of a wireless keyboard as described in any one of claims 1 to 6.
[0018] A computer-readable storage medium storing a computer program that, when executed by a processor, implements a method for automatically switching connections of a wireless keyboard as described in any one of claims 1 to 6.
[0019] The advantages of this invention compared to the prior art are: (1) Implement intelligent automatic switching of connection mode This invention innovatively uses wireless charging status as a medium for determining usage scenarios. By detecting power supply and power failure, it automatically identifies the usage scenario and intelligently switches the connection mode. When powered on, it switches to 2.4G mode to meet low latency requirements; when powered off and timed out, it switches to Bluetooth mode to adapt to mobile needs. The entire process requires no manual operation from the user; simply picking up or putting down the keyboard completes the switch, eliminating the cumbersome manual switching of traditional keyboards and truly achieving intelligent switching, significantly improving ease of use and user experience.
[0020] (2) Accurately identify usage scenarios and make refined decisions This invention accurately identifies usage scenarios through a binary judgment of power supply and power outage states, and introduces a time threshold mechanism to finely differentiate mobile scenarios. If the power outage duration is short, the current state is maintained; if the power outage duration is long, a switch is executed. This refined decision-making effectively avoids erroneous switching caused by temporary location adjustments, ensuring the accuracy and stability of the switch, improving the system's intelligence level and its ability to recognize user intent, and making connection switching more in line with actual user needs.
[0021] (3) Provide a seamless user experience This invention provides users with an unparalleled, seamless user experience through a fully automated detection and switching mechanism. Users do not need to pay attention to the connection status or perform any switching operations; they simply place or pick up the keyboard naturally, and the system automatically identifies and switches. When returning to the designated location, the system immediately switches back to 2.4G mode. The entire process is smooth and natural, and users are virtually unaware of the switching, allowing them to focus on their work and significantly improving product usability and user satisfaction.
[0022] (4) The technology is simple to implement and easy to promote. This invention utilizes existing wireless charging technology as the judgment medium, eliminating the need for additional complex sensors or detection devices; accurate judgment can be achieved solely through voltage detection. This approach simplifies hardware design and system architecture to the greatest extent possible while ensuring functional integrity, reducing R&D costs and manufacturing complexity. Furthermore, the method has clear logic and a well-defined technical route, making it easy to integrate and modify existing products, demonstrating good feasibility, and can also be applied to other input devices such as mice and touchpads. Attached Figure Description
[0023] Figure 1 This is a flowchart of an automatic connection switching method for a wireless keyboard according to the present invention. Detailed Implementation
[0024] To further understand the features, technical means, and specific objectives and functions achieved by the present invention, the present invention will be described in further detail below with reference to the accompanying drawings and specific embodiments.
[0025] A method for automatically switching connections of a wireless keyboard, characterized by comprising the following steps: Step S1: Detect the power supply status of the wireless keyboard. The wireless charging status of the wireless keyboard is used as a medium to determine the usage scenario. The system detects whether the keyboard is in a wireless charging power supply state and outputs a power supply status signal or a power off status signal. Step S2: Determine the usage scenario of the wireless keyboard. The current usage scenario is determined based on the power supply status signal output in step S1; if the output of step S1 is a power supply status signal, the current usage scenario is determined to be a fixed usage scenario; if the output of step S1 is a power outage signal, the current usage scenario is determined to be a mobile usage scenario. Step S3, Decision on wireless keyboard connection method, including: Step S3.1: Fixed usage scenario decision-making. When it is determined in step S2 that it is a fixed usage scenario, control the wireless keyboard to switch to wireless connection mode A; Step S3.2, Mobile usage scenario decision, When the mobile usage scenario is determined in step S2, the power outage duration is judged. If the power outage duration is greater than a preset threshold, the wireless keyboard is controlled to switch to wireless connection mode B. If the power outage duration is less than the preset threshold, the wireless connection mode A is maintained.
[0026] In some examples of the present invention, step S4, wireless keyboard usage scenario regression determination, is also included. It continuously monitors changes in the wireless charging status of the wireless keyboard, and automatically determines to return to the fixed usage scenario when the wireless keyboard is detected to be in wireless charging status again.
[0027] In some examples of the present invention, step S5, scenario return decision, is also included. When it is determined that the fixed usage scenario should be returned, the fixed usage scenario decision in step S3.1 is executed automatically.
[0028] In some examples of the present invention, in step S1, the wireless charging power supply status is determined by detecting the input voltage of the wireless charging interface of the wireless keyboard.
[0029] In some examples of the present invention, the wireless connection mode A is a 2.4G wireless connection mode and the wireless connection mode B is a Bluetooth wireless connection mode; or, the wireless connection mode A is a Bluetooth wireless connection mode and the wireless connection mode B is a 2.4G wireless connection mode.
[0030] An automatic connection switching device for a wireless keyboard, used to implement an automatic connection switching method for a wireless keyboard, comprising: A wireless charging receiver module, built into the bottom of the wireless keyboard, is used to receive power from the wireless charging device. The status detection module, built into the main control circuit board of the wireless keyboard, is used to detect the status of the wireless charging receiver module and output a power supply status signal or a power off status signal. The timing module, built into the main control circuit board of the wireless keyboard, is used to calculate the power-off duration of the wireless charging receiver module. A connection control module, built into the main control circuit board of the wireless keyboard, is used to control the switching of the wireless keyboard's connection mode based on the output of the status detection module and the timing result of the timing module. The first wireless communication module is used for the wireless keyboard to establish a communication connection in wireless connection mode A. The second wireless communication module is used for the wireless keyboard to establish a communication connection in wireless connection mode B.
[0031] In some examples of the present invention, the wireless charging receiver module supports one or more of the Qi protocol, A4WP protocol, or other wireless charging protocols.
[0032] In some examples of the present invention, the first wireless communication module has a 2.4G wireless communication chip to realize a 2.4G wireless connection mode; the second wireless communication module has a Bluetooth chip that supports the Bluetooth 4.2 protocol.
[0033] In some examples of this invention, the state detection module includes a piezoelectric sensor and a signal processing unit to detect the input voltage state of the wireless charging receiver module in real time. The connection control module uses a microcontroller (such as an STM32F03 main control chip) as the core control unit, and controls the connection mode switching of the wireless keyboard based on the voltage state detection results and timing.
[0034] like Figure 1 As shown, the system first detects the keyboard's input voltage status using a voltage sensor, serving as the initial basis for determining the usage scenario. When the detected input voltage is greater than a preset power supply threshold (e.g., 3.3V), the system determines that the keyboard is in wireless charging power supply mode, identifying it as a fixed usage scenario; when the input voltage is less than the power supply threshold, it is determined to be in a power-off state, identifying it as a mobile usage scenario.
[0035] When the usage scenario is determined to be fixed, the connection control module will immediately send a start command to the 2.4G communication module and a stop command to the Bluetooth communication module, controlling the keyboard to switch to 2.4G wireless connection mode. This mode establishes a low-latency connection with the computer device through a dedicated wireless receiver, suitable for the accurate input needs in desktop office scenarios.
[0036] When a mobile usage scenario is identified, the system activates the timing module to monitor the power outage duration in real time. A preset time threshold (default 5 seconds) is set to differentiate the user's intended use. If the power outage duration is less than this preset threshold, the system identifies it as a short-term mobile scenario (such as a user temporarily adjusting keyboard position), and the connection control module maintains the current connection state without switching modes, thus implementing an anti-accidental touch protection function.
[0037] If the power outage lasts for a duration equal to or exceeding a preset threshold, the system recognizes it as a prolonged mobile scenario (such as a user carrying the keyboard outside or switching devices). The connection control module then sends a start command to the Bluetooth communication module and a stop command to the 2.4G communication module, controlling the keyboard to switch to Bluetooth connection mode. This mode supports Bluetooth 4.0 and later versions of the protocol, enabling wireless connections with mobile devices such as smartphones and tablets.
[0038] When the user places the keyboard back on the wireless charging device, the system detects the power supply status again, automatically determines that it has returned to the fixed usage scenario, and repeats the fixed scenario processing steps to control the keyboard to switch back to 2.4G wireless connection mode. The entire process requires no manual operation from the user, achieving intelligent and seamless switching based on the usage scenario, greatly improving the user's convenience and experience.
[0039] A data processing device, comprising: Memory, used to store computer programs; A processor, configured to implement, when executing the computer program, a method for automatically switching the connection of a wireless keyboard as described in any one of claims 1 to 6.
[0040] A computer-readable storage medium storing a computer program that, when executed by a processor, implements a method for automatically switching connections of a wireless keyboard as described in any one of claims 1 to 6.
[0041] The above embodiments only illustrate one or more implementations of the present invention, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these all fall within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the appended claims.
Claims
1. A method for automatically switching connections of a wireless keyboard, characterized in that, Includes the following steps: Step S1: Detect the power supply status of the wireless keyboard. The wireless charging status of the wireless keyboard is used as a medium to determine the usage scenario. The system detects whether the keyboard is in a wireless charging power supply state and outputs a power supply status signal or a power off status signal. Step S2: Determine the usage scenario of the wireless keyboard. The current usage scenario is determined based on the power supply status signal output in step S1; if the output of step S1 is a power supply status signal, the current usage scenario is determined to be a fixed usage scenario; if the output of step S1 is a power outage signal, the current usage scenario is determined to be a mobile usage scenario. Step S3, Decision on wireless keyboard connection method, including: Step S3.1: Fixed usage scenario decision-making. When it is determined in step S2 that it is a fixed usage scenario, control the wireless keyboard to switch to wireless connection mode A; Step S3.2, Mobile usage scenario decision, When the mobile usage scenario is determined in step S2, the power outage duration is judged. If the power outage duration is greater than a preset threshold, the wireless keyboard is controlled to switch to wireless connection mode B. If the power outage duration is less than the preset threshold, the wireless connection mode A is maintained.
2. The automatic connection switching method for a wireless keyboard according to claim 1, characterized in that, It also includes step S4, regression analysis of wireless keyboard usage scenarios. It continuously monitors changes in the wireless charging status of the wireless keyboard, and automatically determines to return to the fixed usage scenario when the wireless keyboard is detected to be in wireless charging status again.
3. The automatic connection switching method for a wireless keyboard according to claim 2, characterized in that, It also includes step S5, scenario return decision, When it is determined that the fixed usage scenario should be returned, the fixed usage scenario decision in step S3.1 is executed automatically.
4. A method for automatic connection switching of a wireless keyboard according to any one of claims 1-3, characterized in that, In step S1, the wireless charging power supply status is determined by detecting the input voltage of the wireless charging interface of the wireless keyboard.
5. A method for automatic connection switching of a wireless keyboard according to any one of claims 1-3, characterized in that, The wireless connection mode A is a 2.4G wireless connection mode, and the wireless connection mode B is a Bluetooth wireless connection mode; or, the wireless connection mode A is a Bluetooth wireless connection mode, and the wireless connection mode B is a 2.4G wireless connection mode.
6. A wireless keyboard connection automatic switching device, characterized in that, A method for automatically switching connections of a wireless keyboard as described in any one of claims 1-5, comprising: A wireless charging receiver module, built into the bottom of the wireless keyboard, is used to receive power from the wireless charging device. The status detection module, built into the main control circuit board of the wireless keyboard, is used to detect the status of the wireless charging receiver module and output a power supply status signal or a power off status signal. The timing module, built into the main control circuit board of the wireless keyboard, is used to calculate the power-off duration of the wireless charging receiver module. A connection control module, built into the main control circuit board of the wireless keyboard, is used to control the switching of the wireless keyboard's connection mode based on the output of the status detection module and the timing result of the timing module. The first wireless communication module is used for the wireless keyboard to establish a communication connection in wireless connection mode A. The second wireless communication module is used for the wireless keyboard to establish a communication connection in wireless connection mode B.
7. The automatic connection switching device for a wireless keyboard according to claim 6, characterized in that, The wireless charging receiver module supports one or more of the Qi protocol, A4WP protocol, or other wireless charging protocols.
8. The automatic connection switching device for a wireless keyboard according to claim 6, characterized in that, The first wireless communication module has a 2.4G wireless communication chip to achieve a 2.4G wireless connection mode; the second wireless communication module has a Bluetooth chip.
9. A data processing device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement, when executing the computer program, a method for automatically switching the connection of a wireless keyboard as described in any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements a method for automatically switching the connection of a wireless keyboard as described in any one of claims 1 to 6.