Method and system for keyboard and mouse collaborative cross-device data transmission

By installing receiver and driver software in the keyboard and mouse system, forming a topological structure and using virtual file list object technology, the network dependence and delay problems in cross-screen data transmission of keyboard and mouse are solved, and seamless data transmission of multiple devices is achieved. Improved compatibility and adaptability, suitable for a variety of devices and network environments.

CN119003205APending Publication Date: 2024-11-22北京瀚羽科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411044443.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

The prior art has problems of network dependence, delay, compatibility, security, user interface intuitiveness, hardware limitations and multi-device support complexity in the cross-screen data transmission of key and mouse, which is difficult to meet the needs of diverse work scenarios.

Method used

By installing receiver and driver software, a topology structure is formed, the equipment is detected online status, the cursor is automatically switched across screens, and the clipboard data transmission is optimized using virtual file list object technology to avoid substantial data transmission until the user performs a paste operation.

Benefits of technology

The seamless data transmission of key and mouse control of multiple devices is realized, reducing storage and transmission costs, improving compatibility and scalability, and is suitable for a variety of devices, including personal computers, tablets and smartphones, to adapt to different network environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119003205A_ABST
    Figure CN119003205A_ABST
Patent Text Reader

Abstract

The invention discloses a method and a system for keyboard and mouse collaborative cross-device data transmission. The method comprises the following steps: installing a receiver and related driving software in equipment; pairing the keyboard and the mouse with the receiver, and generating a topological structure; the receiver reads the IP address of the equipment and stores the IP address; the keyboard and mouse reads the IP address of the equipment and stores the IP address; regularly detecting whether other equipment in the topological structure is in an online state or not; when the cursor of the keyboard and the mouse touches the boundary of the display of the current equipment, judging whether the next equipment is online or not; the first device sends a switching instruction to the keyboard and the mouse, so that the keyboard and the mouse are in butt joint with the receiver of the second device; and the first device reads the IP address of the second device, and sends the data in the clipboard of the first device to the clipboard of the second device through the local area network. By using the virtual file list object technology, the keyboard and mouse collaborative cross-device data transmission in the same network is realized, and the size of the transmitted data does not need to be limited.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method for transmitting data across devices in collaboration with a keyboard and a mouse, and also relates to a corresponding system, belonging to the technical field of computer peripherals. Background Art

[0002] In modern office environments, multi-device operation has become the norm, and existing technologies provide a variety of solutions for controlling multiple devices with a set of keyboards and mice (short for keyboard and mouse, which are the most commonly used input devices for computers). Synergy software is favored by users for its cross-platform operation capabilities and multi-device support. It allows users to seamlessly switch between different operating systems and achieve efficient file and clipboard sharing. However, software such as Synergy may encounter latency issues in wireless state, and the user experience may be affected when the network conditions are poor.

[0003] In addition to Synergy software, Microsoft's Mouse Without Borders software also provides similar keyboard and mouse sharing functions, which can achieve seamless switching between multiple devices through simple settings without the need for additional hardware support. In addition, some patented technologies have proposed innovative methods for the efficiency and stability of keyboard and mouse data transmission, such as user group differentiation based on packet loss rate and data slicing processing to adapt to different network environments and improve transmission efficiency.

[0004] Although the existing technology has made progress, there are still some defects that need to be improved. How to achieve data transmission after the keyboard and mouse cross screen is still a difficult problem. Network dependence, latency issues, compatibility and security issues, intuitive user interface, hardware limitations, functional limitations, software update maintenance, and the complexity of multi-device support are all challenges that current technology needs to face. Future improvements should focus on improving software stability, reducing operation delays, enhancing data security, optimizing user interface design, reducing dependence on specific hardware, expanding functional support, and simplifying the configuration and management process of multiple devices. Through these improvements, the needs of users in diverse work scenarios can be better met. Summary of the invention

[0005] The primary technical problem to be solved by the present invention is to provide a method for transmitting data across devices in collaboration with a keyboard and a mouse.

[0006] Another technical problem to be solved by the present invention is to provide a system for transmitting data across devices in collaboration with a keyboard and a mouse.

[0007] In order to achieve the above technical objectives, the present invention adopts the following technical solutions:

[0008] According to a first aspect of an embodiment of the present invention, a method for transmitting data across devices using keyboard and mouse collaboration is provided, comprising the following steps:

[0009] S1: Install the receiver and related driver software one by one in the devices that need to perform cross-screen operation;

[0010] S2: Pairing the keyboard and mouse with each of the receivers one by one, and generating a topological structure of the pairing data according to the order of pairing, and storing them in the keyboard and mouse, each of the receivers, and the device corresponding to each of the receivers respectively;

[0011] S3: According to the user's selection, the first device is controlled through the first receiver, and the IP address of the first device is read and stored in the topological structure of the first device and the first receiver;

[0012] S4: the keyboard and mouse read the IP address stored in the first receiver and store it in the topological structure of the keyboard and mouse;

[0013] S5: The keyboard and mouse periodically detect whether other devices in the topology structure are online;

[0014] The keyboard and mouse sends the pairing data of the first receiver and the IP data of the first device as the detection packet content to the second receiver;

[0015] If the second receiver is within the receiving distance and receives the detection packet from the keyboard and mouse, the pairing data of the first receiver and the IP data of the first device in the detection packet are stored in the second receiver and the second device, and the second device displays that the first device is online; after the second receiver receives the detection packet from the keyboard and mouse, the second receiver sends the IP address of the second device to the keyboard and mouse in the form of a confirmation packet, and the keyboard and mouse stores the IP data of the second device in its topology structure, and sends the IP data of the second device to the first receiver, and the first receiver and the first device respectively store the IP data of the second device in the topology structure, and the first device displays that the second device is online;

[0016] If the second device and the second receiver are not within the receiving distance range, the keyboard and mouse cannot receive the confirmation packet from the second receiver, and the second device is determined to be in an offline state. The keyboard and mouse sends the device offline state to the first device through the first receiver, and the first device displays that the second device is offline;

[0017] S6: When the cursor of the keyboard and mouse touches the display boundary of the first device, determining whether the second device is online;

[0018] If the second device is online, proceed to step S7; if the second device is offline, the cross-screen function is not triggered, and the keyboard and mouse still control the current device;

[0019] S7: The first device sends a switching instruction to the keyboard and mouse through the first receiver, so that the keyboard and mouse are connected with the receiver of the second device;

[0020] S8: The first device reads the IP address of the second device, and sends the data in the clipboard of the first device to the clipboard of the second device through the local area network;

[0021] S9: After the keyboard and mouse are connected to the receiver of the second device, the second device is controlled, and the virtual file list object technology is used to read the data in the clipboard of the second device to achieve cross-screen data transmission.

[0022] Preferably, all devices are placed in the same local area network.

[0023] Preferably, the user changes the order of devices in the topology structure through the first device, and sends the changed topology structure to the first receiver, the first receiver sends the received changed topology structure to the keyboard and mouse, the keyboard and mouse updates its stored topology structure, and determines whether the topology structure stored in the second receiver is the same as the updated topology structure in the keyboard and mouse when detecting whether the second receiver is online;

[0024] If they are the same, they are ignored; if they are different, the topological structure in the keyboard and mouse is sent to the second receiver to update the topological structure of the second receiver.

[0025] Preferably, if the first device and the second device are not in the same local area network, the data in the clipboard of the first device is transmitted to the clipboard of the second device through the transparent transmission function of the keyboard and mouse.

[0026] Preferably, the transparent transmission function includes the following steps:

[0027] S01: The keyboard and mouse read the data in the clipboard of the first device through the first receiver, and split the data into N parts;

[0028] Wherein, N is the ratio of the size of the data in the clipboard of the first device to the size of the flash memory of the keyboard and mouse;

[0029] S02: The keyboard and mouse read one of the N data, and send it to the keyboard and mouse through the first receiver of the first device. The keyboard and mouse forward the data to the second receiver, and the second receiver forwards it to the second device. Step S02 is repeated until the keyboard and mouse transmit all N data to the second device.

[0030] Preferably, the method for reading data in the clipboard of the second device specifically includes:

[0031] S91: The second device receives the clipboard list information sent by the first device, creates a virtual file list object, and stores the virtual file list object in the system process of the first device;

[0032] S92: When the user triggers a paste operation on the second device, the operating system of the second device calls the virtual file list object;

[0033] S93: The virtual file list object initiates a file transfer request to the first device;

[0034] S94: The first device returns the requested file to the operating system of the first device through the virtual file list object;

[0035] The operating system of the second device automatically displays a progress bar and a path for controlling file pasting according to the data returned by the virtual file list object;

[0036] S95: The second device releases the virtual file list object.

[0037] Preferably, after the device is switched, the starting position of the cursor of the keyboard and mouse is the default setting position.

[0038] Preferably, after the device is switched, calculation is performed according to the screen resolution so that the starting position of the cursor of the keyboard and mouse is a cross-screen position.

[0039] Preferably, the method for calculating according to the screen resolution specifically includes:

[0040] When the cursor of the first device crosses the screen, the ratio of the current coordinates of the keyboard and mouse cursor to the screen resolution of the first device is obtained, and the starting position of the keyboard and mouse cursor after crossing the screen is calculated according to the ratio and the screen resolution of the second device.

[0041] According to a second aspect of an embodiment of the present invention, there is provided a system for transmitting data across devices in a collaborative manner using a keyboard and a mouse, comprising a processor and a memory; wherein the memory is coupled to the processor and is used to store a computer program, and when the computer program is executed by the processor, the processor implements the above method.

[0042] Compared with the prior art, the present invention realizes the function of controlling multiple devices with one set of keyboard and mouse, and allows seamless data transmission between these devices without being limited by the size of the data. By installing the receiver and driver software, the keyboard and mouse are paired with the device to form a topological structure, which can detect the online status of the device and realize automatic cross-screen switching when the cursor touches the edge of the device screen. In addition, the virtual file list object technology is used to optimize the transmission process of clipboard data, avoiding the actual transmission of data until the user performs a paste operation, thereby saving storage space and transmission costs. The present invention has good compatibility and extensibility, and is suitable for a variety of devices, including personal computers, tablet computers, and smart phones, while maintaining a high degree of flexibility and the ability to adapt to different network environments. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 A flowchart of a method for transmitting data across devices using keyboard and mouse collaboration provided by an embodiment of the present invention;

[0044] Figure 2 A signaling interaction diagram of a method for transmitting data across devices in collaboration with a keyboard and a mouse provided in an embodiment of the present invention;

[0045] Figure 3A A schematic diagram of a topological structure formed by various devices in an embodiment of the present invention;

[0046] Figure 3B This is a schematic diagram of the cross-screen movement of the keyboard and mouse in an embodiment of the present invention;

[0047] Figure 4 A signaling interaction diagram for implementing data pasting in a method for transmitting data across devices in collaboration with a keyboard and a mouse provided in an embodiment of the present invention;

[0048] Figure 5 A schematic diagram of the structure of a system for keyboard and mouse collaborative cross-device data transmission provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0049] The technical content of the present invention is described in detail below with reference to the accompanying drawings and specific embodiments.

[0050] The technical concept of the embodiment of the present invention is: when the next device reads the data in the clipboard of the previous device, what is actually read is the data address of the data stored in the clipboard of the previous device, and the address is stored in its own clipboard. When the keyboard and mouse perform the paste operation, the data is directly transmitted from the original data address to the current device through the network, and there is no need to transfer the data, thus saving the time of uploading and downloading (i.e., transferring) the data, and also saving the storage space required for transferring the data, thus saving time cost and storage space cost.

[0051] First embodiment

[0052] like Figure 1 As shown, a method for transmitting data across devices using keyboard and mouse collaboration is provided in the first embodiment of the present invention, comprising the following steps:

[0053] S1: Install the receiver and related driver software one by one in the devices that need to perform cross-screen operations.

[0054] The receiver is installed on the USB port of the device.

[0055] The role of the driver software is to establish a connection between the device and the keyboard and mouse, identify the display boundary to trigger cross-screen, and allow each device to use virtual file list object technology.

[0056] Preferably, all devices are placed in the same local area network.

[0057] S2: Figure 2 As shown, the keyboard and mouse are paired with each receiver one by one, and the pairing information is generated into a topological structure according to the order of pairing, and is stored in the keyboard and mouse, each receiver and the device corresponding to each receiver respectively.

[0058] like Figure 3A and Figure 3B As shown, the cross-screen movement of the keyboard and mouse is determined only by the topological structure formed by each device and will not be changed due to the displacement of each device.

[0059] For example, if the mouse cursor moves from device 1 to the right and crosses the screen, it will control device 2. Even if the positions of device 2 and device 3 are swapped, the arrangement of the topological structure has not changed, so the mouse cursor moves from device 1 to the right and crosses the screen, it will still control device 2.

[0060] S3: According to the user's selection, the first device is controlled through the first receiver, and the IP address of the first device is read and stored in the topological structure of the first device and the first receiver.

[0061] At this time, the first device is the current device.

[0062] S4: The keyboard and mouse read the IP address stored in the first receiver and store it in the topological structure of the keyboard and mouse.

[0063] Preferably, the user changes the order of devices in the topology structure through the first device and sends the changed topology structure to the first receiver. The first receiver sends the received changed topology structure to the keyboard and mouse. The keyboard and mouse update their stored topology structure and determine whether the topology structure stored in the second receiver is the same as the updated topology structure in the keyboard and mouse when detecting whether the second receiver is online.

[0064] If they are the same, they are ignored; if they are different, the topological structure in the keyboard and mouse is sent to the second receiver to update the topological structure of the second receiver.

[0065] At this time, the second device is the target device.

[0066] S5: The keyboard and mouse periodically detect whether other devices in the topology are online.

[0067] The keyboard and mouse send the pairing data of the first receiver and the IP data of the first device as the detection packet content to the second receiver;

[0068] If the second receiver is within the receiving distance and receives the detection packet from the keyboard and mouse, the pairing data of the first receiver and the IP data of the first device in the detection packet are stored in the second receiver and the second device, and the second device displays that the first device is online; after the second receiver receives the detection packet from the keyboard and mouse, the second receiver sends the IP address of the second device to the keyboard and mouse in the form of a confirmation packet, and the keyboard and mouse stores the IP data of the second device in its topology structure, and sends the IP data of the second device to the first receiver, and the first receiver and the first device respectively store the IP data of the second device in the topology structure, and the first device displays that the second device is online;

[0069] If the second device and the second receiver are not within the receiving distance range, the keyboard and mouse cannot receive the confirmation packet from the second receiver, and the second device is determined to be offline. The keyboard and mouse sends the device offline status to the first device through the first receiver, and the first device displays that the second device is offline.

[0070] S6: When the cursor of the keyboard and mouse touches the border of the display of the first device, determine whether the second device is online.

[0071] If the second device is online, the process proceeds to step S7. If the second device is offline, the cross-screen function is not triggered, and the keyboard and mouse still control the current device.

[0072] S7: The first device sends a switching instruction to the keyboard and mouse through the first receiver, so that it can be docked with the receiver of the second device.

[0073] S8: The first device reads the IP address of the second device, and sends the data in the clipboard of the first device to the clipboard of the second device via the local area network.

[0074] Preferably, if the first device and the second device are not in the same local area network, the data in the clipboard of the first device is transmitted to the clipboard of the second device through the transparent transmission function of the keyboard and mouse.

[0075] In one embodiment of the present invention, the transparent transmission function includes the following steps:

[0076] S01: The keyboard and mouse read the data in the clipboard of the first device through the first receiver, and split the data into N parts.

[0077] Wherein, N is the ratio of the size of the data in the clipboard of the first device to the size of the flash memory of the keyboard and mouse.

[0078] It should be noted that the specific number of splits depends on the flash memory capacity of the keyboard and mouse itself, and the present invention is not limited to this.

[0079] S02: The keyboard and mouse read one of the N data, and send it to the keyboard and mouse through the first receiver of the first device. The keyboard and mouse forwards the data to the second receiver, and the second receiver forwards it to the second device. Repeat step S02 until the keyboard and mouse transfer all N data to the next device.

[0080] S9: Figure 4 As shown, after the keyboard and mouse are docked with the receiver of the second device, the second device is controlled, and the virtual file list object technology is used to read the data in the device clipboard to achieve cross-screen data transmission.

[0081] The method for reading data in the clipboard of the second device specifically includes:

[0082] S91: The second device receives the clipboard list information sent by the first device, creates a virtual file list object, and stores the virtual file list object in the system process of the first device.

[0083] S92: When the user triggers a paste operation on the second device, the operating system of the second device calls the virtual file list object.

[0084] S93: The virtual file list object initiates a file transfer request to the first device.

[0085] S94: The first device returns the requested file to the operating system of the first device through the virtual file list object.

[0086] The operating system of the second device automatically displays a progress bar and controls the path for pasting the file according to the data returned by the virtual file list object.

[0087] S95: The second device releases the virtual file list object.

[0088] It should be noted that the present invention replaces the interface of the operating system for reading files during file copying through virtual file object technology, so that the virtual file object can send a data request to and receive the remote device (first device) when the operating system reads data from the virtual file object. After the data is returned, the returned data is provided to the second operating system.

[0089] In other words, the present invention uses a clipboard that uses virtual file list object technology to achieve the function that when the user sets the clipboard, the file is not actually transferred, and the file transfer is performed only after the user triggers the paste operation. In contrast, in a traditional clipboard, data must be available before the clipboard can be set, which means that no matter whether the user performs the paste operation or not, the file data must be transferred to the second device and saved, wasting storage space and increasing the transmission cost.

[0090] Preferably, after the device is switched, the starting position of the cursor of the keyboard and mouse is the default setting position.

[0091] Preferably, after the device is switched, a calculation is performed based on the screen resolution so that the starting position of the cursor of the keyboard and mouse is a cross-screen position.

[0092] The method for calculating according to the screen resolution includes:

[0093] When the cursor of the first device crosses the screen, the ratio of the current coordinates of the keyboard and mouse cursor to the screen resolution of the first device is obtained, and the starting position of the keyboard and mouse cursor after crossing the screen is calculated based on the ratio and the screen resolution of the second device. For example, if the resolution of the first device is 1024*768, the coordinates of the keyboard and mouse cursor are (102.4, 76.8), then the ratio is 10; if the resolution of the second device is 600*800, based on the ratio of 10, the starting position of the keyboard and mouse cursor in the second device is calculated to be (600 / 10, 800 / 10), that is, (60, 80).

[0094] Compared with the prior art, the present invention realizes the function of controlling multiple devices with one set of keyboard and mouse, and allows seamless data transmission between these devices without being limited by the size of the data. By installing the receiver and driver software, the keyboard and mouse are paired with the device to form a topological structure, which can detect the online status of the device and realize automatic cross-screen switching when the cursor touches the edge of the device screen. In addition, the virtual file list object technology is used to optimize the transmission process of clipboard data, avoiding the actual transmission of data until the user performs a paste operation, thereby saving storage space and transmission costs. The present invention has good compatibility and extensibility, and is suitable for a variety of devices, including personal computers, tablet computers, and smart phones, while maintaining a high degree of flexibility and the ability to adapt to different network environments.

[0095] Second embodiment

[0096] Based on the above method, the second embodiment of the present invention provides a system for transmitting data across devices in a coordinated manner using a keyboard and a mouse. Figure 5 As shown, the system includes one or more processors 41 and a memory 42. The memory 42 is used to store one or more programs. When the one or more programs are executed by one or more processors 41, the method in the above embodiment is implemented.

[0097] Wherein, the processor is used to control the overall operation of the system to complete all or part of the steps of the above method. The processor can be a central processing unit (CPU), a graphics processing unit (GPU), a field programmable gate array (FPGA), an application-specific integrated circuit (ASIC), a digital signal processing (DSP) chip, etc. The memory is used to store various types of data to support operations in the system, and these data may include, for example, instructions for any application or method for operating on the system, and application-related data. The memory can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, etc.

[0098] In an exemplary embodiment, the system can be implemented by a computer chip or entity, or by a product with a certain function, for executing the above method and achieving the same technical effect as the above method. A typical embodiment is a CT device, a security inspection device, a non-destructive testing device, and a computer. Specifically, the computer can be, for example, a personal computer, a laptop computer, a vehicle-mounted human-computer interaction device, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0099] In another exemplary embodiment, the present invention further provides a computer-readable storage medium including program instructions, which, when executed by a processor, implements the steps of the method in any of the above embodiments. For example, the computer-readable storage medium may be the above-mentioned memory including program instructions, which may be executed by a processor to complete the above-mentioned method and achieve the same technical effect as the above-mentioned method.

[0100] It should be noted that the above embodiments are only examples, and the technical solutions of the various embodiments can be combined, all within the protection scope of the present invention.

[0101] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0102] The above is a detailed description of the method and system for transmitting data across devices with keyboard and mouse collaboration provided by the present invention. For those skilled in the art, any obvious changes made to it without departing from the essence of the present invention will constitute an infringement of the patent right of the present invention and will bear corresponding legal responsibilities.

Claims

1. A method for transmitting data across devices by using a keyboard and mouse, characterized in that The steps include: S1: Install the receiver and related driver software one by one in the devices that need to perform cross-screen operation; S2: Pairing the keyboard and mouse with each of the receivers one by one, and generating a topological structure of the pairing information according to the order of pairing, and storing the topological structure in the keyboard and mouse, each of the receivers, and the device corresponding to each of the receivers respectively; S3: According to the user's selection, the first device is controlled through the first receiver, and the IP address of the first device is read and stored in the topological structure of the first device and the first receiver; S4: the keyboard and mouse read and store the IP address stored in the first receiver; S5: The keyboard and mouse periodically detect whether other devices in the topology structure are online; The keyboard and mouse sends the pairing data of the first receiver and the IP data of the first device as the detection packet content to the second receiver; If the second receiver is within the receiving distance and receives the detection packet from the keyboard and mouse, the data of the first receiver pairing and the IP data of the first device in the detection packet are stored in the second receiver and the second device, and the second device displays that the first device is online; after the second receiver receives the detection packet from the keyboard and mouse, the second receiver sends the IP address of the second device to the keyboard and mouse in the form of a confirmation packet, and the keyboard and mouse stores the IP data of the second device in its topology structure, and sends the IP data of the second device to the first receiver, and the first receiver and the first device respectively store the IP data of the second device in the topology structure, and the first device displays that the second device is online; If the second device and the second receiver are not within the receiving distance range, the keyboard and mouse cannot receive the confirmation packet from the second receiver, and the second device is determined to be in an offline state. The keyboard and mouse sends the device offline state to the first device through the first receiver, and the first device displays that the second device is offline; S6: When the cursor of the keyboard and mouse touches the border of the display of the first device, determining whether the second device is online; If the second device is online, proceed to step S7; If the second device is offline, the cross-screen function is not triggered, and the keyboard and mouse still control the current device; S7: The first device sends a switching instruction to the keyboard and mouse through the first receiver, so that the keyboard and mouse are connected with the receiver of the second device; S8: The first device reads the IP address of the second device, and sends the data in the clipboard of the first device to the clipboard of the second device through the local area network; S9: After the keyboard and mouse are connected to the receiver of the second device, the second device is controlled, and the virtual file list object technology is used to read the data in the clipboard of the second device to achieve cross-screen data transmission.

2. The method according to claim 1, characterized in that All devices are placed in the same LAN.

3. The method according to claim 1, characterized in that The user changes the order of devices in the topology structure through the first device, and sends the changed topology structure to the first receiver, the first receiver sends the received changed topology structure to the keyboard and mouse, the keyboard and mouse updates its stored topology structure, and determines whether the topology structure stored in the second receiver is the same as the updated topology structure in the keyboard and mouse when detecting whether the second receiver is online; If they are the same, they are ignored; if they are different, the topological structure in the keyboard and mouse is sent to the second receiver to update the topological structure of the second receiver.

4. The method according to claim 1, characterized in that If the first device and the second device are not in the same local area network, the data in the clipboard of the first device is transmitted to the clipboard of the second device through the transparent transmission function of the keyboard and mouse.

5. The method according to claim 4, characterized in that The transparent transmission function includes the following steps: S01: The keyboard and mouse read the data in the clipboard of the first device through the first receiver, and split the data into N parts; Wherein, N is the ratio of the size of the data in the clipboard of the first device to the size of the flash memory of the keyboard and mouse; S02: The keyboard and mouse read one of the N data, and send it to the keyboard and mouse through the first receiver of the first device. The keyboard and mouse forward the data to the second receiver, and the second receiver forwards it to the second device. Step S02 is repeated until the keyboard and mouse transmit all N data to the second device.

6. The method according to claim 1, characterized in that The method for reading data in the clipboard of the second device specifically includes: S91: The second device receives the clipboard list information sent by the first device, creates a virtual file list object, and stores the virtual file list object in the system process of the first device; S92: When the user triggers a paste operation on the second device, the operating system of the second device calls the virtual file list object; S93: The virtual file list object initiates a file transfer request to the first device; S94: The first device returns the requested file to the operating system of the first device through the virtual file list object; The operating system of the second device automatically displays a progress bar and a path for controlling file pasting according to the data returned by the virtual file list object; S95: The second device releases the virtual file list object.

7. The method according to claim 1, characterized in that After the device is switched, the starting position of the cursor of the keyboard and mouse is the default setting position.

8. The method according to claim 1, characterized in that When the device is switched, calculation is performed according to the screen resolution so that the starting position of the cursor of the keyboard and mouse is a cross-screen position.

9. The method according to claim 8, characterized in that The method for calculating according to the screen resolution specifically includes: When the cursor of the first device crosses the screen, the ratio of the current coordinates of the keyboard and mouse cursor to the screen resolution of the first device is obtained, and the starting position of the keyboard and mouse cursor after crossing the screen is calculated according to the ratio and the screen resolution of the second device.

10. A system for transmitting data across devices in collaboration with a keyboard and a mouse, characterized in that It comprises a processor and a memory; wherein the memory is coupled to the processor and is used to store a computer program, and when the computer program is executed by the processor, the processor implements the method described in any one of claims 1 to 9.