Search

CN-122018710-A - Automatic connection switching method and device for wireless keyboard

CN122018710ACN 122018710 ACN122018710 ACN 122018710ACN-122018710-A

Abstract

The invention relates to the technical field of wireless keyboards, in particular to a method and a device for automatically switching connection of a wireless keyboard, wherein the method comprises the following steps: step S1, detecting the power supply state of the wireless keyboard, step S2, judging the use scene of the wireless keyboard, step S3, deciding the connection mode of the wireless keyboard, step S4, judging the use scene regression of the wireless keyboard, step S5, and deciding the return scene. The device comprises a wireless charging receiving module, a state detection module, a timing module, a connection control module, a first wireless communication module and a second wireless communication module. By detecting the wireless charging state, intelligent automatic switching of the connection mode is realized, and the problem that the traditional switching depends on manual work is solved.

Inventors

  • LIN DECHUI
  • DU JIAHAO

Assignees

  • 东莞市佐赫电子科技有限公司

Dates

Publication Date
20260512
Application Date
20260202

Claims (10)

  1. 1. The automatic connection switching method for the wireless keyboard is characterized by comprising the following steps of: Step S1, detecting the power supply state of the wireless keyboard, Taking the wireless charging state of the wireless keyboard as a judging medium of a use scene, detecting whether the keyboard is in a wireless charging power supply state, and outputting a power supply state signal or a power failure state signal; Step S2, judging the use scene of the wireless keyboard, Judging the current use scene according to the power supply state signal output by the step S1, judging the current use scene as a fixed use scene when the step S1 outputs the power supply state signal, and judging the current use scene as a mobile use scene when the step S outputs the power-off signal; step S3, deciding a wireless keyboard connection mode, which comprises the following steps: step S3.1, fixed use scene decision, When the step S2 is judged to be a fixed use scene, the wireless keyboard is controlled to be switched to a wireless connection mode A; Step S3.2, moving the usage scene decision, And when the mobile use scene is judged in the step S2, judging the power-off duration, controlling the wireless keyboard to switch to the wireless connection mode B when the power-off duration is larger than a preset threshold value, and maintaining the wireless connection mode A when the power-off duration is smaller than the preset threshold value.
  2. 2. The method for automatically switching connection of a wireless keyboard according to claim 1, further comprising the step of S4, determining a wireless keyboard usage scenario regression, Continuously monitoring the wireless charging state change of the wireless keyboard, and automatically judging to return to a fixed use scene when the wireless keyboard is in the wireless charging state again.
  3. 3. The method for automatically switching connection of a wireless keyboard according to claim 2, further comprising, step S5, scene return decision, When it is determined that the fixed usage scenario is returned, the fixed usage scenario decision of step S3.1 is automatically performed.
  4. 4. A method for automatically switching connection of a wireless keyboard according to any one of claims 1 to 3, wherein in step S1, the wireless charging power supply state is determined by detecting an input voltage of a wireless charging interface of the wireless keyboard.
  5. 5. The automatic connection switching method of a wireless keyboard according to any one of claims 1 to 3, wherein the wireless connection mode a is a 2.4G wireless connection mode, 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. 6. An automatic connection switching device for a wireless keyboard, for implementing the automatic connection switching method for a wireless keyboard according to any one of claims 1 to 5, comprising: the wireless charging receiving module is arranged at the bottom of the wireless keyboard and is used for receiving electric energy of the wireless charging equipment; the state detection module is arranged in the main control circuit board of the wireless keyboard and is used for detecting the state of the wireless charging receiving module and outputting a power supply state signal or a power failure state signal; the timing module is arranged in the main control circuit board of the wireless keyboard and is used for calculating the power-off duration time of the wireless charging receiving module; The connection control module is arranged in the main control circuit board of the wireless keyboard and is used for controlling the switching of the connection mode of the wireless keyboard according to the output result of the state detection module and the timing result of the timing module; the first wireless communication module is used for realizing communication connection by the wireless keyboard in a wireless connection mode A; The second wireless communication module is used for realizing communication connection by the wireless keyboard in the wireless connection mode B.
  7. 7. The automatic connection switching device of a wireless keyboard of claim 6, wherein the wireless charging receiving module supports one or more of Qi protocol, A4WP protocol, or other wireless charging protocols.
  8. 8. The automatic connection switching device of a wireless keyboard according to claim 6, wherein the first wireless communication module has a 2.4G wireless communication chip to realize a 2.4G wireless connection mode, and the second wireless communication module has a bluetooth chip.
  9. 9. A data processing apparatus, comprising: A memory for storing a computer program; A processor for implementing a method for automatically switching connection of a wireless keyboard according to any one of claims 1 to 6 when executing said computer program.
  10. 10. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements a method for automatically switching connection of a wireless keyboard according to any one of claims 1 to 6.

Description

Automatic connection switching method and device for wireless keyboard Technical Field The invention relates to the technical field of wireless keyboards, in particular to a method and a device for automatically switching connection of a wireless keyboard. Background With the rapid development of wireless communication technology and the increasing demand of mobile office, wireless keyboards as an important component of computer peripheral devices have been widely used in various usage scenarios such as home office, mobile office and multi-device collaborative work. Existing wireless keyboards typically support multiple connection modes, including mainly a 2.4G wireless connection mode and a bluetooth connection mode. The 2.4G wireless connection mode establishes connection with the computer equipment through the special wireless receiver, has the advantages of low transmission delay, high response speed and the like, is suitable for desktop fixed office scenes with high requirements on input precision and response speed, supports wireless connection with various mobile equipment such as mobile phones and tablets, has the characteristics of strong portability, good compatibility and the like, and is suitable for mobile office and multi-equipment switching use scenes. However, existing wireless keyboards often require the user to manually switch between different modes of connection. Specifically, the user needs to switch between different connection modes by means of a physical switch or a combination key, or needs to manually select a corresponding connection device in the system setting. The manual switching mode is complex in operation, increases the operation burden of a user, and easily influences the use experience and office efficiency of the user when frequently switching use scenes. Especially in the scene of alternately using home office and mobile office, the user needs to repeatedly switch between 2.4G connection and Bluetooth connection, and the defect of manual operation is particularly obvious. In recent years, wireless charging technology has been widely used and rapidly developed in the consumer electronics field. Wireless keyboard products supporting wireless charging function also gradually enter the market, and the problem of convenience that the traditional wireless keyboard needs to be charged or replaced by a wired mode is solved. For example, chinese patent CN201620840802.8 discloses a "bluetooth keyboard that charges wirelessly", and this technique has realized the wireless function of charging of keyboard through integrating wireless receiving module that charges in the keyboard inside, has promoted user's convenience. However, this prior art mainly focuses on implementation of a charging function, and does not relate to technical contents of automatically recognizing a usage scenario according to a charging state and intelligently switching a connection mode. On the other hand, in order to solve the problem of multi-mode keyboard connection switching, some multi-mode pairing and switching schemes are proposed in the prior art. For example, chinese patent CN120916271a discloses a "keyboard multimode pairing method", which mainly implements switching between different connection modes through preset combination key operations. Although this approach simplifies the operational flow of connection switching to some extent, it is still inherently dependent on manual triggering and active selection by the user, lacking automatic recognition and intelligent decision making capabilities based on usage scenarios. The user still needs to actively judge and execute the switching operation according to the self use scene, and the real intelligent and noninductive switching cannot be realized. In addition, some scene recognition schemes based on sensor detection are also proposed in the prior art, for example, the movement state of the keyboard is detected through an acceleration sensor, or the distance relation between the keyboard and the device is detected through a proximity sensor. However, these schemes require additional hardware sensor modules, which not only increase the cost and complexity of the product, but also the detection accuracy and reliability of the sensor are susceptible to environmental factors, and there is a limit in practical application. In summary, the prior art has the following technical problems that the traditional wireless keyboard needs to manually switch the connection mode, is complex in operation and affects user experience, the traditional wireless charging keyboard only focuses on realization of a charging function, and does not take a charging state as a judging basis for scene recognition and intelligent switching, the traditional multimode switching technology depends on manual operation of a user and lacks automatic and intelligent scene recognition capability, and the scheme based on sensor detection increases hardware cost and system complexity. There