File transmission method and computing device
By displaying the remote control page on the computing device and automatically accessing the virtual optical drive interface, the problem of low file transfer efficiency in the existing technology is solved, an efficient file transfer process is realized, and failures caused by user errors are avoided.
Patent Information
- Application Number
- CN202410719161.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-10-18
AI Technical Summary
In the existing technology, the efficiency of transferring files to the server operating system is low and relies on manual operation by the user. It is easy for the file transfer to fail due to user inexperience or operational errors.
By displaying the remote control page on the first computing device, after receiving the drag and drop operation of the target file, the file is connected to the virtual optical drive interface, and after being detected by the second computing device, the file is mounted to the desktop directory to realize automatic copying and Read and write operations simplify user operation steps.
It improves the efficiency of file transfer, avoids file transfer failures due to user inexperience or operational errors, and realizes the automatic file transfer process.
Smart Images

Figure CN118802898A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of data transmission, and in particular, to a file transmission method and a computing device. Background Art
[0002] In a computing device, such as a server, a technician needs to transfer files related to a firmware upgrade to the server's operating system (OS) so that the server can use the files related to the firmware upgrade to perform a firmware upgrade test, or a user needs to transfer files related to a software installation package to the OS so that the server can install the corresponding software according to the files related to the software installation package.
[0003] Currently, in order to transfer files to the server's OS, the computing device can remotely control the server through the virtual keyboard video mouse (KVM) component in the baseboard management controller (BMC) management platform. By manually starting the virtual optical drive under the KVM, the user selects a file under a local address to mount the file on the virtual optical drive. Then the user on the server side needs to input a storage instruction to manually store the file mounted on the virtual optical drive in the server's OS to complete the process of transferring files to the server's OS.
[0004] In the related art, since the process of transferring files to the server's OS requires the user to continuously send commands and perform operations, the success of the file transfer depends on the user's experience, which results in low efficiency in transferring files to the OS. Summary of the invention
[0005] The embodiments of the present application provide a file transfer method and a computing device, which simplify user operations and thus improve the efficiency of file transfer.
[0006] In a first aspect, an embodiment of the present application provides a file transfer method, which is applied to a file transfer system, wherein the file transfer system includes a first computing device and a second computing device, and the method includes: the first computing device displays a remote control page, which is a page of a virtual keyboard, display, mouse, and KVM component of the second computing device; in response to a first operation, the first computing device connects a target file to a virtual optical drive interface of the KVM component; the first operation is an operation of dragging the target file into the remote control page, and the target file is a file stored locally on the first computing device; when the second computing device detects that the target file is connected to the virtual optical drive interface of the KVM component, the second computing device mounts the target file to a first directory of the second computing device; the second computing device copies the target file to a desktop directory of the second computing device; and the first computing device displays an element corresponding to the target file in the remote control page.
[0007] It is understandable that the remote control page of the KVM component of the second computing device can be displayed through the first computing device. After the first computing device receives the first operation on the target file, the first computing device can connect the local target file to the virtual optical drive interface of the KVM component. After detecting that the target file is connected to the virtual optical drive interface of the KVM component, the second computing device can mount the target file to the first directory of the second computing device, and then the second computing device copies the target file to the desktop directory to achieve the purpose of the first computing device transferring the local target file to the OS of the second computing device, so that the second computing device can perform normal read and write operations on the target file. The user only needs to complete the step of dragging and dropping the file, and the subsequent file transfer process is automatically completed by the first computing device and the second computing device, avoiding the failure of file transfer due to lack of user experience or operational errors, thereby improving the efficiency of file transfer.
[0008] In one possible implementation, if the remote control page is a hypertext markup language HTML page; in response to the first operation, the first computing device connects the target file to the virtual optical drive interface of the KVM component, including: in response to receiving a drag operation on an element corresponding to the target file through the remote control page, the first computing device connects the target file to the virtual optical drive interface of the KVM component through the HTML drag and drop interface.
[0009] It is understandable that, when the remote control page is a Hypertext Markup Language HTML page, the push and drop operation can be received through the HTML drag and drop interface, thereby detecting whether the target file is dragged to the remote control page.
[0010] In a possible implementation, after the first computing device displays the element corresponding to the target file in the remote control page, the method further includes: the first computing device disconnecting the target file from the virtual optical drive interface of the KVM component.
[0011] It is understandable that when the second computing device has successfully stored the target file in the desktop directory and is available for reading and writing by the OS, the first computing device can disconnect the target file from the virtual optical drive interface of the KVM component and end the transmission process of the target file to the second computing device.
[0012] In a possible implementation, the file mounted under the first directory is a read-only file.
[0013] It is understandable that a designated mount point with read-only permission may be set, and the target file may be mounted under the designated mount point to ensure that the target file has read-only permission for the second computing device.
[0014] In the second aspect, an embodiment of the present application provides a file transfer method, which is applied to a second computing device, and the method includes: when it is detected that the target file is connected to the virtual optical drive interface of the virtual keyboard, display, mouse, KVM component, mounting the target file to the first directory of the second computing device; the target file is a file stored locally on the first computing device; the first computing device is used to display the remote control page of the KVM component of the second computing device; and copying the target file to the desktop directory of the second computing device.
[0015] It can be understood that the remote control page of the KVM component of the second computing device can be displayed through the first computing device. After the first computing device receives the first operation on the target file, the first computing device can connect the local target file to the virtual optical drive interface of the KVM component. After detecting that the target file is connected to the virtual optical drive interface of the KVM component, the second computing device can mount the target file to the first directory of the second computing device, and then the second computing device copies the target file to the desktop directory to achieve the purpose of the first computing device transferring the local target file to the OS of the second computing device, so that the second computing device can perform normal read and write operations on the target file. By simplifying the user's operation steps, the file transfer process is automatically completed by the first computing device and the second computing device, avoiding the failure of file transfer due to insufficient user experience or operational errors, thereby improving the efficiency of file transfer.
[0016] In a possible implementation, when it is detected that the target file is connected to the virtual optical drive interface of the virtual keyboard, display and mouse KVM component, before mounting the target file to the first directory of the second computing device, it also includes: detecting whether the target file is connected to the virtual optical drive interface of the KVM component through the device manager udev.
[0017] In a third aspect, an embodiment of the present application provides a file transfer method, which is applied to a first computing device, and the method includes: displaying a remote control page, which is a page of a virtual keyboard, display, mouse, and KVM component of a second computing device; in response to a first operation, connecting a target file to the virtual optical drive interface of the KVM component; the first operation is an operation of dragging the target file into the remote control page, and the target file is a file stored locally on the first computing device; displaying an element corresponding to the target file in the remote control page; wherein the element corresponding to the target file displayed in the remote control page indicates that the target file has been copied to the desktop directory of the second computing device.
[0018] It can be understood that the remote control page of the KVM component of the second computing device can be displayed through the first computing device. After receiving the first operation on the target file and dragging the element corresponding to the target file to the remote control page, the purpose of transferring the target file to the OS of the second computing device can be achieved, so that the second computing device can perform normal read and write operations on the target file. By simplifying the user's operation steps, the file transfer process is automatically completed by the first computing device and the second computing device, avoiding the situation of file transfer failure caused by insufficient user experience or operation errors, thereby improving the efficiency of file transfer.
[0019] In one possible implementation, if the remote control page is a hypertext markup language HTML page; in response to the first operation, the target file is connected to the virtual optical drive interface of the KVM component, including: in response to the remote control page receiving a drag operation on an element corresponding to the target file, the target file is connected to the virtual optical drive interface of the KVM component through the HTML drag and drop interface.
[0020] It is understandable that, when the remote control page is a Hypertext Markup Language HTML page, the push and drop operation can be received through the HTML drag and drop interface, thereby detecting whether the target file is dragged to the remote control page.
[0021] In a fourth aspect, an embodiment of the present application provides a file transmission device, which is used to execute any one of the file transmission methods provided in the second aspect above.
[0022] In a possible implementation, the embodiment of the present application may divide the file transfer device into functional modules according to the method provided in the second aspect above. For example, each functional module may be divided according to each function, or two or more functions may be inherited in one processing module. Exemplarily, the present application may divide the file transfer device into a mounting module and a copy module, etc. according to the function. The description of the possible technical solutions and beneficial effects executed by each of the functional modules divided above can refer to the technical solutions provided by the second aspect above or its corresponding possible implementation, and will not be repeated here.
[0023] In a fifth aspect, an embodiment of the present application provides a file transmission device, which is used to execute any one of the file transmission methods provided in the third aspect above.
[0024] In a possible implementation, the embodiment of the present application may divide the file transfer device into functional modules according to the method provided in the third aspect above. For example, each functional module may be divided corresponding to each function, or two or more functions may be inherited in one processing module. Exemplarily, the present application may divide the file transfer device into a first display module, an access module, and a second display module, etc. according to the function. The description of the possible technical solutions and beneficial effects executed by each of the functional modules divided above can refer to the technical solutions provided in the third aspect above or its corresponding possible implementation, and will not be repeated here.
[0025] In a sixth aspect, an embodiment of the present application provides a computing device, comprising a processor and a display module, the display module being used to display a remote control page, the remote control page being a page of a virtual keyboard, display, mouse, and KVM component of a second computing device; the processor being used to connect a target file to a virtual optical drive interface of the KVM component in response to a first operation; the display module being further used to display elements corresponding to the target file in the remote control page; wherein the elements corresponding to the target file displayed in the remote control page indicate that the target file has been copied to the desktop directory of the second computing device.
[0026] In a possible implementation, if the remote control page is a hypertext markup language HTML page, the processor is further configured to connect the target file to the virtual optical drive interface of the KVM component through the HTML drag-and-drop interface in response to the remote control page receiving a drag operation on an element corresponding to the target file.
[0027] In the seventh aspect, an embodiment of the present application provides a computing device, comprising a baseboard management controller BMC, wherein the BMC is used to mount the target file to the first directory of the second computing device when it detects that the target file is connected to the virtual optical drive interface of the virtual keyboard, display, mouse, KVM component; the target file is a file stored locally on the first computing device; the first computing device is used to display the remote control page of the KVM component of the second computing device; the permission of the target file is set to a read-only file; and the target file is copied to the desktop directory of the second computing device.
[0028] In one possible implementation, when it is detected that the target file is connected to the virtual optical drive interface of the virtual keyboard, display and mouse KVM component, before mounting the target file to the first directory of the second computing device, the BMC is also used to detect whether the target file is connected to the virtual optical drive interface of the KVM component through the device manager udev.
[0029] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, in which at least one computer program instruction is stored, and the computer program instruction is loaded and executed by a file transfer system to implement the file transfer method as described in the above aspects.
[0030] In a ninth aspect, an embodiment of the present application provides a computer program product, the computer program product including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a first device and / or a second device in a file transfer system reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the file transfer system executes the file transfer method provided in various optional implementations of the above aspects.
[0031] For the specific description of the fourth to ninth aspects and their various implementations in the embodiments of the present application, reference can be made to the detailed descriptions in the first aspect and its various implementations, the second aspect and its various implementations, and the third aspect and its various implementations; and for the beneficial effects of the fourth to ninth aspects and their various implementations, reference can be made to the analysis of the beneficial effects in the first aspect and its various implementations, the second aspect and its various implementations, and the third aspect and its various implementations, which will not be repeated here.
[0032] These and other aspects of the embodiments of the present application will be more clearly understood in the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 is a schematic diagram of a framework of a file transmission system according to an exemplary embodiment;
[0034] Figure 2is a schematic diagram of a computing device according to an exemplary embodiment;
[0035] Figure 3 is a schematic diagram of a computing device according to an exemplary embodiment;
[0036] Figure 4 is a flowchart of a file transmission method according to an exemplary embodiment;
[0037] Figure 5 yes Figure 4 A schematic diagram of dragging and uploading a target file involved in the illustrated embodiment;
[0038] Figure 6 is a structural schematic diagram of a file transmission device provided by an exemplary embodiment of the present application;
[0039] Figure 7 It is a structural schematic diagram of a file transmission device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0040] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0041] In the embodiments of the present application, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, "multiple" means two or more.
[0042] First, the application scenarios of the embodiments of the present application are exemplarily introduced.
[0043] In the use scenarios for computing devices, especially for server use scenarios, there is a need to transfer files to the server's OS. For example, a technician needs to transfer firmware upgrade related files to the server's OS so that the server can use the firmware upgrade related files to perform firmware upgrade tests, or a user needs to transfer software installation package related files to the OS so that the server can install the corresponding software according to the software installation package related files. Therefore, the efficiency and convenience of transferring files to the server's OS are becoming increasingly important.
[0044] Currently, in order to transfer files to the server's OS, the computing device can remotely control the server through the KVM component in the BMC management platform, manually start the virtual optical drive under the KVM, and then the user manually selects a file under a local address to achieve the purpose of mounting the file on the virtual optical drive. Then the user on the server side needs to enter a storage instruction to manually store the file mounted on the virtual optical drive in the server's OS to complete the process of transferring files to the server's OS.
[0045] The BMC management platform is used to remotely manage the server. The computing device can log in to the BMC management platform through a browser, and enter the account number (for example, the BMC address of the server) and password corresponding to the server when logging in, so that the computing device can manage the server through the BMC management platform after logging in.
[0046] Specifically, managing a server through the BMC management platform may include controlling the server's startup, shutdown, and restart, or may also include detecting the status of a processor (central processing unit, CPU), hard disk, power supply, network, etc., or may also include redirecting a remote login to a server using an Internet standard (HTML5), or may also include viewing a server's system log. In implementing the function of remotely logging into a server, a KVM component may be used to display a remote control page. A BMC management platform is installed in the server being remotely logged into, and the BMC management platform includes a KVM component. A computing device that remotely logs into the server logs into the BMC management platform through a browser, and displays a remote control page of the KVM component in the server being remotely logged into. The content displayed in the remote control page is the content in the server's OS.
[0047] Among them, the KVM component can achieve the purpose of accessing and controlling the computer by directly connecting the keyboard, monitor, and mouse to their respective ports. KVM technology does not require the server to modify the software, that is, the KVM component in the BMC management platform can access the server at any time, and the KVM component in the BMC management platform can directly access the servers located in multiple remote locations.
[0048] That is to say, a BMC management platform is installed in the server, and the BMC management platform has a KVM component. A computing device that logs in to the BMC management platform through a browser can remotely control the server through the KVM component in the BMC management platform.
[0049] Currently, the process of copying and storing files on the server side requires users to manually send instructions to indicate the storage location. This also results in users being unable to accurately issue instructions on the file copy path if they are not clear about the access rights that the OS supports to files in each directory. As users need to perform many complex operations, the efficiency of file storage in the OS is low.
[0050] In addition, you can also install additional software in the computing device, such as MobaXterm, WinSCP, etc., to remotely connect to the server's OS through the business network and transfer files to the OS. This requires not only the installation of additional software, but also the need to ensure the existence of a business network port and the normal transmission function of the business network between the computing device and the server. The requirements for software and network are relatively high. If there is a network problem, file transfer will not be possible.
[0051] In view of this, the remote control page of the KVM component of the second computing device can be displayed through the first computing device. After the first computing device receives the first operation on the target file, the first computing device can connect the local target file to the virtual optical drive interface of the KVM component. After detecting that the target file is connected to the virtual optical drive interface of the KVM component, the second computing device can mount the target file to the first directory of the second computing device and set the permission of the target file to a read-only file. Then the second computing device copies the target file to the desktop directory to achieve the purpose of the first computing device transferring the local target file to the OS of the second computing device, so that the second computing device can perform normal read and write operations on the target file. By simplifying the user's operation steps, the file transfer process is automatically completed by the first computing device and the second computing device, avoiding the failure of file transfer due to insufficient user experience or operational errors, thereby improving the efficiency of file transfer.
[0052] Secondly, the system architecture of the embodiment of the present application is exemplarily introduced.
[0053] Figure 1 FIG. 1 is a schematic diagram showing a framework of a file transmission system provided by an embodiment of the present application. Figure 1As shown, the file transfer system 200 includes at least a first computing device 20 and a second computing device 30. The first computing device 20 logs in to the BMC management platform through a browser, and remotely manages the second computing device 30 through the BMC management platform installed in the BMC of the second computing device 30. After the first computing device 20 logs in to the BMC management platform, the KVM component included in the BMC management platform installed in the second computing device 30 can receive operations received through the keyboard, display, and mouse interface, such as a drag-and-drop operation for a target file placed in a remote control page displayed on the first computing device 20 for remotely controlling the second computing device 30. Then, the first computing device 20 can connect the file to the interface of the virtual optical drive, and the second computing device 30 can detect the file connected to the interface of the virtual optical drive, and mount the file connected to the interface of the virtual optical drive to the first directory in the server, and then copy the file in the first directory of the server to the desktop directory for storage, and the storage location corresponding to the desktop directory where the file is stored is located in the memory 32 corresponding to the OS run by the processor 31 of the second computing device 30.
[0054] Optionally, the first computing device 20 may be a personal computer (PC), a terminal device, or a computer device. The first computing device 20 has a display function and a network function. The second computing device 30 may be a server.
[0055] in, Figure 2 A schematic diagram of a computing device provided in an embodiment of the present application is shown. The computing device 100 may be a first computing device. In terms of hardware, the computing device 100 includes a CPU 101 , a memory 102 , and a display module 103 .
[0056] The CPU 101 can be used to run a browser to log in to the BMC management platform. The memory 102 can be used to store local target files. The display module 103 can be used to display a remote control page.
[0057] Optionally, the computing device 100 may be a server, a computer device, or a terminal.
[0058] in addition, Figure 3 The schematic diagram of a computing device provided by an embodiment of the present application is shown. The computing device 300 may be a second computing device. In terms of hardware, the computing device 300 includes a CPU 301 , a BMC 302 , and a memory 303 .
[0059] Among them, CPU301 can be used to run the operating system.
[0060] Among them, BMC302 can be an independent chip integrated on the motherboard of the computing device 300. The BMC can run a small operating system independent of the server's operating system. The BMC302 can be used to manage the core functions of the computing device 300, such as the hardware status, operating system, health status, and power consumption management. The BMC302 can be used to run the installed BMC management platform, and the installed BMC management platform includes a KVM component.
[0061] The memory 303 may be used to store files supporting read and write operations under the OS.
[0062] In terms of software, the computing device 300 can run an OS through the core of the CPU 301. The OS can run application programs to process different services.
[0063] Optionally, the computing device 300 may be a server or a computer device.
[0064] It should be noted that the system architecture and application scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field can know that with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0065] For ease of understanding, the following is an exemplary introduction to the file transmission method provided by the present application in conjunction with the accompanying drawings. The file transmission method is applicable to Figure 1 The file transfer system shown.
[0066] Figure 4 A schematic diagram of a file transmission method provided by an exemplary embodiment of the present application is shown. The file transmission method can be applied to a file transmission system, for example, the file transmission system can be Figure 1 The file transmission system 200 shown. The file transmission method comprises the following steps:
[0067] S101, a first computing device displays a remote control page.
[0068] In an embodiment of the present application, the first computing device can log in to the BMC management platform through a browser, and display a remote control page for remotely controlling the second computing device through a KVM component in the BMC management platform.
[0069] The remote control page can be a page for remotely controlling the second computing device using the KVM component after logging into the BMC management platform through a browser. The second computing device is a computing device that needs to transfer a target file to the OS running in the second computing device, and the second computing device can be a server.
[0070] S102: In response to the first operation, the first computing device connects the target file to the virtual optical drive interface of the KVM component.
[0071] In the embodiment of the present application, the first operation is an operation of dragging the target file into the remote control page. The first operation may be a drag operation performed by the user on the target file of the first computing device.
[0072] Among them, if the remote control page is a hypertext markup language (HTML) page, in response to receiving a drag operation on an element corresponding to the target file through the remote control page, the first computing device connects the target file to the virtual optical drive interface of the KVM component through the HTML drag and drop interface.
[0073] The drag operation may be an operation of clicking an element with a mouse cursor and moving the cursor to a specified position and releasing it.
[0074] The target file is a file stored locally on the first computing device. In other words, the target file is a file that needs to be transferred to the OS of the second computing device and is currently stored locally on the first computing device.
[0075] The element of the target file may be an element that supports dragging in a point, such as an icon of the target file. The remote control page may include a placeable element, which is an element in the remote control page that supports identifying whether to place an element thereon. In other words, the placeable element may be a designated area in the remote control page for triggering the upload of a file.
[0076] When the first computing device detects an element with a target file placed in the designated area, it can automatically trigger a process of connecting the target file to the interface of the virtual optical drive. The user's operation steps can be simplified through a simple drag-and-drop operation, avoiding the problem of file transfer failure caused by user operation problems.
[0077] Exemplarily, an HTML drag and drop interface enables an application to use a drag and drop function in a browser. For example, a user can use a mouse to select a draggable element, such as an icon corresponding to a target file. The user drags the element to a placeable element in a remote control page, and releasing the mouse cursor can place the element at the placeable element, that is, place the icon of the target file at a specified position in the remote control page. During the drag operation, a semi-transparent snapshot of the draggable element follows the mouse cursor. After placing the element at the placeable element, the virtual optical drive is triggered to access the target file corresponding to the placeable element by detecting the semi-transparent snapshot.
[0078] In a possible implementation, the first computing device may access the target file to a storage space of the first computing device connected to the virtual optical drive interface by accessing the target file to the virtual optical drive interface of the KVM component.
[0079] For example, using the HTML drag and drop interface and the file API interface provided by HTML 5, the first computing device determines the target file, performs the first operation in the remote control page, and reads the target file. When HTML detects an interactive event corresponding to the drag operation, it can notify the virtual optical drive interface of the KVM component, connect the read target file to the "local file" interface of the virtual optical drive of the KVM component, and automatically connect the virtual optical drive, that is, the storage space in the first computing device connected to the virtual optical drive interface of the KVM component.
[0080] S103, when the second computing device detects that the target file is connected to the virtual optical drive interface of the KVM component, the second computing device mounts the target file to the first directory of the second computing device, and copies the target file in the first directory to the desktop directory of the second computing device.
[0081] In a possible implementation, in response to the second computing device detecting that the target file is connected to the virtual optical drive interface of the KVM component, the second computing device mounts the target file to the first directory of the second computing device.
[0082] In a possible implementation, the second computing device may detect, through a device manager (udev), whether the target file is connected to a virtual optical drive interface of the KVM component.
[0083] Among them, udev is a device management tool of the OS. It can manage the device files in the / dev directory by listening to the kernel, and can dynamically update the device files according to the status of the devices in the system.
[0084] In one case, after the second computing device detects that the target file is connected to the virtual optical drive interface of the KVM component, the target file can be mounted to a specified mount point under the first directory of the second computing device. Then, the second computing device copies the target file mounted under the specified mount point to the desktop directory for storage. The file mounted under the specified mount point is a read-only file.
[0085] In another case, after the second computing device detects that the target file is connected to the virtual optical drive interface of the KVM component, the target file can be mounted to the first directory of the second computing device. Then, the second computing device copies the target file mounted in the first directory to the desktop directory for storage. The target file in the first directory can be set with permissions as read-only files.
[0086] For example, after the second computing device detects that the target file is connected to the virtual optical drive, it can trigger the udev mechanism custom response script, which is used to indicate the storage step. After udev detects that the target file is connected to the virtual optical drive interface of the KVM component, it executes the following three steps: First, the second computing device mounts the file in the first directory, such as the / mnt directory of the OS, where the files mounted under the / mnt directory are read-only files; then, the files under the / mnt directory are copied to the desktop directory, such as the server's desktop (Desktop), where the files stored in the desktop directory support read and write operations.
[0087] S104: The first computing device displays elements corresponding to the target file in the remote control page.
[0088] In an embodiment of the present application, when the first computing device displays an element corresponding to the target file in the remote control page, the target file has been transferred to the OS of the second computing device, and supports the OS to perform read and write operations on the target file.
[0089] In a possible implementation, after transferring the target file to the second computing device to the OS, the first computing device may disconnect the target file from the virtual optical drive interface of the KVM component.
[0090] Displaying an element corresponding to the target file in the remote control page of the first computing device can notify the user performing the remote control operation that the file has been successfully transferred to the OS of the second computing device.
[0091] For example, Figure 5 Schematic diagram of a target file drag and drop upload involved in an embodiment of the present application. Figure 5 As shown, the remote control page 10 displayed in the first computing device and the display page of the first computing device itself, by clicking the icon of the target file in a folder in the first computing device with the mouse, and dragging it to the icon of the target file in the remote control page 10 and releasing the mouse to place the target file, the first computing device can mount the target file on the virtual optical drive after recognizing the drag operation on the target file, and then the second computing device side detects the virtual optical drive interface of the target file connected to the KVM component through the udev mechanism, by mounting the target file in the / mnt directory of the OS, wherein the files mounted in the / mnt directory are read-only files; then copy the target file in the / mnt directory to the desktop directory, such as the desktop of the server (Desktop), wherein the files stored in the desktop directory support read and write operations; finally, cancel the mount and eject the virtual optical drive. The icon of the target file displayed by the first computing device side in the remote control page 10 indicates that the target file has been transferred to the OS of the second computing device.
[0092] In summary, the remote control page of the KVM component of the second computing device can be displayed through the first computing device. After the first computing device receives the first operation on the target file, the first computing device can connect the local target file to the virtual optical drive interface of the KVM component. After detecting that the target file is connected to the virtual optical drive interface of the KVM component, the second computing device can mount the target file to the first directory of the second computing device, and then the second computing device copies the target file to the desktop directory to achieve the purpose of the first computing device transferring the local target file to the OS of the second computing device, so that the second computing device can perform normal read and write operations on the target file. By simplifying the user's operation steps, the file transfer process is automatically completed by the first computing device and the second computing device, avoiding the failure of file transfer due to lack of user experience or operation errors, thereby improving the efficiency of file transfer.
[0093] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the method. It can be understood that in order to realize the above functions, the file transfer device includes at least one of the hardware structure and software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0094] The embodiment of the present application can divide the file transfer device into functional units according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.
[0095] For example, Figure 6 The following is a schematic diagram of the structure of a file transmission device 500 provided by an exemplary embodiment of the present application. The file transmission device 500 is applied to a first computing device, and the file transmission device 500 includes:
[0096] A first display module 410, configured to display a remote control page, wherein the remote control page is a page of a virtual keyboard display mouse KVM component of the second computing device;
[0097] The access module 420 is used to access the target file to the virtual optical drive interface of the KVM component in response to a first operation; the first operation is an operation of dragging the target file into the remote control page, and the target file is a file stored locally on the first computing device;
[0098] The second display module 430 is used to display the element corresponding to the target file in the remote control page; wherein, the element corresponding to the target file displayed in the remote control page indicates that the target file has been copied to the desktop directory of the second computing device.
[0099] In one possible implementation, if the remote control page is a hypertext markup language HTML page; the access module 420 is also used to connect the target file to the virtual optical drive interface of the KVM component through the HTML drag and drop interface in response to the remote control page receiving a drag operation on an element corresponding to the target file.
[0100] For the detailed description of the above optional methods, please refer to the above method embodiments, which will not be repeated here. In addition, the explanation of any file transmission device provided above and the description of the beneficial effects can refer to the above corresponding method embodiments, which will not be repeated here.
[0101] As an example, combining Figure 4 , some or all of the functions implemented in the first display module 410, the access module 420 and the second display module 430 in the file transmission device can be implemented by executing program codes through the CPU in the first computing device.
[0102] For example, Figure 7 The schematic diagram of the structure of a file transmission device 600 provided by an exemplary embodiment of the present application is shown. The file transmission device 600 is applied to a second computing device, and the file transmission device 600 includes:
[0103] The mounting module 510 is used to mount the target file to the first directory of the second computing device when it is detected that the target file is connected to the virtual optical drive interface of the virtual keyboard display mouse KVM component; the target file is a file stored locally on the first computing device; the first computing device is used to display the remote control page of the KVM component of the second computing device;
[0104] The copy module 520 is used to copy the target file to the desktop directory of the second computing device.
[0105] In a possible implementation manner, the device further includes:
[0106] The detection module is used to detect whether the target file is connected to the virtual optical drive interface of the virtual keyboard, display and mouse KVM component through the device manager udev before mounting the target file to the first directory of the second computing device when it is detected that the target file is connected to the virtual optical drive interface of the KVM component.
[0107] For the detailed description of the above optional methods, please refer to the above method embodiments, which will not be repeated here. In addition, the explanation of any file transmission device provided above and the description of the beneficial effects can refer to the above corresponding method embodiments, which will not be repeated here.
[0108] As an example, combining Figure 4 , some or all of the functions implemented in the acquisition module 510 and the storage module 520 in the file transmission device can be implemented by executing program codes through the BMC in the second computing device.
[0109] In an exemplary embodiment, a computer-readable storage medium is also provided, which is used to store at least one instruction, at least one program, code set or instruction set, and the at least one instruction, the at least one program, the code set or instruction set is loaded and executed by a processor to implement all or part of the steps in the above-mentioned file transmission method. For example, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.
[0110] In an exemplary embodiment, a computer program product or a computer program is also provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. The processor of the computing device reads the computer instructions from the computer-readable storage medium, and the processor of the first device and / or the second device in the file transfer system executes the computer instructions, so that the file transfer system performs the above Figure 4 All or part of the steps of the method shown in any embodiment.
[0111] In some embodiments, the method shown in the embodiments of the present application can be implemented as computer program instructions encoded in a machine-readable format on a computer-readable storage medium or encoded on other non-transitory media or products.
[0112] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0113] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0114] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0115] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0116] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0117] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A file transmission method, characterized in that: The method is applied to a file transmission system, the file transmission system includes a first computing device and a second computing device, and the method includes: The first computing device displays a remote control page, where the remote control page is a page of a virtual keyboard, display, mouse, KVM component of the second computing device; In response to a first operation, the first computing device connects the target file to the virtual optical drive interface of the KVM component; the first operation is an operation of dragging the target file into the remote control page, and the target file is a file stored in the first computing device; When the second computing device detects that the target file is connected to the virtual optical drive interface of the KVM component, the second computing device mounts the target file to a first directory of the second computing device; The second computing device copies the target file to a desktop directory of the second computing device; The first computing device displays the element corresponding to the target file in the remote control page.
2. The method according to claim 1, characterized in that If the remote control page is a hypertext markup language HTML page; in response to the first operation, the first computing device connects the target file to the virtual optical drive interface of the KVM component, including: In response to receiving a drag operation on an element corresponding to a target file through the remote control page, the first computing device connects the target file to the virtual optical drive interface of the KVM component through an HTML drag-and-drop interface.
3. The method according to claim 1 or 2, characterized in that: After the first computing device displays the element corresponding to the target file in the remote control page, the method further includes: The first computing device disconnects the target file from the virtual optical drive interface of the KVM component.
4. The method according to any one of claims 1 to 3, characterized in that: The file permission of the first directory is read-only.
5. A file transmission method, characterized in that: The method is applied to a second computing device, and the method includes: When it is detected that the target file is connected to the virtual optical drive interface of the virtual keyboard display mouse KVM component, the target file is mounted to the first directory of the second computing device; the target file is a file stored locally on the first computing device; the first computing device is used to display the remote control page of the KVM component of the second computing device; The target file is copied to the desktop directory of the second computing device.
6. The method according to claim 5, characterized in that When it is detected that the target file is connected to the virtual optical drive interface of the virtual keyboard display mouse KVM component, before mounting the target file to the first directory of the second computing device, the method further includes: Through the device manager udev, it is detected whether the target file is connected to the virtual optical drive interface of the KVM component.
7. A file transmission method, characterized in that: The method is applied to a first computing device, and the method includes: Display a remote control page, where the remote control page is a page of a virtual keyboard, display, mouse (KVM) component of the second computing device; In response to a first operation, connecting a target file to the virtual optical drive interface of the KVM component; the first operation is an operation of dragging the target file into the remote control page, and the target file is a file stored locally on the first computing device; An element corresponding to the target file is displayed in the remote control page; wherein, the element corresponding to the target file displayed in the remote control page indicates that the target file has been copied to the desktop directory of the second computing device.
8. The method according to claim 7, characterized in that If the remote control page is a hypertext markup language HTML page; in response to the first operation, connecting the target file to the virtual optical drive interface of the KVM component includes: In response to the remote control page receiving a drag operation on an element corresponding to a target file, the target file is connected to the virtual optical drive interface of the KVM component through an HTML drag-and-drop interface.
9. A computing device, characterized in that The computing device includes a processor and a display module; the display module is used to display a remote control page, the remote control page is a page of a virtual keyboard display mouse KVM component of the second computing device; the processor is used to connect the target file to the virtual optical drive interface of the KVM component in response to the first operation; The first operation is an operation of dragging the target file into the remote control page, and the target file is a file stored locally on the first computing device; The display module is further used to display the element corresponding to the target file in the remote control page; wherein, the element corresponding to the target file displayed in the remote control page indicates that the target file has been copied to the desktop directory of the second computing device.
10. A computing device, characterized in that The computing device comprises a baseboard management controller BMC; the BMC is used to mount the target file to a first directory of the second computing device when detecting that the target file is connected to the virtual optical drive interface of the virtual keyboard display mouse KVM component; The target file is a file stored locally on the first computing device; The first computing device is used to display a remote control page of the KVM component of the second computing device; and copy the target file to a desktop directory of the second computing device.
Citation Information
Cited By
File transmission method and device for remote desktop access based on BS architecture
CN120201023A
A file transmission method and device for remote desktop access based on a BS architecture
CN120201023B
File transfer method and computing device
WO2025251737A1
