Keyboard and mouse multi-terminal switching method, device and system and electronic equipment thereof

By acquiring the linear acceleration and angle values ​​of the mouse and using a six-axis sensor and gyroscope for detection, the terminal device is automatically configured, solving the problem of needing to manually select the control device in existing technologies, and realizing automated and efficient operation of switching between keyboard and mouse on multiple devices.

CN119271061APending Publication Date: 2025-01-07SHENZHEN WEISI RUNHUA TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411432089.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-14
Publication Date
2025-01-07

AI Technical Summary

Technical Problem

Existing methods for switching between keyboard and mouse devices require users to manually select the control device and cannot automatically switch based on keyboard and mouse parameters, increasing operational complexity and cost.

Method used

By acquiring the linear acceleration and angle values ​​of the mouse, and using a six-axis sensor and gyroscope for detection, the system analyzes the user's operational intentions and automatically configures the mouse to control the corresponding terminal device.

Benefits of technology

It simplifies the user's switching process, improves work efficiency, and enhances the user experience, especially in multi-screen, multi-device environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119271061A_ABST
    Figure CN119271061A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a keyboard-mouse multi-terminal switching method, device and system. The keyboard-mouse multi-terminal switching method comprises the following steps: acquiring a linear acceleration value and an angle value of a current mouse; and at least configuring a terminal device corresponding to mouse control based on the linear acceleration value and / or the angle value. The linear acceleration value and the angle value of the mouse are obtained through the built-in sensor of the mouse, the operation intention of a user is judged by analyzing the linear acceleration value and / or the angle value, and then the mouse and the corresponding keyboard are automatically distributed to terminal equipment needed by the user. Through the method, the switching operation of the user can be simplified, the operation intention of the user is judged by simply moving or inclining the mouse, so that the working efficiency is improved, the method is particularly suitable for a multi-screen and multi-device working environment, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent control, and in particular to a keyboard and mouse multi-terminal switching method, device, system, electronic equipment and storage medium thereof. Background Art

[0002] Keyboard and mouse are traditional main input tools, mainly used for control and input of computers, mobile phones, tablet computers and other devices. With the development of wireless communication technology and sensor technology, automatic switching of input devices can be achieved in a smarter way.

[0003] Since current wireless keyboards and mice usually require users to manually select the device to be controlled, or rely on additional hardware devices, which to some extent increases the complexity and cost of operation, the existing keyboard and mouse multi-terminal switching method has the problem of requiring users to manually select the device to be controlled and cannot automatically switch according to the parameters of the keyboard and mouse. Summary of the invention

[0004] The embodiment of the present invention provides a keyboard and mouse multi-terminal switching method to solve the problem that the existing keyboard and mouse multi-terminal switching method requires the user to manually select the controlled device and cannot automatically switch according to the keyboard and mouse parameters.

[0005] In a first aspect, an embodiment of the present invention provides a keyboard and mouse multi-terminal switching method, the method comprising the following steps: Get the current linear acceleration and angle value of the mouse; Based on the linear acceleration value and / or the angle value, at least a terminal device corresponding to the mouse control is configured.

[0006] Optionally, obtaining the linear acceleration value and angle value of the current mouse includes: Detecting the linear acceleration of the mouse by an acceleration sensor of a six-axis sensor to obtain a current linear acceleration value of the mouse; The angle value of the mouse is detected by the gyroscope of the six-axis sensor to obtain the current angle value of the mouse.

[0007] Optionally, the terminal device includes at least a first terminal device and a second terminal device, and configuring at least the terminal device corresponding to the mouse control based on the linear acceleration value and / or the angle value includes: Determining a first angle value area based on a relative angle relationship between a mouse reference position and a first terminal device; Determine a second angle value area based on a relative angle relationship between the mouse reference position and the second terminal device; When the angle value is in the first angle value area, at least a first terminal device corresponding to the mouse control is configured; When the angle value is in the second angle value area, at least a second terminal device corresponding to the mouse is configured to be controlled; When the first angle value area partially overlaps with the second angle value area, the linear acceleration value is calculated, and at least a terminal device corresponding to the mouse control is configured.

[0008] Optionally, the method further comprises configuring at least a terminal device corresponding to mouse control based on the linear acceleration value and / or the angle value: Establishing at least one safe angle value area between the first angle value area and the second angle value area; Generate the mouse angle change behavior according to the mouse angle value in continuous time; When the angle change behavior changes from the first angle value area to the second angle value area, and the angle change behavior crosses at least one safe angle value area, at least configuring the mouse to control the corresponding second terminal device; When the angle change behavior changes from the second angle value area to the first angle value area, and the angle change behavior crosses at least one safe angle value area, at least a first terminal device corresponding to the mouse control is configured.

[0009] Optionally, when the first angle value area partially overlaps with the second angle value area, calculating the linear acceleration value and configuring at least a terminal device corresponding to mouse control includes: Calculating the linear acceleration value by using a preset linear acceleration algorithm to determine the direction of the linear acceleration; Based on the direction of the linear acceleration and the horizontal sliding distance of the mouse, at least the terminal device corresponding to the mouse control is configured.

[0010] Optionally, the method further comprises configuring at least a terminal device corresponding to mouse control based on the linear acceleration value and / or the angle value: Through the preset behavior algorithm, the user's multi-terminal switching mode and habits are analyzed, and the current user's switching logic is generated based on the corresponding historical operation data; Based on the switching logic, the linear acceleration value and / or the angle value, at least the terminal device corresponding to the mouse control is configured.

[0011] Optionally, the method further comprises configuring at least a terminal device corresponding to mouse control based on the linear acceleration value and / or the angle value: Acquire the cursor path of the mouse corresponding cursor on the terminal device to obtain cursor path data; Based on a preset image recognition algorithm, the cursor path data is processed to determine the legend data corresponding to the cursor path data; Based on the legend data, at least a terminal device corresponding to the mouse control is configured.

[0012] In a second aspect, an embodiment of the present invention further provides a keyboard and mouse multi-terminal switching device, the keyboard and mouse multi-terminal switching device comprising: The acquisition module is used to obtain the linear acceleration value and angle value of the current mouse; The allocation module is used to configure at least a terminal device corresponding to the mouse control based on the linear acceleration value and / or the angle value.

[0013] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in the keyboard and mouse multi-terminal switching method provided in an embodiment of the present invention when executing the computer program.

[0014] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the keyboard and mouse multi-terminal switching method provided in the embodiment of the invention are implemented.

[0015] In an embodiment of the present invention, the linear acceleration value and angle value of the current mouse are obtained; based on the linear acceleration value and / or angle value, at least the terminal device corresponding to the mouse control is configured. The linear acceleration value and angle value of the mouse are obtained by the built-in sensor of the mouse, and the user's operation intention is judged by analyzing the linear acceleration value and / or angle value, and then the mouse and the corresponding keyboard are automatically assigned to the terminal device required by the user. The above method can simplify the user's switching operation, and the user's operation intention can be judged by simply moving or tilting the mouse, thereby improving work efficiency. It is particularly suitable for multi-screen and multi-device working environments, and improves user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 It is an architecture diagram of a keyboard and mouse multi-terminal switching system provided by an embodiment of the present invention; Figure 2 is a flowchart of a keyboard and mouse multi-terminal switching method provided by an embodiment of the present invention; Figure 3 yes Figure 2 Specific flow chart of step S201; Figure 4 yes Figure 2 Specific flow chart of step S202; Figure 5 yes Figure 2 Another specific flow chart of step S202; Figure 6 It is a setting diagram of the safe angle value area; Figure 7 This is another setting diagram of the safe angle value area; Figure 8 yes Figure 4 Specific flow chart of step S2025; Fig. 9 yes Figure 2 Another specific flow chart of step S202; Fig.10 yes Figure 2 Another specific flow chart of step S202; Fig.11 is a structural schematic diagram of a keyboard and mouse multi-terminal switching device provided in an embodiment of the present invention; Fig.12 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0018] 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.

[0019] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship. like Figure 1 As shown, Figure 11 is an architecture diagram 100 of a keyboard and mouse multi-terminal switching system provided by an embodiment of the present invention, and the keyboard and mouse multi-terminal switching system includes: a keyboard and mouse multi-terminal switching device 800, a server 101, and a smart terminal 102. The keyboard and mouse multi-terminal switching device 800 further includes an acquisition module, which can be used to acquire the linear acceleration value and angle value of the current mouse; and an allocation module, which can be used to configure at least a terminal device corresponding to the mouse control based on the linear acceleration value and / or angle value.

[0020] The above-mentioned smart terminal may include but is not limited to electronic devices with wireless connection properties, such as computers, mice and other electronic devices with wireless receivers or wireless transmitters.

[0021] The above linear acceleration value can be obtained through the built-in six-axis sensor of the mouse. Generally speaking, it can be synthesized through the linear acceleration in the three directions of X, Y and Z axes inside the six-axis sensor. When the mouse moves in a certain direction, the accelerometer on the corresponding axis will display a non-zero value. Therefore, based on this characteristic, the acceleration on the three axes is synthesized in a certain direction to determine the direction of the acceleration. Specifically, it can be determined according to the following formula: ; Among them, a x 、a y 、a z are the linear accelerations in the X, Y, and Z axes, respectively, and a total It is the linear acceleration on the three axes. It should be noted that the Z axis is generally used to detect whether the user has lifted the mouse, so as to determine whether the current mouse will be disconnected due to the user's lifting operation, and then determine whether the user needs to switch terminals according to the current linear acceleration based on the misoperation. Generally speaking, when the linear acceleration of the Z axis is greater than or equal to the linear acceleration of the X axis and the Y axis, it is marked that the user has mistakenly lifted the mouse, that is, it is determined that the user does not need to switch terminals.

[0022] The six-axis sensor may be a sensor integrating a three-axis accelerometer and a three-axis gyroscope, and may be used to detect the current linear acceleration and angle value of the mouse. Generally speaking, the six-axis sensor may be used to track the motion state of the above-mentioned smart terminal in three-dimensional space, which may include but is not limited to translation and rotation, and may be able to detect the posture of the above-mentioned smart terminal based on the internally integrated three-axis accelerometer and three-axis gyroscope.

[0023] In a possible embodiment, the above-mentioned six-axis sensor can combine the data detected by the three-axis accelerometer and the three-axis gyroscope, and improve the accuracy of the fusion based on the sensor fusion algorithm, such as the Kalman filter or the complementary filter. Based on the fused data, the posture data of the corresponding detection terminal can be determined.

[0024] In another possible embodiment, the above-mentioned keyboard and mouse multi-terminal switching system detects the linear acceleration of the current mouse on the three axes through the accelerometers corresponding to the X, Y, and Z axes of the six-axis sensor, and performs synthetic calculations on the detected linear accelerations to determine the linear acceleration direction of the current mouse, and judges the user's intention to switch terminals based on the linear acceleration direction.

[0025] The above angle value can be obtained by measuring the angular velocity of the current mouse around the three axes through the three-axis gyroscope built into the above six-axis sensor, and integrating the measured angular velocity or calculating according to the linear acceleration of the current mouse to obtain the corresponding angle value. Generally speaking, after detecting the mouse according to the three-axis corresponding gyroscope and obtaining the angular velocity of each of the three axes, the angular velocity of each of the three axes is integrated through the sensor fusion algorithm to obtain the angle value of each of the three axes, and then the three-axis angle values ​​are fused to determine the final angle value. It can be understood that the corresponding angle value can also be obtained by calculating the linear acceleration, for example, by obtaining the linear acceleration values ​​of the Y-axis and the Z-axis, and obtaining the angle value of the roll angle after fusion calculation, by obtaining the linear acceleration values ​​of the Y-axis and the X-axis, and obtaining the angle value of the pitch angle after fusion calculation, the angle values ​​of the roll angle and the pitch angle are fused and calculated to determine the angle value of the current mouse.

[0026] In another possible embodiment, the above-mentioned keyboard and mouse multi-terminal switching system detects the corresponding angular velocities of the three axes of the mouse through a three-axis gyroscope, and obtains the angle values ​​corresponding to the three axes after integrating the angular velocities of the three axes. Finally, the angle values ​​corresponding to the three axes are fused and calculated through a sensor fusion algorithm to obtain the current angle value of the mouse.

[0027] In this embodiment, the keyboard and mouse multi-terminal switching system obtains and analyzes the current linear acceleration value and angle value of the mouse through a six-axis sensor, and determines whether the user intends to switch the smart terminal based on the angle value and / or linear acceleration value. Specifically, if the angle value satisfies the angle value area, the mouse is configured to control the corresponding smart terminal. If the angle value exceeds the angle value area, the current acceleration direction of the mouse is judged according to the linear acceleration value, and the mouse is configured to control the corresponding smart terminal according to the acceleration direction. For example, if the acceleration direction is to the left, the mouse is configured to control the smart terminal arranged on the left in sequence.

[0028] like Figure 2 As shown, Figure 2 1 is a flowchart of a keyboard and mouse multi-terminal switching method provided by an embodiment of the present invention, and the keyboard and mouse multi-terminal switching method comprises the steps of: S201, obtaining the linear acceleration value and angle value of the current mouse.

[0029] In an embodiment of the present invention, the above-mentioned keyboard and mouse multi-terminal switching method can be applied to a keyboard and mouse multi-terminal switching system. The above-mentioned keyboard and mouse multi-terminal switching system has the functions of processing the linear acceleration value and angle value of the current mouse, receiving and sending the linear acceleration value and angle value of the current mouse, and storing the linear acceleration value and angle value of the current mouse, and can be constructed based on a server or a server cluster. The above-mentioned server or server cluster can be an electronic device with the ability to process the linear acceleration value and angle value of the current mouse.

[0030] The above linear acceleration value can be obtained through the built-in six-axis sensor of the mouse. Generally speaking, it can be synthesized through the linear acceleration in the three directions of X, Y and Z axes inside the six-axis sensor. When the mouse moves in a certain direction, the accelerometer on the corresponding axis will display a non-zero value. Therefore, based on this characteristic, the acceleration on the three axes is synthesized in a certain direction to determine the direction of the acceleration. Specifically, it can be determined according to the following formula: ; Among them, a x 、a y 、a z are the linear accelerations in the X, Y, and Z axes, respectively, and a total It is the linear acceleration on the three axes. It should be noted that the Z axis is generally used to detect whether the user has lifted the mouse, so as to determine whether the current mouse will be disconnected due to the user's lifting operation, and then determine whether the user needs to switch terminals according to the current linear acceleration based on the misoperation. Generally speaking, when the linear acceleration of the Z axis is greater than or equal to the linear acceleration of the X axis and the Y axis, it is marked that the user has mistakenly lifted the mouse, that is, it is determined that the user does not need to switch terminals.

[0031] The above angle value can be obtained by measuring the angular velocity of the current mouse around the three axes through the three-axis gyroscope built into the above six-axis sensor, and integrating the measured angular velocity or calculating according to the linear acceleration of the current mouse to obtain the corresponding angle value. Generally speaking, after detecting the mouse according to the three-axis corresponding gyroscope and obtaining the angular velocity of each of the three axes, the angular velocity of each of the three axes is integrated through the sensor fusion algorithm to obtain the angle value of each of the three axes, and then the three-axis angle values ​​are fused to determine the final angle value. It can be understood that the corresponding angle value can also be obtained by calculating the linear acceleration, for example, by obtaining the linear acceleration values ​​of the Y-axis and the Z-axis, and obtaining the angle value of the roll angle after fusion calculation, by obtaining the linear acceleration values ​​of the Y-axis and the X-axis, and obtaining the angle value of the pitch angle after fusion calculation, the angle values ​​of the roll angle and the pitch angle are fused and calculated to determine the angle value of the current mouse.

[0032] S202: Based on the linear acceleration value and / or the angle value, at least configure the mouse to control the corresponding terminal device.

[0033] In a possible embodiment, the above-mentioned keyboard and mouse multi-terminal switching system obtains and analyzes the current linear acceleration value and angle value of the mouse through a six-axis sensor, and determines whether the user intends to switch the smart terminal based on the angle value and / or linear acceleration value. Specifically, if the angle value satisfies the angle value area, the mouse is configured to control the corresponding smart terminal. If the angle value exceeds the angle value area, the current acceleration direction of the mouse is judged according to the linear acceleration value, and the mouse is configured to control the corresponding smart terminal according to the acceleration direction. For example, if the acceleration direction is to the left, the mouse is configured to control the smart terminal arranged on the left in sequence.

[0034] In an embodiment of the present invention, the linear acceleration value and angle value of the current mouse are obtained; based on the linear acceleration value and / or angle value, at least the terminal device corresponding to the mouse control is configured. The linear acceleration value and angle value of the mouse are obtained by the built-in sensor of the mouse, and the user's operation intention is judged by analyzing the linear acceleration value and / or angle value, and then the mouse and the corresponding keyboard are automatically assigned to the terminal device required by the user. The above method can simplify the user's switching operation, and the user's operation intention can be judged by simply moving or tilting the mouse, thereby improving work efficiency. It is particularly suitable for multi-screen and multi-device working environments, and improves user experience.

[0035] Optional, such as Figure 3 As shown, in step S201, the step of obtaining the linear acceleration value and the angle value of the current mouse also includes steps S2011-S2012, wherein: S2011, detecting the linear acceleration of the mouse by using the acceleration sensor of the six-axis sensor to obtain the current linear acceleration value of the mouse; S2012. Detect the angle value of the mouse through the gyroscope of the six-axis sensor to obtain the current angle value of the mouse.

[0036] In an embodiment of the present invention, the above-mentioned keyboard and mouse multi-terminal switching system detects the linear acceleration of the current mouse through the three-axis accelerometer in the six-axis sensor, and detects the angle value of the mouse through the three-axis gyroscope built into the six-axis sensor, and measures the angular velocity of the mouse around its three orthogonal axes. The direction and rotation changes of the mouse can be continuously tracked, so as to calculate the precise angle of the mouse relative to the initial positioning, and the linear acceleration of the mouse in the three spatial axes of X, Y, and Z is fused and calculated to determine the linear acceleration value of the mouse, and the angular velocity of the mouse around its three orthogonal axes is fused and calculated to determine the angle value of the mouse.

[0037] The linear acceleration value and angle value of the mouse are obtained by the above method, making the acquired data more accurate and sensitive. Through the coordinated calculation of the accelerometer and gyroscope in the six-axis sensor, the shortcomings of traditional spatial data acquisition such as slow response speed and poor tracking are optimized. At the same time, the mouse's ability to capture complex movements is enhanced, and the accuracy of the algorithm's calculation of data is improved.

[0038] Optional, such as Figure 4 As shown, in step S202, based on the linear acceleration value and / or the angle value, at least the step of configuring the mouse to control the corresponding terminal device also includes steps S2021-S2025, wherein: S2021. Determine a first angle value area based on a relative angle relationship between a mouse reference position and the first terminal device.

[0039] In an embodiment of the present invention, the above-mentioned mouse reference position can be the initial position of the mouse. Generally speaking, it can be determined according to the distance between the terminal devices that need to be switched, such as the center position between the two terminal devices that need to be switched, so that the distance when the mouse slides to the first terminal device and the second terminal device is consistent. It can also be the angular intersection position between the two terminal devices that need to be switched. It should be noted that the intersection position can be distinguished from the safety area, that is, the switching judgment is not performed on the intersection position, so the range of the intersection position can be set smaller.

[0040] The above relative angle relationship can be determined by dividing the built-in receiver of the terminal device and the sensor of the mouse, and specifically, can be determined by the cross angle range between the built-in receiver and the sensor of the mouse. For example, when the terminal device is fixed, the internal sensor is moved by moving the mouse, and the angle formed by the movement between the current sensor and the fixed receiver can be used as the relative angle relationship between the mouse and the terminal device.

[0041] The above-mentioned first angle value area can be used to determine the angle condition for configuring the mouse on the first terminal device. Generally speaking, the first terminal device can set a first angle value area. When the angle value between the sensor in the mouse and the built-in receiver of the first terminal device is within the first angle value area, the mouse can be configured to the first terminal device corresponding to the current first angle value area, thereby controlling the corresponding first terminal device.

[0042] In a possible embodiment, the above-mentioned keyboard and mouse multi-terminal switching system sets the reference point of the current mouse and establishes an initial relative angle relationship with the first terminal device, then detects the real-time angle change of the mouse relative to the reference position based on the six-axis sensor, and then compares it with the position of the first terminal device to determine whether the mouse is in the first angle control area.

[0043] S2022. Determine a second angle value area based on a relative angle relationship between the mouse reference position and the second terminal device.

[0044] The above-mentioned second angle value area can be used to determine the angle condition for configuring the mouse on the second terminal device. Generally speaking, the second terminal device can set a second angle value area. When the angle value between the sensor in the mouse and the built-in receiver of the second terminal device is within the second angle value area, the mouse can be configured to the second terminal device corresponding to the current second angle value area, thereby controlling the corresponding second terminal device.

[0045] In another possible embodiment, the above-mentioned keyboard and mouse multi-terminal switching system sets the reference point of the current mouse and establishes an initial relative angle relationship with the second terminal device, then detects the real-time angle change of the mouse relative to the reference position based on the six-axis sensor, and then compares it with the position of the second terminal device to determine whether the mouse is in the second angle control area.

[0046] The above method enhances the interaction sensitivity and accuracy between the smart terminal (such as a wireless mouse and a corresponding keyboard) and the terminal device, thereby improving user experience and operating efficiency.

[0047] S2023: When the angle value is in the first angle value area, at least configure the mouse to control the corresponding first terminal device; S2024: When the angle value is in the second angle value area, at least configure the mouse to control the corresponding second terminal device.

[0048] In a possible embodiment, the keyboard and mouse multi-terminal switching system determines the angle value of the current mouse by setting a first angle value area and a second angle value area. When the angle value of the current mouse is within the first angle value area, the mouse is configured to control the corresponding first terminal device. Similarly, when the angle value of the current mouse is within the second angle value area, the mouse is configured to control the corresponding second terminal device. For example, when it is detected that the angle value of the mouse is within the first angle value area (for example, 0° to 30°), the keyboard and mouse multi-terminal switching system automatically configures the mouse to control the main terminal device (i.e., the first terminal device), such as a personal computer, and when the angle value of the mouse enters the second angle value area (for example, 31° to 60°), the keyboard and mouse multi-terminal switching system switches the configuration of the mouse to control the second terminal device, such as a connected tablet computer or a second display screen.

[0049] S2025. When the first angle value area partially overlaps with the second angle value area, the linear acceleration value is calculated, and at least a terminal device corresponding to the mouse control is configured.

[0050] In a possible embodiment, if the first angle value area partially overlaps with the second angle value area, the above-mentioned keyboard and mouse multi-terminal switching system can determine the current acceleration direction of the mouse according to the linear acceleration value, and then configure the mouse to control the corresponding smart terminal according to the acceleration direction. For example, if the acceleration direction is to the left, the mouse is configured to control the smart terminal located on the left in sequence.

[0051] By detecting operations such as mouse tilt, the purpose of quickly switching control between different devices is achieved, improving efficiency and convenience in a multi-device working environment.

[0052] Optional, such as Figure 5 As shown, in step S202, based on the linear acceleration value and / or the angle value, at least the step of configuring the mouse to control the corresponding terminal device also includes steps S203-S206, wherein: S203: Establish at least one safe angle value area between the first angle value area and the second angle value area.

[0053] In the embodiment of the present invention, it can be combined with Figure 6 and Figure 7 Explain, among which, Figure 6 As shown, in a possible embodiment, the first angle value area may be Figure 6 The two safety areas on the left side of the middle plus the angle area of ​​the mouse angle change range of the operating device A, the second angle value area can be Figure 6 The two safety zones on the right plus the angle zone of the mouse angle variation range of operating device B.

[0054] In the embodiment of establishing more than two safety angle value areas, the safety angle value areas may be as follows: Figure 6 In the figure, taking the 0° line as the reference, the first straight black line to the second black straight line from left to right are the first safety zone within the first angle value area, the third straight black line to the fourth black straight line from left to right are the second safety zone within the first angle value area, the fifth straight black line to the sixth black straight line from left to right are the first safety zone within the second angle value area, and the seventh straight black line to the eighth black straight line from left to right are the second safety zone within the second angle value area.

[0055] It should be noted that the range of the above-mentioned first angle value area and the second angle value area can be included between 0° and 180°, and can be set according to the range of the six-axis sensor built into the mouse and the range of the receiver built into the terminal device in the specific implementation. Generally speaking, it can also be set according to the angle between the terminal device and the placement of the mouse to ensure that the mouse in any position can receive information by the receiver of the terminal device.

[0056] In another possible embodiment, the first angle value region may only be Figure 6 The angle range of the mouse angle of the operating device A on the left side of the figure is as follows: Figure 6 The angle area of ​​the mouse angle change range of the operating device B on the right side of the middle. The safety angle value area is set on one side or both sides of the first angle value area or the second angle value area.

[0057] Based on the above statement, according to Figure 6 To illustrate, in an embodiment of establishing a safe angle value area, when the angle area of ​​the angle change range of the mouse of operating device A is used as the first angle value area, and the angle area of ​​the angle change range of the mouse of operating device B is used as the second angle value area, and the two angle value areas do not overlap, then the right boundary of the first angle value area and the left boundary of the second angle value area can be determined, and the right boundary and the right space of the first angle value area are used as the left boundary of the safe area, and the left boundary and the left space of the second angle value area are used as the right boundary of the safe area, and the corresponding safe area is generated. At this time, the angle value of the mouse is determined, and the corresponding terminal device configured with the mouse is determined. Specifically, when the angle value of the mouse crosses the right boundary of the safe area from the first angle value area, the mouse is configured to the second terminal device corresponding to the right side, and when the angle value of the mouse crosses the left boundary of the safe area from the second angle value area, the mouse is configured to the first terminal device corresponding to the left side.

[0058] In the embodiment of establishing more than two safety angle value areas, the safety area in the first angle value area and the safety area in the second angle value area may overlap in some cases. Since the receiving range of the receiver in the terminal device is an arc range, when the terminal device is too close, the second safety area in the first angle value area and the first safety area in the second angle value area may overlap. Specifically, according to Figure 7 To explain, Figure 7 As shown in the figure, the AB intersection area is the overlapping state of the A safety zone and the B safety zone. At this time, in order to identify which terminal device the mouse is configured on, the linear acceleration value of the mouse can be determined, thereby determining the acceleration direction, and finally determining which terminal device the mouse is configured on based on the acceleration direction. For example, when the acceleration direction is to the left, the mouse is configured on the display screen of device A on the left.

[0059] S204: Generate the angle change behavior of the mouse according to the angle value of the mouse in a continuous time.

[0060] In an embodiment of the present invention, the above-mentioned angle change behavior can be the angle change amount of the above-mentioned mouse between 0° and 180° within a period of time. Generally speaking, before generating the angle change behavior, the angle between the receiver in the terminal device and the current position of the mouse can be detected to obtain the current initial angle value of the mouse, and the angle value of the mouse can be detected in a continuous time to identify the angle change value in the continuous time. According to the initial angle value and the angle change value, the angle change amount when the mouse finally stops changing the angle is determined, and the angle change behavior of the mouse is generated according to the angle change amount, that is, the behavior action of the mouse according to the angle change amount is derived and generated, such as translation, rapid movement, and deduction of the trend action of the mouse changing from a first angle value area to a second angle value area, etc.

[0061] S205: when the angle change behavior changes from the first angle value area to the second angle value area, and the angle change behavior crosses at least one safe angle value area, at least configure the mouse to control the corresponding second terminal device; S206: When the angle change behavior changes from the second angle value area to the first angle value area, and the angle change behavior crosses at least one safe angle value area, at least configure the mouse to control the corresponding first terminal device.

[0062] In a possible embodiment, when the above-mentioned keyboard and mouse multi-terminal switching system detects that the mouse changes from a first angle value area to a second angle value area, and the angle change behavior crosses at least one safe angle value area, at least the second terminal device corresponding to the mouse control and related connected devices, such as wireless devices such as keyboards and speakers connected together, are configured. If the above-mentioned keyboard and mouse multi-terminal switching system detects that the mouse changes from a second angle value area to a first angle value area, and the angle change behavior crosses at least one safe angle value area, at least the first terminal device corresponding to the mouse control and related connected devices are configured.

[0063] By configuring and controlling the mouse through the above steps, the configuration control authority can be automatically adjusted according to the position and angle of the mouse, so that the user does not need to perform complicated manual switching, reducing the possibility of operating errors and increasing the continuity and accuracy of the operation.

[0064] Optional, such as Figure 8 As shown, in step S2025, when the first angle value area partially overlaps with the second angle value area, the linear acceleration value is calculated, and at least the step of configuring the terminal device corresponding to the mouse control further includes steps S20251-S20252, wherein: S20251. Calculate the linear acceleration value using a preset linear acceleration algorithm to determine the direction of the linear acceleration.

[0065] In the embodiment of the present invention, the preset linear acceleration algorithm may be any algorithm that can determine the current acceleration direction of the mouse, such as a constant acceleration algorithm, a piecewise linear acceleration algorithm, and the like.

[0066] In a possible embodiment, the above-mentioned keyboard and mouse multi-terminal switching system calculates the linear acceleration value of the mouse through a preset linear acceleration algorithm, and determines the direction of the current linear acceleration according to the positive or negative value of the linear acceleration. For example, if the calculation is positive, the direction of the linear acceleration is right, and if the calculation is negative, the direction of the linear acceleration is left.

[0067] S20252. Based on the direction of the linear acceleration and the horizontal sliding distance of the mouse, at least configure the terminal device corresponding to the mouse control.

[0068] The horizontal sliding distance can be calculated based on the six-axis sensor detecting the angle change of the mouse. Specifically, since the angle between the terminal device and the mouse is fixed, that is, the angle change is related to the moving distance of the mouse, the corresponding horizontal sliding distance can be calculated based on the angle change through algorithms such as trigonometric functions. It is understandable that if the horizontal sliding distance is too large, the mouse may be reconfigured to the corresponding terminal device, so the horizontal sliding distance can be limited according to the angle value area corresponding to the terminal device.

[0069] Optional, such as Fig. 9 As shown, in step S202, based on the linear acceleration value and / or the angle value, at least the step of configuring the mouse to control the corresponding terminal device also includes steps S207-S208, wherein: S207: Analyze the user's multi-terminal switching mode and habits through a preset behavior algorithm, and generate the current user's switching logic according to the corresponding historical operation data.

[0070] In an embodiment of the present invention, the above-mentioned preset behavior algorithm can be any algorithm that can learn and identify the user's behavior of using the mouse to switch between multiple terminals, so as to derive whether the user has the intention to switch between multiple terminals, and can be applied to any deep learning model. Specifically, it can be a mouse cursor smoothing algorithm, a mouse click debouncing algorithm, a gesture recognition algorithm, a mouse tracking algorithm, etc. These algorithms can analyze the user's mouse behavior and derive the user's intention to switch between multiple terminals.

[0071] The above switching logic can be a behavioral analysis of the user's historical operation data of multi-terminal switching, and based on the data such as the mouse acceleration, angle and horizontal sliding distance when the multi-terminal switching was performed, a set of multi-terminal switching behavior logic unique to the user is formed.

[0072] S208. Based on the switching logic, the linear acceleration value and / or the angle value, at least configure the terminal device corresponding to the mouse control.

[0073] In a possible embodiment, the above-mentioned keyboard and mouse multi-terminal switching system controls the corresponding terminal device with the current mouse configuration by combining the user's switching logic, linear acceleration value and / or angle value. For example, according to the corresponding linear acceleration value and angle value in the user's switching logic, it is determined whether the linear acceleration value and angle value of the current mouse meet the corresponding switching logic. If they meet, the switching is determined, and the current mouse configuration controls the corresponding terminal device. It should be noted that the above-mentioned conditions that meet the conditions can be analyzed based on the user's historical operation data, and the linear acceleration values ​​and angle values ​​when switching in multiple historical operation data are evenly divided, so as to determine the corresponding threshold interval under the conditions that meet the conditions, and determine whether the current linear acceleration value and angle value meet the switching logic based on the threshold interval.

[0074] Optional, such as Fig.10 As shown, in step S202, based on the linear acceleration value and / or the angle value, at least the step of configuring the mouse to control the corresponding terminal device also includes steps S209-S211, wherein:

[0075] S209, acquiring a cursor path of the mouse corresponding cursor on the terminal device to obtain cursor path data; S210, processing the cursor path data based on a preset image recognition algorithm to determine legend data corresponding to the cursor path data; S211. Based on the legend data, at least configure a terminal device corresponding to the mouse control.

[0076] In the embodiment of the present invention, the cursor path data may be a continuous route image obtained by acquiring the movement route of the cursor on the screen over a period of time according to an image recognition algorithm.

[0077] The above-mentioned preset image recognition algorithm can be any algorithm that can obtain the cursor image on the screen and identify and obtain the distribution of the cursor image on the screen within a period of time, such as a convolutional neural network algorithm, a SVM (Supportive Vector Machine) algorithm, etc.

[0078] The legend data corresponding to the above cursor path data can be an image in which the movement trajectory of the cursor on the screen for a period of time is marked. The legend data can be used to show the trajectory changes of the cursor on the screen over a period of time, and to infer the trajectory change trend of the cursor based on the trajectory changes. It should be noted that the trajectory change trend can also be inferred based on the user's behavioral habits, such as the change amplitude of the angle value or the change amplitude of the linear acceleration value under the current user's multi-terminal switching intention.

[0079] In a possible embodiment, the above-mentioned keyboard and mouse multi-terminal switching system obtains the path data of the cursor within a period of time by analyzing the cursor movement path of the user within a period of time, and parses the path data through a preset image recognition algorithm to obtain corresponding legend data, and calculates the corresponding terminal device controlled by the configuration mouse through the trajectory of the path in the legend data and the user's behavioral habits when switching between multiple terminals.

[0080] like Fig.11 As shown, the embodiment of the present invention further provides a keyboard and mouse multi-terminal switching device 1100, which includes: The acquisition module 1101 is used to acquire the linear acceleration value and angle value of the current mouse; The allocation module 1102 is used to configure at least a terminal device corresponding to the mouse control based on the linear acceleration value and / or the angle value.

[0081] Optionally, the acquisition module 1101 includes: A first acquisition submodule is used to detect the linear acceleration of the mouse through an acceleration sensor of a six-axis sensor to obtain a current linear acceleration value of the mouse; The second acquisition submodule is used to detect the angle value of the mouse through the gyroscope of the six-axis sensor to obtain the current angle value of the mouse.

[0082] Optionally, the allocation module 1102 includes: A first determination submodule, configured to determine a first angle value area based on a relative angle relationship between a mouse reference position and a first terminal device; A second determination submodule, configured to determine a second angle value region based on a relative angle relationship between a mouse reference position and a second terminal device; A first configuration submodule, configured to configure at least a first terminal device corresponding to the mouse control when the angle value is in a first angle value range; A second configuration submodule, configured to configure at least a second terminal device corresponding to the mouse control when the angle value is in a second angle value range; The calculation submodule is used to calculate the linear acceleration value when the first angle value area partially overlaps with the second angle value area, and at least configure the corresponding terminal device for mouse control.

[0083] Optionally, the above device further comprises: An establishing module, used to establish at least one safe angle value area between the first angle value area and the second angle value area; A generation module, used for generating the angle change behavior of the mouse according to the angle value of the mouse in a continuous time; A first configuration module, configured to configure at least a second terminal device corresponding to the mouse control when the angle change behavior changes from the first angle value area to the second angle value area and the angle change behavior crosses at least one safe angle value area; The second configuration module is used to configure at least the first terminal device corresponding to the mouse control when the angle change behavior changes from the second angle value area to the first angle value area and the angle change behavior crosses at least one safe angle value area.

[0084] Optionally, the above-mentioned calculation submodule further includes: A calculation unit, used to calculate the linear acceleration value by using a preset linear acceleration algorithm to determine the direction of the linear acceleration; The configuration unit is used to configure at least a terminal device corresponding to the mouse control based on the direction of the linear acceleration and the horizontal sliding distance of the mouse.

[0085] Optionally, the above device further comprises: The analysis module is used to analyze the user's multi-terminal switching mode and habits through a preset behavior algorithm, and generate the current user's switching logic based on the corresponding historical operation data; The third configuration module is used to configure at least a terminal device corresponding to the mouse control based on the switching logic, the linear acceleration value and / or the angle value.

[0086] Optionally, the above device further comprises: The cursor path acquisition module is used to acquire the cursor path of the mouse corresponding cursor on the terminal device to obtain the cursor path data; A processing module, used for processing the cursor path data based on a preset image recognition algorithm to determine legend data corresponding to the cursor path data; The fourth configuration module is used to configure at least the terminal device corresponding to the mouse control based on the legend data. like Fig.12 As shown, an embodiment of the present invention further provides an electronic device 1200, including a processor, and the processor can execute any one of the above-mentioned keyboard and mouse multi-terminal switching methods.

[0087] Specifically, it includes a processor 1201 and a memory 1202, and a computer program for executing a keyboard and mouse multi-terminal switching method stored in the memory 1202 and capable of running on the processor 1201, wherein: The processor 1201 runs the computer program of the keyboard and mouse multi-terminal switching method stored in the memory 1202, and performs the following steps: Get the current linear acceleration and angle value of the mouse; Based on the linear acceleration value and / or the angle value, at least a terminal device corresponding to the mouse control is configured.

[0088] Optionally, the processor 1201 executes the acquisition of the current linear acceleration value and angle value of the mouse, including: Detecting the linear acceleration of the mouse by an acceleration sensor of a six-axis sensor to obtain a current linear acceleration value of the mouse; The angle value of the mouse is detected by the gyroscope of the six-axis sensor to obtain the current angle value of the mouse.

[0089] Optionally, the processor 1201 executes the terminal device to include at least a first terminal device and a second terminal device, and the configuring at least the terminal device corresponding to the mouse control based on the linear acceleration value and / or the angle value includes: Determining a first angle value area based on a relative angle relationship between a mouse reference position and a first terminal device; Determine a second angle value area based on a relative angle relationship between the mouse reference position and the second terminal device; When the angle value is in the first angle value area, at least a first terminal device corresponding to the mouse control is configured; When the angle value is in the second angle value area, at least a second terminal device corresponding to the mouse is configured to be controlled; When the first angle value area partially overlaps with the second angle value area, the linear acceleration value is calculated, and at least a terminal device corresponding to the mouse control is configured.

[0090] Optionally, the processor 1201 executes the step of configuring at least a terminal device corresponding to the mouse control based on the linear acceleration value and / or the angle value, and the method further includes: Establishing at least one safe angle value area between the first angle value area and the second angle value area; Generate the mouse angle change behavior according to the mouse angle value in continuous time; When the angle change behavior changes from the first angle value area to the second angle value area, and the angle change behavior crosses at least one safe angle value area, at least configuring the mouse to control the corresponding second terminal device; When the angle change behavior changes from the second angle value area to the first angle value area, and the angle change behavior crosses at least one safe angle value area, at least a first terminal device corresponding to the mouse control is configured.

[0091] Optionally, the processor 1201 executes the step of calculating the linear acceleration value when the first angle value area partially overlaps with the second angle value area, and configuring at least a terminal device corresponding to mouse control, including: Calculating the linear acceleration value by using a preset linear acceleration algorithm to determine the direction of the linear acceleration; Based on the direction of the linear acceleration and the horizontal sliding distance of the mouse, at least the terminal device corresponding to the mouse control is configured.

[0092] Optionally, the processor 1201 further executes the step of configuring at least a terminal device corresponding to the mouse control based on the linear acceleration value and / or the angle value, and the method further includes: Through the preset behavior algorithm, the user's multi-terminal switching mode and habits are analyzed, and the current user's switching logic is generated based on the corresponding historical operation data; Based on the switching logic, the linear acceleration value and / or the angle value, at least the terminal device corresponding to the mouse control is configured.

[0093] Optionally, the processor 1201 further executes the step of configuring at least a terminal device corresponding to the mouse control based on the linear acceleration value and / or the angle value, and the method further includes: Acquire the cursor path of the mouse corresponding cursor on the terminal device to obtain cursor path data; Based on a preset image recognition algorithm, the cursor path data is processed to determine the legend data corresponding to the cursor path data; Based on the legend data, at least a terminal device corresponding to the mouse control is configured.

[0094] An embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the keyboard and mouse multi-terminal switching method or the application-end keyboard and mouse multi-terminal switching method provided in the embodiment of the present invention are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0095] Those skilled in the art can understand that the implementation of all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).

[0096] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.

Claims

1. A keyboard and mouse multi-terminal switching method, characterized in that: include: Get the current linear acceleration and angle value of the mouse; Based on the linear acceleration value and / or the angle value, at least a terminal device corresponding to the mouse control is configured.

2. The keyboard and mouse multi-terminal switching method according to claim 1, characterized in that: The method of obtaining the linear acceleration value and angle value of the current mouse includes: Detecting the linear acceleration of the mouse by an acceleration sensor of a six-axis sensor to obtain a current linear acceleration value of the mouse; The angle value of the mouse is detected by the gyroscope of the six-axis sensor to obtain the current angle value of the mouse.

3. The keyboard and mouse multi-terminal switching method according to claim 1, characterized in that: The terminal device at least includes a first terminal device and a second terminal device, and the configuring of at least a corresponding terminal device to be controlled by a mouse based on the linear acceleration value and / or the angle value includes: Determining a first angle value area based on a relative angle relationship between a mouse reference position and a first terminal device; Determine a second angle value area based on a relative angle relationship between the mouse reference position and the second terminal device; When the angle value is in the first angle value area, at least a first terminal device corresponding to the mouse control is configured; When the angle value is in the second angle value area, at least a mouse is configured to control a corresponding second terminal device; When the first angle value area partially overlaps with the second angle value area, the linear acceleration value is calculated, and at least a terminal device corresponding to the mouse control is configured.

4. The keyboard and mouse multi-terminal switching method according to claim 3, characterized in that: Based on the linear acceleration value and / or the angle value, at least configuring the mouse to control the corresponding terminal device, the method further includes: Establishing at least one safe angle value area between the first angle value area and the second angle value area; Generate the mouse angle change behavior according to the mouse angle value in continuous time; When the angle change behavior changes from the first angle value area to the second angle value area, and the angle change behavior crosses at least one safe angle value area, at least configuring the mouse to control the corresponding second terminal device; When the angle change behavior changes from the second angle value area to the first angle value area, and the angle change behavior crosses at least one safe angle value area, at least a first terminal device corresponding to the mouse control is configured.

5. The keyboard and mouse multi-terminal switching method as claimed in claim 3, characterized in that: When the first angle value area partially overlaps with the second angle value area, the linear acceleration value is calculated, and at least a terminal device corresponding to the mouse control is configured, including: Calculating the linear acceleration value by using a preset linear acceleration algorithm to determine the direction of the linear acceleration; Based on the direction of the linear acceleration and the horizontal sliding distance of the mouse, at least the terminal device corresponding to the mouse control is configured.

6. The keyboard and mouse multi-terminal switching method as claimed in claim 1, characterized in that: Based on the linear acceleration value and / or the angle value, at least configuring the mouse to control the corresponding terminal device, the method further includes: Through the preset behavior algorithm, the user's multi-terminal switching mode and habits are analyzed, and the current user's switching logic is generated based on the corresponding historical operation data; Based on the switching logic, the linear acceleration value and / or the angle value, at least the terminal device corresponding to the mouse control is configured.

7. The keyboard and mouse multi-terminal switching method according to claim 1, characterized in that: Based on the linear acceleration value and / or the angle value, at least configuring the mouse to control the corresponding terminal device, the method further includes: Acquire the cursor path of the mouse corresponding cursor on the terminal device to obtain cursor path data; Based on a preset image recognition algorithm, the cursor path data is processed to determine the legend data corresponding to the cursor path data; Based on the legend data, at least a terminal device corresponding to the mouse control is configured.

8. A keyboard and mouse multi-terminal switching device, characterized in that: include: The acquisition module is used to obtain the linear acceleration value and angle value of the current mouse; The allocation module is used to configure at least a terminal device corresponding to the mouse control based on the linear acceleration value and / or the angle value.

9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in the keyboard and mouse multi-terminal switching method as claimed in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the keyboard-mouse multi-terminal switching method according to any one of claims 1 to 7 are implemented.