Bluetooth keyboard linking method and device and Bluetooth keyboard

By obtaining the working status and power of the Bluetooth keyboard, and performing detection links and power consumption calculations, the problems of complex links and high power consumption of traditional Bluetooth keyboards are solved, and automatic links and energy consumption savings are achieved.

CN119883008AActive Publication Date: 2025-04-25JING MOLD ELECTRONICS TECHSHENZHEN
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411348508.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2025-04-25
Estimated Expiration
2044-09-26

AI Technical Summary

Technical Problem

Traditional Bluetooth keyboard linking methods are complex and increase the power consumption of Bluetooth links, affecting automatic linking and convenient operation.

Method used

By obtaining the working status and remaining power of the Bluetooth keyboard, detecting links, searching operations, and calculating the power consumption rate. If the threshold is exceeded, a command to turn off the Bluetooth module is sent to achieve automatic linking and energy saving.

Benefits of technology

It simplifies the link operation between the Bluetooth keyboard and the device, reduces the power consumption of Bluetooth links, and improves the automatic connection efficiency and user experience of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119883008A_ABST
    Figure CN119883008A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of wireless communication, and discloses a Bluetooth keyboard linking method and device and a Bluetooth keyboard. The method comprises the following steps: acquiring the working state and the residual electric quantity of the Bluetooth keyboard in the working process of carrying out Bluetooth linking on the Bluetooth keyboard; carrying out link detection operation according to the working state to obtain a link condition; performing a search operation according to the link condition to obtain a link result; according to the link result and the residual electric quantity, carrying out electric quantity consumption rate calculation operation to obtain an electric quantity consumption rate; and performing threshold comparison and judgment operation according to the power consumption rate to obtain a keyboard closing instruction, and sending the keyboard closing instruction to the Bluetooth keyboard, so that the Bluetooth keyboard closes a Bluetooth module of the Bluetooth keyboard after receiving the keyboard closing instruction. According to the invention, the link operation of the Bluetooth keyboard and the equipment can be simplified, and the power consumption of Bluetooth link can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of wireless communication technology, and in particular to a linking method and device for a Bluetooth keyboard, and a Bluetooth keyboard. Background Art

[0002] At present, with the daily popularization of electronic devices, there are more and more external interfaces based on wireless technology. Bluetooth interface is a common interface widely used by electronic devices in recent years, and the release of Bluetooth 5.0 makes Bluetooth technology more and more mature. Among them, the main difference between Bluetooth technology and wireless WIFI is that WIFI technology can accommodate 128 user-end devices at the same time per square kilometer; peripheral input and operation devices such as Bluetooth mouse, Bluetooth keyboard, Bluetooth headset, Bluetooth TV remote control based on Bluetooth technology have become increasingly widespread, and Bluetooth keyboards are not popular due to cost and power consumption.

[0003] Because the traditional Bluetooth keyboard connection uses a one-button start operation to enter the "exploration mode" or "discoverable mode", and constantly performs environmental identification, constantly identifies whether there are preset devices around, and constantly scans whether there are users operating them, which is not conducive to the automatic connection and convenient operation of the Bluetooth keyboard, and also increases the power consumption of the Bluetooth keyboard connection.

[0004] The above Bluetooth linking method makes the linking operation between the Bluetooth keyboard and the device complicated and increases the power consumption of the Bluetooth link. Summary of the invention

[0005] The present invention provides a Bluetooth keyboard linking method, a device and a Bluetooth keyboard, so as to simplify the linking operation between the Bluetooth keyboard and a device and reduce the power consumption of the Bluetooth link.

[0006] In a first aspect, in order to solve the above technical problem, the present invention provides a method for connecting a Bluetooth keyboard, comprising: During the working process of the Bluetooth keyboard performing the Bluetooth link, obtaining the working status and remaining power of the Bluetooth keyboard; According to the working status, a link detection operation is performed to obtain a link status; According to the link situation, a search operation is performed to obtain a link result; Performing a power consumption rate calculation operation according to the linking result and the remaining power to obtain a power consumption rate; A threshold comparison and judgment operation is performed according to the power consumption rate to obtain a keyboard shutdown instruction, and the keyboard shutdown instruction is sent to the Bluetooth keyboard, so that the Bluetooth keyboard shuts down the Bluetooth module of the Bluetooth keyboard after receiving the keyboard shutdown instruction.

[0007] As an optional implementation manner, performing a link detection operation according to the working state to obtain a link status includes: When the condition that the Bluetooth keyboard is in a working state is met, the working state is determined to be the Bluetooth keyboard on state, and a link detection operation is performed to obtain the link status, wherein the link status includes linked and unlinked.

[0008] As an optional implementation manner, the start state is timer start or manual start, wherein the timer start includes the timer preset time being a preset time period.

[0009] As an optional implementation manner, performing a search operation according to the link situation to obtain a link result includes: If the link status is a linked status, a linked result is obtained; If the link status is an unlinked status, a search operation is performed to obtain link results, wherein the link results include linked results and unlinked results.

[0010] As an optional implementation manner, after performing a search operation according to the link situation and obtaining a link result, the method further includes: According to the unlinked result, a timed detection operation is performed to obtain a stop detection instruction, wherein the stop detection instruction includes a link success instruction and an instruction exceeding a set detection times threshold.

[0011] As an optional implementation manner, performing a power consumption rate calculation operation according to the link result and the remaining power to obtain the power consumption rate includes: The power consumption rate is calculated by the following formula: , in, is the power consumption rate, For the The remaining power of each detection point, For the The remaining power of each detection point, is the maximum detection point, For the first point.

[0012] As an optional implementation manner, the performing a threshold comparison and judgment operation according to the power consumption rate to obtain a keyboard shutdown instruction, and sending the keyboard shutdown instruction to the Bluetooth keyboard, so that the Bluetooth keyboard shuts down the Bluetooth module of the Bluetooth keyboard after receiving the keyboard shutdown instruction, includes: According to the power consumption rate and the preset power consumption rate threshold, a threshold comparison and judgment operation is performed to obtain a keyboard closing instruction, wherein the keyboard closing instruction includes the communication address of the Bluetooth keyboard; The keyboard closing instruction is sent to the Bluetooth keyboard according to the communication address, so that the Bluetooth keyboard turns off the Bluetooth module of the Bluetooth keyboard after receiving the keyboard closing instruction.

[0013] As an optional implementation, the method further includes: When the number of detection points reaches the preset maximum number of detection times, the detection is stopped and the timing is started. After the preset waiting time, the detection mode is turned on again.

[0014] In a second aspect, the present invention provides a linking device for a Bluetooth keyboard, comprising: An information acquisition module, used to acquire the working status and remaining power of the Bluetooth keyboard during the working process of the Bluetooth keyboard performing the Bluetooth link; A link detection module, used to detect the link operation according to the working state to obtain the link status; A link result judgment module, used to perform a search operation according to the link situation to obtain a link result; A power calculation module, configured to perform a power consumption rate calculation operation according to the link result and the remaining power to obtain a power consumption rate; The shutdown device module is used to perform a threshold comparison and judgment operation according to the power consumption rate to obtain a keyboard shutdown instruction, and send the keyboard shutdown instruction to the Bluetooth keyboard so that the Bluetooth keyboard shuts down the Bluetooth module of the Bluetooth keyboard after receiving the keyboard shutdown instruction.

[0015] In a third aspect, the present invention provides a Bluetooth keyboard for communicating with the linking device of the Bluetooth keyboard as described above, and receiving keyboard opening instructions and keyboard closing instructions.

[0016] In a fourth aspect, the present invention provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the Bluetooth keyboard connection method as described above.

[0017] Compared with the prior art, the present invention has the following beneficial effects: The present invention provides a linking method for a Bluetooth keyboard, comprising: obtaining the working state and remaining power of the Bluetooth keyboard during the working process of the Bluetooth keyboard performing Bluetooth linking; performing a link detection operation according to the working state to obtain a link status; performing a search operation according to the link status to obtain a link result; performing a power consumption rate calculation operation according to the link result and the remaining power to obtain a power consumption rate; performing a threshold comparison and judgment operation according to the power consumption rate to obtain a keyboard closing instruction, and sending the keyboard closing instruction to the Bluetooth keyboard, so that the Bluetooth keyboard closes the Bluetooth module of the Bluetooth keyboard after receiving the keyboard closing instruction.

[0018] The linking method of the Bluetooth keyboard of the present invention realizes a mechanism for automatically connecting to devices such as mobile phones, tablet computers, and laptop computers; a sleep and wake-up mechanism of the Bluetooth module is set, which greatly saves the energy consumption of the Bluetooth module. This linking method of the Bluetooth keyboard not only automatically establishes communication with the mobile phone, tablet computer or laptop computer through the Bluetooth broadcast and sleep and wake-up mechanism, and the Bluetooth connection mode can realize automatic connection, but also allows the Bluetooth keyboard to automatically connect to the Bluetooth keyboard of the mobile phone, tablet computer or laptop computer, and the Bluetooth keyboard is easy to use. The linking method of the present invention is easy to operate and time-saving. At the same time, it also has the advantages of fast key response and less delay, and when the Bluetooth keyboard enters the sleep mode, the Bluetooth module is turned off to greatly reduce energy consumption, and the automatic sleep of the Bluetooth keyboard also avoids the waste of electricity when not in use. Thereby, the linking operation of the Bluetooth keyboard and the device is simplified and the power consumption of the Bluetooth link is greatly reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a flowchart of a method for connecting a Bluetooth keyboard provided by an embodiment of the present invention; Figure 2 It is a structural schematic diagram of a linking device for a Bluetooth keyboard provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0020] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0021] It should be noted that with the daily popularization of electronic devices, there are more and more external interfaces based on wireless technology. Bluetooth interface is a common interface widely used by electronic devices in recent years, and the release of Bluetooth 5.0 has made Bluetooth technology more and more mature. Among them, the main difference between Bluetooth technology and wireless WIFI is that WIFI technology can accommodate 128 user-end devices at the same time per square kilometer; peripheral input and operation devices such as Bluetooth mouse, Bluetooth keyboard, Bluetooth headset, Bluetooth TV remote control based on Bluetooth technology have become increasingly widespread, and the cost and power consumption of Bluetooth keyboards are not popular. Because the traditional Bluetooth keyboard link uses a one-key start operation to enter the "exploration mode" or "discoverable mode", and constantly identifies the environment, constantly identifies whether there are preset devices around, and constantly scans whether there are users operating them, which is not conducive to the automatic connection and convenient operation of the Bluetooth keyboard, and also increases the power consumption of the Bluetooth keyboard link. The above Bluetooth connection method makes the connection operation between the Bluetooth keyboard and the device complicated and increases the power consumption of the Bluetooth connection.

[0022] For the above problems, refer to Figure 1 The first embodiment of the present invention provides a method for connecting a Bluetooth keyboard, comprising the following steps: S11, obtaining the working state and remaining power of the Bluetooth keyboard during the working process of the Bluetooth keyboard performing the Bluetooth link; S12, performing a link detection operation according to the working state to obtain a link status; S13, performing a search operation according to the link situation to obtain a link result; S14, performing a power consumption rate calculation operation according to the link result and the remaining power to obtain a power consumption rate; S15, performing a threshold comparison and judgment operation according to the power consumption rate to obtain a keyboard shutdown instruction, and sending the keyboard shutdown instruction to the Bluetooth keyboard, so that the Bluetooth keyboard turns off the Bluetooth module of the Bluetooth keyboard after receiving the keyboard shutdown instruction.

[0023] In step S11, during the Bluetooth link operation of the Bluetooth keyboard, the working state and remaining power of the Bluetooth keyboard are obtained.

[0024] In the above embodiment, during the Bluetooth connection of the Bluetooth keyboard, it is first necessary to ensure that the Bluetooth keyboard is properly turned on and is in working condition. At this time, the working status and remaining power of the keyboard can be retrieved in detail through a specific Bluetooth protocol. The keyboard transmits its operating status (for example, whether it is turned on normally or turned off due to a fault) and the remaining battery power information to the paired device through the Bluetooth protocol. This enables the user to obtain the status information of the keyboard in real time and continuously monitor its battery power. The system will effectively manage based on this information to ensure that the Bluetooth keyboard is always in working condition and has sufficient power during the Bluetooth link process, thereby optimizing the user experience and calculating the remaining power obtained to prevent operation interruptions caused by insufficient power or other problems, and on this basis, provide hardware guarantees for subsequent Bluetooth links, and provide an effective data basis for subsequent calculations of power consumption rates.

[0025] It should be specifically noted that in the process of turning on the working state of the Bluetooth keyboard, two main methods can be used: button start and manual start. The button start method is preferably equipped with a timer, and the timer is set to automatically start the Bluetooth module after a certain time period from the time the keyboard is turned on, so as to achieve precise control and automated operation. The timer can be set to a specific time interval to ensure that the Bluetooth module is activated within a predetermined time, thereby optimizing the startup process. On the other hand, the manual start method is preferably operated before or when the keyboard is turned on. The user manually starts the Bluetooth module during the startup phase and directly completes the connection with the electronic device. This method allows the user to handle the connection requirements in real time during the device startup process, and realizes more direct and flexible operation. By combining the two startup methods, the startup efficiency and connection stability of the Bluetooth keyboard can be improved, ensuring that the device can achieve efficient and reliable operation in different usage scenarios.

[0026] It should also be specified that when the Bluetooth keyboard enters the working state and is turned on, it will automatically search for Bluetooth devices to identify connectable electronic devices. The search process gives priority to establishing a connection with a mobile phone, followed by a tablet or laptop. The electronic device should be a unit with Bluetooth function that can establish a connection through the Bluetooth protocol to achieve data communication. This automatic search mechanism ensures that the Bluetooth keyboard can quickly and efficiently connect to the preferred device, thereby optimizing the user's operating experience and device compatibility.

[0027] It should be specifically noted that in order to improve the convenience and operating efficiency of the Bluetooth keyboard, a special start button can be designed and installed to quickly start the Bluetooth module with one button. The start button can be directly connected to the Bluetooth module, thereby simplifying the process of enabling the Bluetooth function. The installation options of the button are flexible and diverse, and can be integrated in the driver or related application (APP) on the computer side, or in the application software on the mobile phone side. By operating the relevant APP or driver on these platforms, users can obtain the usage status of the keyboard in real time and deal with the connection problems of the Bluetooth module in a timely manner. This design does not require the start button to be physically installed on the Bluetooth module, but is operated through the software interface, thereby providing users with a more convenient management method. This implementation method effectively reduces the complexity of hardware modification, while improving the intelligence of equipment operation and user experience, making the management and troubleshooting of Bluetooth modules more efficient.

[0028] It is also necessary to specify that the Bluetooth keyboard is designed with user key selection function and reset keyboard working mode to optimize the connection process with various electronic devices. The function of resetting the keyboard mainly involves turning on the Bluetooth module and identifying the surrounding connectable electronic devices through the automatic search function. During this process, the user can manually select the target device, such as a mobile phone, tablet or laptop, and complete the connection establishment according to the Bluetooth protocol by entering the address code of the device. This not only ensures the effective pairing of the keyboard with the selected device, but also enables the user to adjust its settings through the Bluetooth keyboard. The steps of the reset operation include enabling the Bluetooth function, performing a search and selecting the target device, and then performing the necessary pairing and connection. Once the connection is successfully established, the user can modify its settings through the Bluetooth keyboard, or use the connected mobile phone, tablet or laptop to manage the keyboard's input method and configuration. This flexible management function allows users to customize the keyboard's operation method according to specific needs, thereby improving input efficiency and convenience of operation. The design concept of combining reset and manual selection functions is intended to provide users with a more accurate and efficient connection process, ensuring that the Bluetooth keyboard can smoothly interact with various Bluetooth-enabled devices to meet input needs in different scenarios. Through this automatic and manual selection mechanism, the Bluetooth keyboard not only simplifies the device pairing process, but also enhances the user's operating experience and device compatibility.

[0029] In step S12, a link detection operation is performed according to the working status to obtain a link status.

[0030] In the above embodiment, the process first requires ensuring that the Bluetooth keyboard is turned on and that the keyboard is within a normal working distance from the device to be connected. Subsequently, the system will perform a series of operations to complete the connection, including scanning the surrounding Bluetooth devices, initiating a connection request to the target device, receiving and parsing the response of the target device, and confirming the connection status. The system will continue to monitor the state changes during the connection process and evaluate the stability and effectiveness of the connection in real time. If the connection is successful, the system will display the successful connection status and enable the data exchange function; if the connection fails, the system will generate a detailed error prompt, feedback the unconnected result, and may provide further solution suggestions. The system will also record a detailed log of the connection attempt for subsequent troubleshooting and performance optimization.

[0031] It should be specifically explained that the linking method between the Bluetooth keyboard and the electronic device is automatic linking, such as a Bluetooth watch and its related electronic devices (smartphones, tablet computers, laptop computers, smart TVs / set-top boxes, smart wearables, Bluetooth headsets), wherein the Bluetooth linking mode is preferably Bluetooth 4.0 or above mode, wherein Bluetooth 4.0 or above mode includes BLE (Bluetooth Low Energy), wherein the Bluetooth keyboard has a user key selection, keyboard reset working mode, and automatically connects to connectable electronic devices; resetting the keyboard of the present invention refers to turning on Bluetooth, searching and selecting; manually selecting the address code of a mobile phone, tablet or laptop computer, and manually establishing a connection according to the Bluetooth protocol, so that the user can change the keyboard settings through the Bluetooth keyboard, or use a mobile phone, tablet computer or laptop computer to manage keyboard input.

[0032] It should also be specified that Bluetooth mainly uses the 2.4GHz frequency band; 4.0 uses software methods to improve the RF technology of Bluetooth 3.0, providing faster connection speeds, a larger number of connections, and a longer distance. The main feature is that the connection speed is increased to 1Mbps. In addition to greatly improving performance, 4.0 has further reduced the size of Bluetooth devices. The original Bluetooth device required about 16mmx29mm, and the current Bluetooth device only needs 6mmx4mm. Therefore, Bluetooth 4.0 products also have more design flexibility, making the device shape smaller. At the same time, Bluetooth 4.0 and its subsequent versions have brought significant progress in wireless communication technology, which is mainly reflected in the following aspects. First, Bluetooth 4.0 introduced Bluetooth low energy (BLE) technology, which is a communication method designed for low-power devices. It significantly reduces the energy consumption of the device, allowing low-power devices such as wearable devices and smart home sensors to run for a long time without frequent battery replacement. Secondly, Bluetooth 4.2 has made improvements in data transmission, increasing the size and transmission speed of data packets, while enhancing privacy protection and security, and supporting stronger data encryption and privacy protection functions.

[0033] In addition, Bluetooth 5.0 and its later versions have further improved performance. Bluetooth 5.0 not only increases the data transmission rate (up to 2 Mbps), but also expands the communication range, allowing devices to maintain a stable connection at a longer distance. It also enhances the broadcast function, allowing devices to broadcast more information. Bluetooth 5.1 and 5.2 versions introduce positioning functions such as direction finding and distance measurement, providing higher accuracy for the Internet of Things (IoT) and smart home applications. These advances make the application of Bluetooth technology more extensive and efficient in multiple fields.

[0034] In step S13, a search operation is performed according to the link situation to obtain a link result.

[0035] In one embodiment, after performing a search operation based on the link situation and obtaining a link result, the method further includes: performing a timed detection operation based on the unlinked result and obtaining a stop detection instruction, wherein the stop detection instruction includes a link success instruction and an instruction exceeding a set detection number threshold.

[0036] In one embodiment, the method further includes: when the number of detection points reaches a preset maximum number of detection times, the detection is stopped and timing is started, and after a preset waiting time, the detection mode is started again.

[0037] In the above embodiment, the Bluetooth keyboard determines whether a search operation is required according to different link conditions. When the link condition is a linked condition, a linked result is directly outputted. When the link condition is an unlinked state, a search operation is performed. If an electronic device is found, a link operation is performed and a linked result is obtained. If no electronic device is found, a timed detection operation is entered. Under this operation, the timed detection operation is stopped until an electronic device is detected or the maximum number of detections is reached. Under the search operation, electronic devices within the working range of the Bluetooth link can be further searched on the basis of automatic linking, thereby reducing the cumbersomeness of manual Bluetooth link operations and simplifying the Bluetooth link process.

[0038] It should be specifically noted that when a Bluetooth keyboard is connected to an electronic device, if the number of connected devices is greater than 1, the nearest electronic device or the electronic device actively selected by the user will be connected. On this basis, when the number of devices connected to the Bluetooth keyboard is greater than 1, the distance between each device and the Bluetooth keyboard will be detected and the closest device will be automatically selected for connection. If multiple devices are connected at the same time, the last connected device, the device for which the user has enabled shortcut keys, and the last device detected at a distance will be given priority.

[0039] It should also be specifically stated that after the Bluetooth keyboard is started and the initial detection is completed, if there is a failure to connect successfully, the system will automatically start the search mode to identify the surrounding connectable Bluetooth devices. This process involves scanning all electronic devices with Bluetooth function, including but not limited to mobile phones, tablets and laptops. Among these connectable devices, the system gives priority to mobile phones for pairing to ensure that the connection with the most commonly used devices is completed first. The reason why mobile phones are given priority is that they are popular and frequently used. Usually, in the daily operations of most users, mobile phones are the most frequently connected devices. In addition, as units with Bluetooth function, these electronic devices can achieve efficient data communication after establishing a connection through the Bluetooth protocol. In this way, the Bluetooth keyboard can ensure that a stable Bluetooth connection is established with the user's main device during the startup and detection process, thereby providing a smooth input experience and improving the user's operating efficiency. The system's automatic connection function and priority selection mechanism are designed to simplify the pairing process, reduce the complexity of manual operations, and optimize the user's experience.

[0040] It should be specifically noted that the search time can be set according to the device broadcast frequency, and the maximum number of detection times can also be adjusted according to actual conditions.

[0041] It should also be specified that when the Bluetooth keyboard enters the search state, it scans the connected electronic devices: if the electronic device is searching for the Bluetooth keyboard at this time, the keyboard will immediately connect to it; if an unconnected electronic device is scanned, the connection will be automatically established; if no connected or connectable electronic device is detected, a timed detection will be performed until the electronic device is detected; if the maximum number of detections is reached, the detection state will end. Among them, the detection and scanning of electronic devices is to scan the electronic devices that have been connected to the Bluetooth keyboard. When the timed monitoring times reach the maximum number of detections, the detection will be stopped, and the detection mode will be turned on again after a period of time to wait for the connection.

[0042] In step S14, a power consumption rate calculation operation is performed according to the linking result and the remaining power to obtain a power consumption rate.

[0043] In the above embodiment, after the Bluetooth keyboard is successfully connected to the electronic device, the system will monitor the power level of the Bluetooth keyboard in real time, and calculate the power consumption rate by analyzing the remaining power data. The calculation is based on real-time power data to ensure accurate assessment of battery usage. The system will provide detailed power status feedback to the user based on the calculated power consumption rate to help the user understand the remaining battery in a timely manner. In addition, the system will continue to monitor the user's operating mode and usage, and automatically send a shutdown command to interrupt the Bluetooth connection after identifying an inactive or long-term unused state. This measure is intended to reduce the power consumption of the Bluetooth keyboard during the connection process, thereby optimizing energy efficiency and extending battery life. Through this intelligent management solution, the Bluetooth keyboard can significantly reduce power consumption and improve the overall user experience while providing efficient performance.

[0044] It should be specifically stated that the power consumption rate calculation formula is: , in, is the power consumption rate, For the The remaining power of each detection point, For the The remaining power of each detection point, is the maximum detection point, For the first point.

[0045] Exemplarily, the battery power of the Bluetooth keyboard is lower than a certain value (this value needs to be set manually. Setting the threshold power according to different needs can achieve personalized use of the Bluetooth keyboard), and the signal strength of the Bluetooth module on the Bluetooth keyboard drops by 20%-50%, the Bluetooth keyboard will consider relevant reasons and decide to turn off the Bluetooth module.

[0046] In step S15, a threshold comparison and judgment operation is performed according to the power consumption rate to obtain a keyboard shutdown instruction, and the keyboard shutdown instruction is sent to the Bluetooth keyboard, so that the Bluetooth keyboard turns off the Bluetooth module of the Bluetooth keyboard after receiving the keyboard shutdown instruction.

[0047] In the above embodiment, the Bluetooth keyboard realizes accurate evaluation of the battery status by real-time monitoring of the power consumption rate and comparing it with the preset threshold power consumption rate. This process involves accurate measurement of the power consumption rate and real-time analysis through an algorithm to determine whether the current battery consumption exceeds the set safety range. When the power consumption rate reaches or falls below the set threshold, the system will further comprehensively consider the signal strength of the Bluetooth module. The measurement of signal strength is crucial for judging the actual working state and energy consumption of the Bluetooth module. When the signal strength shows that the use efficiency of the Bluetooth module is low, the system will issue a shutdown instruction to require the Bluetooth module to stop working. At this time, the keyboard will turn off its Bluetooth module according to the received instruction to reduce battery consumption. After the Bluetooth keyboard turns off the Bluetooth module, the Bluetooth keyboard will immediately enter sleep mode. The activation of this mode can effectively reduce power consumption and avoid wasting battery power due to unnecessary Bluetooth activities. In sleep mode, the Bluetooth module of the keyboard will no longer transmit data or receive signals, greatly reducing power consumption, thereby effectively extending the battery life. Through this series of refined power management measures, the Bluetooth keyboard has achieved remarkable results in optimizing battery use and reducing power loss. The Bluetooth keyboard not only improves the battery usage efficiency, but also effectively reduces the risk of Bluetooth function interruption due to insufficient power. This optimization not only solves the power management problem of traditional Bluetooth keyboards, but also improves the user experience, allowing the device to maintain stable performance and longer service life during long-term use.

[0048] Exemplarily, when the signal strength of the Bluetooth module decreases to between 20% and 50%, and the power consumption rate drops to or below the set threshold, the Bluetooth keyboard will automatically receive and execute the instruction to turn off the Bluetooth module. This mechanism is designed to protect battery life and optimize the overall performance of the device. Furthermore, after the Bluetooth connection is disconnected and lasts for ten minutes, the Bluetooth keyboard will automatically enter sleep mode. In this mode, the device will significantly reduce power consumption in order to maximize the battery life and ensure that the device can still maintain a certain power level when it is not used for a long time. This design not only improves the user experience, but also enhances the energy efficiency management of the device.

[0049] It should be specifically explained that the Bluetooth keyboard has the functions of entering a sleep mode (when the keyboard is turned off, it preferably enters sleep mode; when it is turned on, it preferably wakes up from sleep mode) and automatically connecting to connectable electronic devices. Bluetooth mobile phones, tablet computers or laptops also have the functions of entering sleep mode and waking up mode. Entering sleep mode means that there is no operation for a period of time after being turned off. It is preferred to set a timer when entering sleep mode, and automatically wake up when the timer reaches the set time. At the same time, the electronic device (Bluetooth mobile phone, tablet computer or laptop) is in sleep mode and does not actively broadcast. It is preferred to set a certain period of wake-up broadcasting for active pairing.

[0050] It should be specifically noted that when the connection distance between the Bluetooth keyboard and the electronic device exceeds 300 meters, the connection may fail. In this case, the system will issue a prompt that the distance is too far and suggest that the user move the device to the connectable range. Bluetooth technology is usually within an effective range of 10 meters to 100 meters. In actual use, exceeding this range may cause signal attenuation, thereby affecting the stable connection between devices. If the device is relocated to the connectable range, the keyboard will automatically try to restore the connection, or the user can manually wake up the keyboard by key operation to reestablish the connection. If the electronic device is not used for a long time, it may enter standby or sleep mode, and the Bluetooth keyboard may not be able to sense the device. Similarly, when the distance between the keyboard and the device exceeds the normal range, or the keyboard device is in an abnormal state, the keyboard may fail to successfully detect the target device. The connection stability of the Bluetooth device depends on the effective distance between the devices and the normal working state. If any non-standard situation occurs, it will affect the transmission and connection of the Bluetooth signal. In addition, when there is no connectable device in the Bluetooth device list, the system will prompt the user that there is no device to connect. At this time, the user needs to wake up the Bluetooth keyboard by pressing a key so that it can retry to establish a connection with the electronic device. In this case, the Bluetooth keyboard will actively scan the surrounding devices and initiate a connection request when a qualified device is detected. If the device list is empty, it means that there are no connectable Bluetooth devices in the current environment, or the device is turned off or inactive. To solve these problems, users need to make sure that the Bluetooth device is turned on and in pairing mode, and confirm that the electronic device is within the Bluetooth range and the keyboard is in normal working condition. Regularly checking and maintaining the battery status of the keyboard, the Bluetooth module, and ensuring that the Bluetooth function of the device is functioning properly can help increase the success rate of the connection. Through these measures, users can effectively improve the connection stability and user experience of Bluetooth devices.

[0051] It should also be specifically stated that when the distance between the Bluetooth keyboard and the paired device exceeds the preset effective communication range, the Bluetooth keyboard will automatically execute the shutdown command and enter the sleep mode. The core purpose of this process is to optimize battery management, reduce energy consumption, and ensure the long-term effectiveness of the device. In practical applications, the working state and power consumption management of the Bluetooth keyboard are highly dependent on the effective communication distance between the device and its paired device. When the distance exceeds the predetermined range, the quality and strength of the Bluetooth signal will drop significantly, resulting in communication interruption or unstable connection. In order to cope with this situation, the Bluetooth keyboard will automatically trigger to enter the sleep mode, and when the Bluetooth keyboard detects that the distance with the paired device exceeds the communication range, the remaining battery power is not considered. The purpose of this design is to avoid unnecessary power consumption, keep the battery resources of the device effectively utilized when actually needed, and further reduce the power waste of the Bluetooth keyboard.

[0052] In summary, the linking method of the Bluetooth keyboard provided in the embodiment of the present invention is executed by the Bluetooth keyboard, including: obtaining the working status and remaining power of the Bluetooth keyboard during the working process of the Bluetooth keyboard performing Bluetooth linking; performing a link detection operation according to the working status to obtain the link status; performing a search operation according to the link status to obtain a link result; performing a power consumption rate calculation operation according to the link result and the remaining power to obtain the power consumption rate; performing a threshold comparison and judgment operation according to the power consumption rate to obtain a keyboard closing instruction, and sending the keyboard closing instruction to the Bluetooth keyboard, so that the Bluetooth keyboard turns off the Bluetooth module of the Bluetooth keyboard after receiving the keyboard closing instruction.

[0053] The embodiment of the present invention also provides a linking device for a Bluetooth keyboard, such as Figure 2 As shown, it is a structural schematic diagram of a linking device of a Bluetooth keyboard provided in an embodiment of the present invention, including: Information acquisition module 1, used for acquiring the working status and remaining power of the Bluetooth keyboard during the working process of the Bluetooth keyboard performing Bluetooth link; The link detection module 2 is used to detect the link operation according to the working state to obtain the link status; The link result judgment module 3 is used to perform a search operation according to the link situation to obtain the link result; The power calculation module 4 is used to calculate the power consumption rate according to the link result and the remaining power to obtain the power consumption rate; The closing device module 5 is used to perform a threshold comparison and judgment operation according to the power consumption rate to obtain a keyboard closing instruction, and send the keyboard closing instruction to the Bluetooth keyboard, so that the Bluetooth keyboard turns off the Bluetooth module of the Bluetooth keyboard after receiving the keyboard closing instruction.

[0054] In an optional implementation, the link detection module 2 is further configured to: The detecting link operation according to the working state to obtain the link status includes: when the condition that the Bluetooth keyboard is in a working state is met, determining that the working state is the Bluetooth keyboard on state, performing the detecting link operation to obtain the link status, wherein the link status includes connected and unconnected.

[0055] In an optional embodiment, the device is also used for: The start state is timer start or manual start, wherein the timer start includes the timer preset time being a preset time period.

[0056] In an optional implementation, the link result determination module 3 is further used to: The searching operation is performed according to the link status to obtain the link result, including: if the link status is a linked status, a linked result is obtained; if the link status is an unlinked status, a searching operation is performed to obtain the link result, wherein the link result includes a linked result and an unlinked result.

[0057] In an optional embodiment, the device is also used for: After performing a search operation according to the link situation and obtaining a link result, the method further includes: performing a timing detection operation according to the unlinked result and obtaining a stop detection instruction, wherein the stop detection instruction includes a link success instruction and an instruction exceeding a set detection times threshold.

[0058] In an optional implementation, the power calculation module 4 is further used for: The performing a power consumption rate calculation operation according to the link result and the remaining power to obtain the power consumption rate includes: calculating the power consumption rate by the following formula: , in, is the power consumption rate, For the The remaining power of each detection point, For the The remaining power of each detection point, is the maximum detection point, The first detection point.

[0059] In an optional embodiment, the closing device module 5 is also used for: The method comprises: performing a threshold comparison and judgment operation based on the power consumption rate to obtain a keyboard shutdown instruction, and sending the keyboard shutdown instruction to the Bluetooth keyboard so that the Bluetooth keyboard turns off the Bluetooth module of the Bluetooth keyboard after receiving the keyboard shutdown instruction, comprising: performing a threshold comparison and judgment operation based on the power consumption rate and a preset power consumption rate threshold to obtain the keyboard shutdown instruction, wherein the keyboard shutdown instruction includes the communication address of the Bluetooth keyboard; sending the keyboard shutdown instruction to the Bluetooth keyboard based on the communication address, so that the Bluetooth keyboard turns off the Bluetooth module of the Bluetooth keyboard after receiving the keyboard shutdown instruction.

[0060] In an optional embodiment, the device is also used; The method further includes: when the number of detection points reaches a preset maximum number of detection times, the detection is stopped and timing is started, and after a preset waiting time, the detection mode is started again.

[0061] An embodiment of the present invention provides a Bluetooth keyboard having the following functions: a linking device of the Bluetooth keyboard is communicatively connected and receives a keyboard opening instruction and a keyboard closing instruction, and the Bluetooth keyboard implements the Bluetooth keyboard linking method as described in the above embodiment.

[0062] The present invention also provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the Bluetooth keyboard linking method as described above when executing the computer program.

[0063] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory and executed by the processor to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program in the terminal device.

[0064] The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, and a smart tablet. The terminal device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that the above components are merely examples of terminal devices and do not constitute a limitation on the terminal device. The terminal device may include more or fewer components than the above components, or may combine certain components, or different components. For example, the terminal device may also include input and output devices, network access devices, buses, etc.

[0065] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device.

[0066] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the terminal device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0067] Wherein, if the module / unit integrated in the terminal device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0068] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.

[0069] Compared with the prior art, the beneficial effects of the embodiments of the present invention are: the linking method of the Bluetooth keyboard of the present invention realizes a mechanism for automatically connecting to mobile phones, tablet computers, laptop computers and other devices; the sleep and wake-up mechanism of the Bluetooth module is set to greatly save the energy consumption of the Bluetooth module. This linking method of the Bluetooth keyboard not only automatically establishes communication with the mobile phone, tablet computer or laptop computer through the Bluetooth broadcast and sleep and wake-up mechanism, the Bluetooth connection method can realize automatic connection, and the Bluetooth keyboard can also automatically connect to the Bluetooth keyboard of the mobile phone, tablet computer or laptop computer, and the Bluetooth keyboard is easy to use. The linking method of the present invention is easy to operate and time-saving. At the same time, it also has the advantages of fast key response and less delay, and when the Bluetooth keyboard enters the sleep mode, the Bluetooth module is turned off to greatly reduce energy consumption, and the automatic sleep of the Bluetooth keyboard also avoids the waste of electricity when not in use. Thereby, the linking operation of the Bluetooth keyboard and the device is simplified and the power consumption of the Bluetooth link is greatly reduced.

[0070] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for connecting a Bluetooth keyboard, characterized in that: include: During the working process of the Bluetooth keyboard performing the Bluetooth link, obtaining the working status and remaining power of the Bluetooth keyboard; According to the working status, a link detection operation is performed to obtain a link status; According to the link situation, a search operation is performed to obtain a link result; Performing a power consumption rate calculation operation according to the link result and the remaining power to obtain a power consumption rate; A threshold comparison and judgment operation is performed according to the power consumption rate to obtain a keyboard shutdown instruction, and the keyboard shutdown instruction is sent to the Bluetooth keyboard, so that the Bluetooth keyboard shuts down the Bluetooth module of the Bluetooth keyboard after receiving the keyboard shutdown instruction.

2. The method for connecting a Bluetooth keyboard according to claim 1, characterized in that: The detecting link operation according to the working state to obtain the link status includes: When the condition that the Bluetooth keyboard is in a working state is met, the working state is determined to be the Bluetooth keyboard on state, and a link detection operation is performed to obtain the link status, wherein the link status includes linked and unlinked.

3. The method for connecting a Bluetooth keyboard according to claim 2, characterized in that: The start state is timer start or manual start, wherein the timer start includes the timer preset time being a preset time period.

4. The method for connecting a Bluetooth keyboard according to claim 1, characterized in that: The step of performing a search operation according to the link situation to obtain a link result includes: If the link status is a linked status, a linked result is obtained; If the link status is an unlinked status, a search operation is performed to obtain link results, wherein the link results include linked results and unlinked results.

5. The method for connecting a Bluetooth keyboard according to claim 4, characterized in that: After performing a search operation according to the link situation and obtaining a link result, the method further includes: According to the unlinked result, a timed detection operation is performed to obtain a stop detection instruction, wherein the stop detection instruction includes a link success instruction and an instruction exceeding a set detection times threshold.

6. The method for connecting a Bluetooth keyboard according to claim 1, characterized in that: The performing a power consumption rate calculation operation according to the link result and the remaining power to obtain the power consumption rate includes: The power consumption rate is calculated by the following formula: , in, is the power consumption rate, For the The remaining power of each detection point, For the The remaining power of each detection point, is the maximum detection point, The first detection point.

7. The method for connecting a Bluetooth keyboard according to claim 1, characterized in that: The step of performing a threshold comparison and judgment operation according to the power consumption rate to obtain a keyboard shutdown instruction, and sending the keyboard shutdown instruction to the Bluetooth keyboard so that the Bluetooth keyboard shuts down the Bluetooth module of the Bluetooth keyboard after receiving the keyboard shutdown instruction, comprises: According to the power consumption rate and the preset power consumption rate threshold, a threshold comparison and judgment operation is performed to obtain a keyboard closing instruction, wherein the keyboard closing instruction includes the communication address of the Bluetooth keyboard; The keyboard closing instruction is sent to the Bluetooth keyboard according to the communication address, so that the Bluetooth keyboard turns off the Bluetooth module of the Bluetooth keyboard after receiving the keyboard closing instruction.

8. The method for connecting a Bluetooth keyboard according to claim 5, characterized in that: The method further comprises: When the number of detection points reaches the preset maximum number of detection times, the detection is stopped and the timing starts. After the preset waiting time, the detection mode is turned on again.

9. A Bluetooth keyboard linking device, characterized in that: include: An information acquisition module, used to acquire the working status and remaining power of the Bluetooth keyboard during the working process of the Bluetooth keyboard performing the Bluetooth link; A link detection module, used to detect the link operation according to the working state to obtain the link status; A link result judgment module, used to perform a search operation according to the link situation to obtain a link result; A power calculation module, configured to perform a power consumption rate calculation operation according to the link result and the remaining power to obtain a power consumption rate; The shutdown device module is used to perform a threshold comparison and judgment operation according to the power consumption rate to obtain a keyboard shutdown instruction, and send the keyboard shutdown instruction to the Bluetooth keyboard so that the Bluetooth keyboard shuts down the Bluetooth module of the Bluetooth keyboard after receiving the keyboard shutdown instruction.

10. A Bluetooth keyboard, characterized in that: Used to communicate with the linking device of the Bluetooth keyboard as claimed in claim 9, and receive keyboard opening instructions and keyboard closing instructions.

Citation Information

Patent Citations

  • Charging device and charging control method

    CN104348230A

  • Method and device for automatically switching Bluetooth working mode

    CN107708192A

  • Bluetooth connection-based mode switching method, Bluetooth device, apparatus and system

    CN109286996A

  • Bluetooth headset, communication method and system, electronic device and computer medium

    CN110149568A

  • TWS Bluetooth earphone, standby control method and system thereof and storage medium

    CN114640921A