Bluetooth keyboard and mouse management method, device, equipment and medium

By optimizing Bluetooth signals through PCIe direct connection and DRF technology, and combining it with server status management, the problems of unstable Bluetooth connections and security vulnerabilities in data centers have been solved, achieving highly stable and secure Bluetooth keyboard and mouse management.

CN121099459APending Publication Date: 2025-12-09INSPUR (SHANDONG) COMPUTER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511452786.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-11
Publication Date
2025-12-09

AI Technical Summary

Technical Problem

Traditional wired keyboard and mouse solutions are complex to wire and require a lot of equipment in data center server scenarios. Bluetooth device management technology is susceptible to signal interference and has poor connection stability in high-density deployment environments, and it fails to meet the security and access control requirements of data centers.

Method used

By directly connecting to the server CPU via a high-speed serial computer expansion bus standard channel (such as PCIe), and combining digital radio frequency technology (DRF) to optimize the signal frequency, the start and stop status of the Bluetooth keyboard and mouse is dynamically adjusted, and connection priority is allocated according to the server status, so as to achieve efficient interaction between the Bluetooth keyboard and mouse and the server and encrypted storage permission management.

Benefits of technology

It significantly improves the stability and security of Bluetooth connections, adapts to rapid switching and management in multi-server scenarios, reduces signal interference, meets the connection stability and security requirements of data centers, and reduces equipment costs and maintenance time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121099459A_ABST
    Figure CN121099459A_ABST
Patent Text Reader

Abstract

The invention discloses a Bluetooth keyboard and mouse management method, device and equipment and a medium, and relates to the technical field of keyboard and mouse management.The Bluetooth keyboard and mouse management method comprises the steps that the start-stop state of a Bluetooth keyboard and mouse is determined according to target data of a current server, and if the Bluetooth keyboard and mouse are started, the current server and the Bluetooth keyboard and mouse are connected through a high-speed serial computer expansion bus standard channel; judging whether the current server is successfully connected with the Bluetooth keyboard and mouse or not according to the target information; the target information comprises a media access control address, an internet protocol address of the server and a job number of a current operation and maintenance worker; after the connection is successful, interacting with the current server through a Bluetooth keyboard and mouse, if a connection switching request exists, determining a to-be-connected server according to a predetermined priority of each server, determining the to-be-connected server as a new current server, and sending the new current server to the Bluetooth keyboard and mouse; and skipping to the step of determining the start-stop state of the Bluetooth keyboard and mouse according to the target data of the current server until a preset cycle ending condition is met. And collaborative management of the Bluetooth keyboard and mouse is realized.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of keyboard and mouse management, in particular to a Bluetooth keyboard and mouse management method, device, equipment and medium. BACKGROUND

[0002] In the data center server operation and maintenance scene, the traditional wired keyboard and mouse solution has problems such as complex wiring, multiple device occupation, and low cross-server operation efficiency. The Bluetooth device management technology of ordinary terminals only focuses on the connection control of general terminals and does not adapt to the special needs of data center servers.

[0003] 1. Signal interference problem: In the high-density deployment environment of the data center, multiple servers coexist in close proximity, and ordinary Bluetooth signals are easily disturbed, with poor connection stability (usually < 90%);

[0004] 2. Permission and security vulnerability: The server pairing information is not encrypted and stored, and the permission is not controlled, which cannot meet the requirements of data center operation audit and information security;

[0005] 3. Lack of hardware cooperation: It is not deeply integrated with the server hardware architecture (such as the motherboard bus and BMC system), and it is difficult to realize low-latency, intelligent start-stop and other machine room exclusive functions.

[0006] In addition, some technologies modify the Bluez Bluetooth protocol stack to support simultaneous host and device connection. It can simulate Bluetooth keyboard and mouse to realize seamless switching of input devices between multiple devices, suitable for multi-device working environment, wireless transformation and other scenes, and also supports customization. However, this technology relies on Raspberry Pi hardware and is not suitable for server scenarios.

[0007] Therefore, how to adapt Bluetooth keyboard and mouse to multiple server scenarios is a problem that needs to be solved by those skilled in the art. SUMMARY

[0008] The purpose of the embodiments of the present application is to provide a Bluetooth keyboard and mouse management method, device, equipment and medium, which can adapt to the anti-interference Bluetooth connection of the high-density deployment of the data center and adapt to the multi-server scenario. The specific scheme is as follows:

[0009] In a first aspect, a Bluetooth keyboard and mouse management method is disclosed, comprising:

[0010] Determine the start-stop state of the Bluetooth keyboard and mouse according to the target data of the current server. If the Bluetooth keyboard and mouse is turned on, connect the current server and the Bluetooth keyboard and mouse through the high-speed serial computer expansion bus standard channel. The target data includes the CPU occupancy rate and the load state.

[0011] determining whether the current server and the Bluetooth keyboard and mouse are connected successfully according to target information; the target information includes a media access control address of the Bluetooth keyboard and mouse, an Internet Protocol address of the server, and a current operator ID;

[0012] interacting with the current server through the Bluetooth keyboard and mouse after the connection is successful, if there is a switching connection request, determining a server to be connected according to a priority of each server determined in advance, determining the server to be connected as a new current server, and rejumping to the step of determining the start-stop state of the Bluetooth keyboard and mouse according to target data of the current server until a preset cycle end condition is met.

[0013] Optionally, determining the start-stop state of the Bluetooth keyboard and mouse according to the target data of the current server includes:

[0014] monitoring a central processing unit occupancy rate and an execution task of the current server in real time;

[0015] if the central processing unit occupancy rate is less than or equal to a target threshold value, maintaining an open state of the Bluetooth keyboard and mouse;

[0016] if the central processing unit occupancy rate is greater than the target threshold value, or a load of the execution task of the current server is greater than a preset load threshold value, closing the Bluetooth keyboard and mouse, and re-opening the Bluetooth keyboard and mouse based on a preset time after the execution task of the current server ends.

[0017] Optionally, in the process of connecting the current server and the Bluetooth keyboard and mouse through the high-speed serial computer expansion bus standard channel, the process further includes:

[0018] adjusting a frequency of a signal between the current server and the Bluetooth keyboard and mouse through a digital radio frequency technology to optimize communication between the current server and the Bluetooth keyboard and mouse.

[0019] Optionally, determining whether the current server and the Bluetooth keyboard and mouse are connected successfully according to the target information includes:

[0020] determining a target operator ID corresponding to the media access control address of the Bluetooth keyboard and mouse and the Internet Protocol address of the server according to preset matching information;

[0021] comparing the target operator ID and a current operator ID;

[0022] if the target operator ID is consistent with the current operator ID, determining that the current server and the Bluetooth keyboard and mouse are connected successfully;

[0023] if the target operator ID is not consistent with the current operator ID, determining that the current server and the Bluetooth keyboard and mouse are not connected successfully, generating a corresponding security log, and performing alarm processing;

[0024] The alarm processing includes turning on a local indicator light, a pop-up prompt of a baseboard management controller system, and an email notification of an operation and maintenance management platform.

[0025] Optionally, before the alarm processing is performed, the method further comprises:

[0026] reconnecting the current server and the Bluetooth keyboard and mouse based on a preset time interval within a preset number of reconnection times;

[0027] If the number of reconnection times is greater than the target number of times, an operation of triggering the alarm processing is performed.

[0028] The method for determining the server to be connected according to the priority of each server in advance comprises:

[0029] If the current mode of the server is the operation and maintenance mode, and the server load rate is less than the target load rate, the priority of the server is determined as the first priority.

[0030] If the server does not perform a task meeting the preset condition, the priority of the server is determined as the second priority.

[0031] If the priority of the task performed by the server meets the preset low-priority condition, the priority of the server is determined as the third priority.

[0032] The server with the first priority is determined as the server to be connected.

[0033] Optionally, the Bluetooth keyboard and mouse management method further comprises:

[0034] detecting an idle time of the Bluetooth keyboard and mouse;

[0035] If the idle time is greater than a first time, the Bluetooth keyboard and mouse are controlled to sleep.

[0036] After a preset start key is triggered, the Bluetooth keyboard and mouse are restarted based on a second time.

[0037] In a second aspect, the application discloses a Bluetooth keyboard and mouse management device, which comprises:

[0038] A connection module is configured to determine the start-stop state of the Bluetooth keyboard and mouse according to target data of the current server, and if the Bluetooth keyboard and mouse is started, the current server and the Bluetooth keyboard and mouse are connected through a high-speed serial computer expansion bus standard channel; the target data comprises a central processing unit occupancy rate and a load state.

[0039] A determination module is configured to determine whether the current server and the Bluetooth keyboard and mouse are successfully connected according to target information; the target information comprises a media access control address of the Bluetooth keyboard and mouse, an Internet protocol address of the server, and a current operation and maintenance personnel number.

[0040] The data transmission module is used for interacting with the current server through the Bluetooth keyboard and mouse after the connection is successful, and if there is a switching connection request, the server to be connected is determined according to the priority of each server in advance, the server to be connected is determined as a new current server, and the step of determining the start-stop state of the Bluetooth keyboard and mouse according to the target data of the current server is re-jumped until a preset loop end condition is met.

[0041] In a third aspect, the present application discloses an electronic device, comprising:

[0042] a memory for storing a computer program;

[0043] a processor for executing the computer program to implement the Bluetooth keyboard and mouse management method as described above.

[0044] In a fourth aspect, the present application discloses a computer readable storage medium, the computer readable storage medium has a computer program stored thereon, and the computer program is executed by a processor to implement the Bluetooth keyboard and mouse management method as described above.

[0045] Firstly, the present application determines the start-stop state of the Bluetooth keyboard and mouse according to the target data of the current server, and if the Bluetooth keyboard and mouse is started, the current server and the Bluetooth keyboard and mouse are connected through the high-speed serial computer expansion bus standard channel; the target data includes the central processing unit occupancy rate and the load state; whether the current server and the Bluetooth keyboard and mouse are connected successfully is judged according to the target information; the target information includes the media access control address of the Bluetooth keyboard and mouse, the Internet protocol address of the server and the current operation and maintenance personnel number; after the connection is successful, the current server is interacted with through the Bluetooth keyboard and mouse, if there is a switching connection request, the server to be connected is determined according to the priority of each server in advance, the server to be connected is determined as a new current server, and the step of determining the start-stop state of the Bluetooth keyboard and mouse according to the target data of the current server is re-jumped until a preset loop end condition is met.

[0046] Beneficial effects: The present application directly connects the central processing unit through the high-speed serial computer expansion bus standard channel, greatly reduces the signal interference in the multi-server high-density deployment scene, and improves the connection stability. According to the server state, the connection priority is dynamically allocated, the multi-server connection request is scheduled according to the priority, the quick switching is realized, and the connection stability is guaranteed. Further, the Bluetooth keyboard and mouse is adapted to the multi-server application scene. BRIEF DESCRIPTION OF DRAWINGS

[0047] In order to more clearly illustrate the embodiments of the present application, the drawings needed in the embodiments will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creating laborious work.

[0048] Figure 1 A flow chart of a Bluetooth keyboard and mouse management method provided for an embodiment of the present application is shown in FIG. 1.

[0049] Figure 2 A flow chart of a specific Bluetooth keyboard and mouse management method provided for an embodiment of the present application is shown in FIG. 2.

[0050] Figure 3 A flow chart of a more specific Bluetooth keyboard and mouse management method provided for an embodiment of the present application is shown in FIG. 3.

[0051] Figure 4 A structural schematic diagram of a Bluetooth keyboard and mouse management device provided for an embodiment of the present application is shown in FIG. 4.

[0052] Figure 5 A structural diagram of an electronic device provided for an embodiment of the present application is shown in FIG. 5. DETAILED DESCRIPTION

[0053] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all the other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the present application.

[0054] The terms "include" and "have" and any variations in the specification and above drawings of the present application, as well as any variations related to "include" and "have", are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but can include steps or units not listed.

[0055] In order to enable those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the drawings and specific embodiments.

[0056] The conventional wired keyboard and mouse solution has problems such as complex wiring, multiple device occupation, and low operation efficiency across servers. The Bluetooth device management technology of a general terminal only focuses on the connection control of a general terminal and does not adapt to the special needs of a data center server.

[0057] 1. Signal interference problem: In a high-density deployment environment of a data center, multiple servers coexist at a close distance, and an ordinary Bluetooth signal is easily disturbed, with poor connection stability (usually < 90%);

[0058] 2. Authority and security vulnerability: The server pairing information is not stored and controlled by encryption, which cannot meet the requirements of operation audit and information security of a data center;

[0059] 3. Hardware cooperation is missing: not deeply integrated with the server hardware architecture (such as motherboard bus, BMC system), it is difficult to realize the low delay, intelligent start and stop and other data center exclusive functions.

[0060] To solve the above technical problems, the application discloses a Bluetooth keyboard and mouse management method, device, equipment and medium, which can adapt to the anti-interference Bluetooth connection of high-density deployment of data centers and adapt to multi-server scenarios.

[0061] Referring to Figure 1 The application embodiment provides a Bluetooth keyboard and mouse management method, which comprises the following steps:

[0062] In step S11, the start-stop state of the Bluetooth keyboard and mouse is determined according to the target data of the current server, and if the Bluetooth keyboard and mouse is started, the current server and the Bluetooth keyboard and mouse are connected through a high-speed serial computer expansion bus standard channel; the target data includes the central processor occupancy rate and the load state.

[0063] In the application embodiment, the Bluetooth keyboard and mouse can be woken up by pressing the key, that is, the Bluetooth keyboard and mouse is started. In a specific embodiment, the Bluetooth keyboard and mouse is started through a wake-up combination key (such as Ctrl+Alt+F12). After the Bluetooth keyboard and mouse is started, the central processor occupancy rate and the execution task of the current server are monitored in real time; if the central processor occupancy rate is less than or equal to a target threshold, the start state of the Bluetooth keyboard and mouse is maintained; if the central processor occupancy rate is greater than the target threshold or the load of the execution task of the current server is greater than a preset load threshold, the Bluetooth keyboard and mouse is closed, and the Bluetooth keyboard and mouse is restarted based on a preset time after the execution task of the current server is completed. Specifically, if the central processor occupancy rate is less than or equal to 80%, the start state of the Bluetooth keyboard and mouse is maintained, and if the central processor occupancy rate is greater than 80%, the Bluetooth keyboard and mouse is put into a waiting queue and is retried after 30 seconds, and the central processor occupancy rate and the execution task of the current server are determined again to see whether the connection can be established. The CPU occupancy rate and the memory usage rate of the server are monitored in real time, and when the CPU occupancy rate is greater than 80% or a high-load task is executed, the Bluetooth module is automatically closed to release hardware resources; the connection is restarted and restored within 30 seconds after the task is completed. In addition, in the application, the Bluetooth control module performs load monitoring and module start-stop during the normal operation of the server: the CPU occupancy rate and the memory usage rate are collected every 10 seconds, and the Bluetooth module is automatically started or stopped according to a preset threshold (such as the CPU occupancy rate being greater than 80%).

[0064] In the process of establishing a connection, the current server and the Bluetooth keyboard and mouse are connected through the high-speed serial computer expansion bus standard channel, and in the process of connecting the current server and the Bluetooth keyboard and mouse through the high-speed serial computer expansion bus standard channel, the frequency of the signal between the current server and the Bluetooth keyboard and mouse is adjusted through digital radio frequency technology to optimize the communication between the current server and the Bluetooth keyboard and mouse. That is, the application directly connects the server CPU through the PCIe (Peripheral Component Interconnect Express, a high-speed serial computer expansion bus standard, which is a channel for connecting the special Bluetooth communication module with the server CPU (Central Processing Unit, central processor) in the application to realize efficient data transmission), adopts DRF (Digital radio frequency, digital radio frequency) technology to optimize short-distance communication, supports dynamic adjustment of signal frequency (range 2.402-2.480GHz), and reduces the interference probability in the multi-server deployment scene. In this way, through the DRF technology and the PCIe direct connection architecture, the stability of the Bluetooth connection is further improved in the multi-server high-density deployment scene, and the problem of easy interference of the data center Bluetooth signal is solved.

[0065] Step S12, judging whether the current server and the Bluetooth keyboard and mouse are connected successfully according to target information; the target information includes the media access control address of the Bluetooth keyboard and mouse, the Internet protocol address of the server and the current operation and maintenance personnel number.

[0066] In the embodiment of the present application, the target operation and maintenance personnel number corresponding to the media access control address of the Bluetooth keyboard and mouse and the Internet protocol address of the server is determined according to the pre-set matching information; the target operation and maintenance personnel number and the current operation and maintenance personnel number are compared; if the target operation and maintenance personnel number and the current operation and maintenance personnel number are consistent, it is determined that the current server and the Bluetooth keyboard and mouse are connected successfully; if the target operation and maintenance personnel number and the current operation and maintenance personnel number are inconsistent, it is determined that the current server and the Bluetooth keyboard and mouse are connected unsuccessfully, the corresponding security log is generated, and alarm processing is performed; wherein the alarm processing includes turning on the local indicator light, the baseboard management controller system pop-up prompt and the operation and maintenance management platform email notification. In the present application, when the Bluetooth keyboard and mouse are used for the first time, the operation and maintenance personnel access the Bluetooth keyboard and mouse through the server local console, triggering the security pairing process. The Bluetooth communication module automatically collects the device MAC (Media Access Control Address, media access control address) address, the server IP (Internet Protocol, Internet Protocol), and the current operation and maintenance personnel number. Because the operation and maintenance personnel corresponding to each server are different, when operating, different operation and maintenance personnel are matched in advance according to the media access control address of the Bluetooth keyboard and mouse and the Internet protocol address of the server, so the pre-set operation and maintenance personnel number can be determined according to the media access control address of the Bluetooth keyboard and mouse and the Internet protocol address of the server, and then the pre-set operation and maintenance personnel number and the current operation and maintenance personnel number are compared to see if they match. If they match, the current server and the Bluetooth keyboard and mouse can be connected. If the current server and the Bluetooth keyboard and mouse are connected unsuccessfully, the corresponding security log is generated, and alarm processing is performed. In this process, the start / stop state of the Bluetooth module, fault information (such as communication interruption, encryption key exception) is synchronized to the BMC (Baseboard Management Controller, baseboard management controller, a dedicated microcontroller on the server, which is linked with the Bluetooth module in the present application, and the module state and fault information are synchronized to the health monitoring log, and the alarm is triggered when the module fails. ) Health monitoring log, supports remote SSH (Secure Shell, an encrypted network transmission protocol, which supports remote query of the state and fault information of the Bluetooth module through the protocol in the present application), Web console query; when the module fails, three-level alarm (local LED (light-emitting diode) indicator light flashing, BMC system pop-up, operation and maintenance management platform email notification) is automatically triggered.

[0067] In addition, the device MAC address, server IP, current operation personnel ID and other information automatically collected by the Bluetooth communication module in the application are encrypted by an SM4 algorithm and stored in an NVMe SSD (Non-Volatile Memory Express) based on an NVMe (Non-Volatile Memory Express) protocol solid state disk. The integrated encryption partition in the application is used to store the pairing information encrypted by the SM4 algorithm (a national encryption algorithm used for encryption processing of pairing information in the application, and the encryption key is bound to the server BMC to ensure information security). The encryption partition is also synchronized to the data center operation management platform for recordal.

[0068] In addition, when an abnormality such as Bluetooth communication interruption or encryption key check failure occurs, the current server and the Bluetooth keyboard and mouse are reconnected based on a preset time interval within a preset number of reconnection attempts. If the number of reconnection attempts is greater than a target number, an alarm processing operation is triggered. In a specific embodiment, the Bluetooth control module automatically attempts to reconnect (reconnection strategy: retry every 10 seconds for the first minute, retry every 30 seconds from the second minute, and a maximum of 10 retries). If the reconnection fails, the BMC system is triggered to alarm, and the Bluetooth module operation permission is locked (only the local console is allowed to unlock) to prevent unauthorized access

[0069] Step S13, after successful connection, the Bluetooth keyboard and mouse interact with the current server, if there is a switching connection request, the priority of each server is determined according to the priority of each server, the server to be connected is determined as the new current server, and the step of determining the start-stop state of the Bluetooth keyboard and mouse according to the target data of the current server is rejumped until the preset cycle end condition is met.

[0070] In the embodiment of the application, after successful connection, the Bluetooth keyboard and mouse interacts with the current server, but if there are multiple servers and the Bluetooth keyboard and mouse initiates a switching server connection request, the priority of the server to be connected needs to be determined according to the priority of each server determined in advance. In the application, if the current mode of the server is the operation mode, and the server load rate is less than the target load rate, the priority of the server is determined as the first priority; if the server does not perform a task meeting the preset condition, the priority of the server is determined as the second priority; if the priority of the task performed by the server meets the preset low priority condition, the priority of the server is determined as the third priority; the server with the first priority is determined as the server to be connected. Specifically, as shown in Figure 2 When a set of Bluetooth keyboard and mouse switches connection to multiple servers, the priority is dynamically allocated according to the server state:

[0071] Priority 1 (highest): servers in "operation and maintenance mode" and load rate < 30%;

[0072] Priority 2: servers in normal operation state and no critical tasks;

[0073] Priority 3: servers performing low-priority tasks (such as log backup).

[0074] When multiple servers request connection at the same time, the priority is scheduled to avoid connection interruption caused by signal contention (in this way, the connection stability in the multi-server scene is > 99.9%).

[0075] In addition, during the data transmission process of the Bluetooth keyboard and mouse and the server, the idle time of the Bluetooth keyboard and mouse is detected; if the idle time is greater than the first time, the Bluetooth keyboard and mouse is controlled to sleep; after triggering the preset start key, the Bluetooth keyboard and mouse is restarted based on the second time. Specifically, if the idle time of the Bluetooth keyboard and mouse is greater than 5 minutes, the Bluetooth keyboard and mouse is controlled to sleep, thereby reducing power consumption, or the Bluetooth keyboard and mouse is controlled to enter a low-power mode, and when the Bluetooth keyboard and mouse needs to be awakened, the Bluetooth keyboard and mouse can be awakened according to the wake-up combination key (such as Ctrl+Alt+F12).

[0076] It should be noted that the application can also embed an independent Bluetooth module in the server, which can be combined with the system and SSH (Secure Shell, Secure Shell) service, and a multi-modal remote control system can be constructed to expand the control capability of other servers. Bluetooth can be used as an auxiliary authentication channel for SSH, for example: the physical exchange of SSH keys is completed through Bluetooth near field communication (NFC, Near Field Communication), which avoids exposing public keys to the network; combined with two-factor authentication (such as Bluetooth device dynamic token + SSH password) to improve security. In a network-free environment, a temporary SSH tunnel can be established through Bluetooth pairing to realize localized maintenance. In an industrial server cluster, Bluetooth can quickly locate the fault node, and then perform deep debugging through SSH. Through this integration method, the management barriers between devices can be further broken down, and more flexible and efficient cross-server collaborative operation and maintenance can be realized, providing more possibilities for centralized and intelligent management of data center server clusters.

[0077] Beneficial effects: The application directly connects the central processing unit through the high-speed serial computer expansion bus standard channel, greatly reduces the signal interference in the multi-server high-density deployment scene, and improves the connection stability. According to the server state, the connection priority is dynamically allocated, and when multiple servers request connection, the priority is scheduled to realize fast switching and guarantee the connection stability. Furthermore, the Bluetooth keyboard and mouse are adapted to the multi-server application scene.

[0078] For example, Figure 3As shown, this invention discloses a specific Bluetooth keyboard and mouse management method, which enables Bluetooth keyboards and mice to adapt to multiple server application scenarios and solves the industry pain point of Bluetooth signals being easily interfered with in data centers. The specific Bluetooth keyboard and mouse management process will be explained from the perspective of a server system integrating a Bluetooth keyboard and mouse.

[0079] 1. Hardware Layer: Dedicated Bluetooth communication module embedded in the server motherboard: Directly connected to the server CPU via the PCIe channel, using DRF technology to optimize short-range communication, supporting dynamic signal frequency adjustment (range 2.402-2.480GHz), reducing the probability of interference in multi-server deployment scenarios. Non-volatile storage unit (NVMe SSD integrated encrypted partition): Used to store encrypted pairing information (including server IP, Bluetooth device MAC address, and maintenance personnel permission identifier), encrypted using the SM4 national cryptographic algorithm, with the key bound to the server BMC (Baseboard Management Controller).

[0080] 2. Hardware Layer: Bluetooth Control Module (Deployed in the server OS kernel layer): Load-linked start / stop: Real-time monitoring of server CPU utilization and memory usage. When CPU utilization > 80% or high-load tasks are executed, the Bluetooth module is automatically shut down to release hardware resources; the module restarts and restores the connection within 30 seconds after the task ends. Low-power monitoring: When the server is idle (no keyboard and mouse operation for more than 5 minutes), the Bluetooth module enters sleep or low-power mode (power consumption less than or equal to 10mW), only retaining monitoring for the "wake-up key combination (such as Ctrl+Alt+F12)". After the wake-up key combination is triggered, the Bluetooth keyboard and mouse resume full-function mode within 100ms. Furthermore, during the connection process, when Bluetooth communication is interrupted, encryption key verification fails, or other abnormalities occur: the Bluetooth control module automatically attempts to reconnect (reconnection strategy: retry once every 10 seconds in the first minute, retry once every 30 seconds from the second minute onwards, with a maximum of 10 retries). If reconnection fails, trigger a BMC system alarm and lock Bluetooth module operation permissions (allowing only the local console to unlock) to prevent unauthorized access.

[0081] Connection Scheduling Unit: Multi-Server Priority Allocation: When a set of Bluetooth keyboard and mouse switches connections to multiple servers, priority is dynamically allocated based on the server status.

[0082] Priority 1 (highest): Servers in "Operation and Maintenance Mode" with a load rate of less than 30%;

[0083] Priority 2: Servers in normal operating status and without critical tasks;

[0084] Priority 3: Servers that perform low-priority tasks (such as log backups).

[0085] Conflict resolution: when multiple servers request connection at the same time, prioritize the highest priority server for connection to avoid connection interruption caused by signal contention.

[0086] 3. Management layer: linkage with server BMC system: the start / stop state of the Bluetooth module, fault information (such as communication interruption, encryption key anomaly) is synchronized to the BMC health monitoring log, remote SSH, web console query is supported; when the module fails, automatically trigger three-level alarm (local LED indicator light flashing, BMC system pop-up window, operation and maintenance management platform email notification).

[0087] In this way, the application improves the Bluetooth connection stability from less than 90% in the traditional scheme to greater than or equal to 99.9% in the multi-server high-density deployment (distance less than 1 meter) scenario through the DRF technology and PCIe direct connection architecture, solving the industry pain point of data center Bluetooth signal being easily disturbed. Using SM4 national encryption algorithm to encrypt and store pairing information, combined with BMC system linkage and operation audit, meeting the requirements of the "Data Center Information Security Management Specification" for device connection and permission control, filling the security vulnerabilities of ordinary terminal Bluetooth management scheme in the server scenario. In addition, a set of Bluetooth keyboard and mouse supports up to 32 server switching control, reducing 80% of the USB (Universal Serial Bus, Universal Serial Bus) device procurement cost, while saving 2 hours of operation and maintenance time per server per year (based on 3 times of daily switching). Finally, through the deep cooperation of hardware-software management logic, it realizes: anti-interference Bluetooth connection suitable for high-density deployment in data centers; server-level pairing information encryption storage and permission control; intelligent Bluetooth module start-stop based on server load state and cross-server connection scheduling; compatible with data center hardware management specification state monitoring and alarm.

[0088] Referring to Figure 4 The embodiment of the application provides a Bluetooth keyboard and mouse management device, which comprises:

[0089] The connection module 11 is used for determining the start-stop state of the Bluetooth keyboard and mouse according to the target data of the current server, and if the Bluetooth keyboard and mouse is started, the current server and the Bluetooth keyboard and mouse are connected through a high-speed serial computer expansion bus standard channel; the target data includes the central processing unit occupancy rate and the load state;

[0090] The determination module 12 is used for judging whether the current server and the Bluetooth keyboard and mouse are connected successfully according to the target information; the target information includes the media access control address of the Bluetooth keyboard and mouse, the Internet protocol address of the server and the current operation and maintenance personnel ID;

[0091] The data transmission module 13 is configured to interact with the current server through the Bluetooth keyboard and mouse after the connection is successful, and if there is a switching connection request, the server to be connected is determined according to the priority of each server, the server to be connected is determined as a new current server, and the step of determining the start-stop state of the Bluetooth keyboard and mouse according to the target data of the current server is re-jumped until the preset cycle end condition is met.

[0092] Since the embodiments of the device part correspond to the above-mentioned embodiments, the embodiments of the device part are described with reference to the embodiments of the method part, and will not be repeated here.

[0093] Beneficial effects: The application directly connects the central processing unit through the high-speed serial computer expansion bus standard channel, greatly reduces the signal interference in the multi-server high-density deployment scene, and improves the connection stability. According to the server state, the connection priority is dynamically allocated, the multi-server connection request is scheduled according to the priority, the rapid switching is realized, and the connection stability is guaranteed. Further, the Bluetooth keyboard and mouse are adapted to the multi-server application scene.

[0094] Further, the embodiment of the application also discloses an electronic device, Figure 5 is an electronic device structure diagram according to an example embodiment, the content in the figure cannot be considered as any limitation on the use range of the application. The electronic device can specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25 and a communication bus 26. Wherein, the memory 22 is used for storing computer programs, the computer programs are loaded and executed by the processor 21, to realize the related steps in the Bluetooth keyboard and mouse management method disclosed in any of the preceding embodiments. In addition, the electronic device in the embodiment can be an electronic computer.

[0095] In the embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device; the communication interface 24 can create a data transmission channel between the electronic device and the external device, and the communication protocol followed by the communication interface 24 can be any communication protocol applicable to the technical solution of the application, which will not be limited here; the input / output interface 25 is used to obtain external input data or output data to the outside, and the specific interface type can be selected according to the specific application needs, which will not be limited here.

[0096] In addition, the memory 22 as the carrier of resource storage can be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., and the resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage mode can be temporary storage or permanent storage.

[0097] The operating system 221 is configured to manage and control each hardware device on the electronic device and the computer program 222, which can be Windows Server, Netware, Unix, Linux, etc. The computer program 222 can further include computer programs capable of performing other specific work in addition to the computer programs capable of performing the Bluetooth keyboard and mouse management method disclosed by the electronic device in any of the foregoing embodiments.

[0098] Further, the application also discloses a computer readable storage medium for storing a computer program; wherein the computer program is executed by a processor to implement the Bluetooth keyboard and mouse management method disclosed above. The specific steps of the method can refer to the corresponding content disclosed in the foregoing embodiments, which will not be repeated here.

[0099] Further, the application also discloses a computer program product comprising computer programs / instructions; wherein the computer programs / instructions are executed by a processor to implement the Bluetooth keyboard and mouse management method disclosed above. The specific steps of the method can refer to the corresponding content disclosed in the foregoing embodiments, which will not be repeated here.

[0100] The embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts of each embodiment can be referred to each other. For the device disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple, and the relevant parts can refer to the method part.

[0101] The skilled person can further realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be realized by electronic hardware, computer software or a combination of both. In order to clearly illustrate the interchangeability of hardware and software, the components and steps of the examples have been described in general terms in the foregoing description. Whether the functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. The skilled person can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the application.

[0102] The steps of the method or algorithm described in combination with the embodiments disclosed herein can be directly implemented by hardware, software modules executed by a processor, or a combination of both. The software modules can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs, or any other form of storage medium known in the art.

[0103] Finally, it needs to be pointed out that in this document, relational terms such as first and second and the like can only be intended to distinguish one entity or operation from another entity or operation without necessarily requiring or implying any actual such relationship or order between such entities or operations. Moreover, the terms "comprising", "including", or any other variant thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can also include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without more limitations, an element defined by the statement "comprising a" does not exclude the existence of additional identical elements in the process, method, article, or apparatus including the stated element.

[0104] The above detailed description of the technical solutions provided by the present application has been provided, and the principles and implementation modes of the present application have been described by applying specific examples. The above description of the examples is only applicable to help understand the method and core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, the specific implementation modes and application ranges will be changed, and the above description of the content of the specification should not be understood as a limitation of the present application.

Claims

1. A Bluetooth keyboard and mouse management method, characterized in that, include: The start / stop status of the Bluetooth keyboard and mouse is determined based on the target data of the current server. If the Bluetooth keyboard and mouse are turned on, the current server and the Bluetooth keyboard and mouse are connected through the high-speed serial computer expansion bus standard channel. The target data includes the CPU utilization rate and load status. The system determines whether the current server and the Bluetooth keyboard and mouse are successfully connected based on the target information. The target information includes the media access control address of the Bluetooth keyboard and mouse, the Internet Protocol address of the server, and the employee ID of the current maintenance personnel. After a successful connection, the Bluetooth keyboard and mouse interact with the current server. If a connection switching request is requested, the server to be connected is determined according to the priority of each server in advance. The server to be connected is then designated as the new current server, and the process jumps back to the step of determining the start / stop status of the Bluetooth keyboard and mouse based on the target data of the current server, until the preset loop end condition is met.

2. The Bluetooth keyboard and mouse management method according to claim 1, characterized in that, The step of determining the start / stop status of the Bluetooth keyboard and mouse based on the target data of the current server includes: Real-time monitoring of the server's CPU utilization and executing tasks; If the CPU utilization rate is less than or equal to the target threshold, the Bluetooth keyboard and mouse remain on. If the CPU utilization rate is greater than the target threshold, or the load of the current server's execution task is greater than the preset load threshold, then the Bluetooth keyboard and mouse will be turned off, and after the current server's execution task is completed, the Bluetooth keyboard and mouse will be turned back on based on a preset time.

3. The Bluetooth keyboard and mouse management method according to claim 1, characterized in that, The process of connecting the current server and the Bluetooth keyboard and mouse via a high-speed serial computer expansion bus standard channel also includes: The frequency of the signal between the current server and the Bluetooth keyboard and mouse is adjusted using digital radio frequency technology to optimize communication between them.

4. The Bluetooth keyboard and mouse management method according to claim 1, characterized in that, The step of determining whether the current server and the Bluetooth keyboard and mouse are successfully connected based on the target information includes: The target maintenance personnel employee number corresponding to the media access control address of the Bluetooth keyboard and mouse and the Internet Protocol address of the server is determined based on the pre-set matching information. Compare the target maintenance personnel's employee ID with the current maintenance personnel's employee ID; If the target maintenance personnel's employee ID matches the current maintenance personnel's employee ID, then the current server and the Bluetooth keyboard and mouse are successfully connected. If the target maintenance personnel's employee ID does not match the current maintenance personnel's employee ID, it is determined that the current server and the Bluetooth keyboard and mouse connection has failed, a corresponding security log is generated, and an alarm is triggered. The alarm handling includes activating local indicator lights, displaying pop-up notifications on the baseboard management controller system, and sending email notifications to the operation and maintenance management platform.

5. The Bluetooth keyboard and mouse management method according to claim 4, characterized in that, Before performing alarm processing, the following is also included: Within a preset number of reconnections, the current server and the Bluetooth keyboard and mouse will reconnect at a preset time interval. If the number of reconnections exceeds the target number, the alarm processing operation will be triggered.

6. The Bluetooth keyboard and mouse management method according to claim 1, characterized in that, The step of determining the server to connect to based on the predetermined priority of each server includes: If the current mode of the server is operation and maintenance mode, and the server load rate is less than the target load rate, then the priority of the server is determined as the first priority. If the server does not execute a task that meets the preset conditions, the server's priority will be set to the second priority. If the priority of the task executed by the server meets the preset low priority condition, then the priority of the server is determined to be the third priority. The server with the first priority is selected as the server to be connected.

7. The Bluetooth keyboard and mouse management method according to any one of claims 1 to 6, characterized in that, Also includes: Detect the idle time of the Bluetooth keyboard and mouse; If the idle time is longer than the first time, then control the Bluetooth keyboard and mouse to go into sleep mode; After the preset start key is triggered, the Bluetooth keyboard and mouse will restart in a second time.

8. A Bluetooth keyboard and mouse management device, characterized in that, include: The connection module is used to determine the start / stop status of the Bluetooth keyboard and mouse based on the target data of the current server. If the Bluetooth keyboard and mouse are turned on, the current server and the Bluetooth keyboard and mouse are connected through the high-speed serial computer expansion bus standard channel. The target data includes the CPU utilization rate and load status. The determination module is used to determine whether the current server and the Bluetooth keyboard and mouse are successfully connected based on the target information; the target information includes the media access control address of the Bluetooth keyboard and mouse, the Internet Protocol address of the server, and the employee number of the current maintenance personnel. The data transmission module is used to interact with the current server through the Bluetooth keyboard and mouse after a successful connection. If there is a request to switch connections, the module determines the server to be connected according to the priority of each server in advance, sets the server to be connected as the new current server, and jumps back to the step of determining the start / stop status of the Bluetooth keyboard and mouse based on the target data of the current server, until the preset loop end condition is met.

9. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the steps of the Bluetooth keyboard and mouse management method as described in any one of claims 1 to 7.

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 the steps of the Bluetooth keyboard and mouse management method as described in any one of claims 1 to 7.