File transfer method and computing device
By displaying a remote control page on the computing device and automating file access and copy operations, the low file transfer efficiency caused by manual operation in existing technologies is solved, and a highly efficient file transfer process is achieved.
Patent Information
- Application Number
- PCT/CN2025/084385
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-06-04
- Filing Date
- 2025-03-24
- Publication Date
- 2025-12-11
AI Technical Summary
In the existing technology, the process of transferring files to the server operating system (OS) relies on manual operation by the user, which results in low transmission efficiency and is prone to failure due to insufficient user experience or operational errors.
The first computing device displays a remote control page and responds to the user's drag-and-drop operation to connect the target file to the virtual optical drive interface of the KVM component. After detection, the second computing device mounts the file to the directory and copies it to the desktop directory, thus realizing automated file transfer.
It simplifies user operations, avoids transmission failures, and improves the efficiency and success rate of file transfer.
Smart Images

Figure CN2025084385_11122025_PF_FP_ABST
Abstract
Description
File transmission method and computing device
[0001] The present application claims priority to the Chinese patent application No. 202410719161.X, filed on June 04, 2024, the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD
[0002] Embodiments of the present application relate to the technical field of data transmission, in particular to a file transmission method and a computing device. BACKGROUND
[0003] In the use scenario of a computing device, such as a server, a technician needs to transmit a file related to firmware upgrade to an operating system (OS) of the server, so that the server performs firmware upgrade test using the file related to firmware upgrade, or a user needs to transmit a file related to a software installation package to the OS, so that the server installs corresponding software according to the file related to the software installation package.
[0004] Currently, in order to realize the transmission of the file to the OS of the server, the computing device can achieve the purpose of remotely controlling the server through a keyboard video mouse (KVM) component in a baseboard management controller (BMC) management platform, a user selects a file under a certain address in the local by manually starting a virtual optical drive under the KVM, and the file is mounted on the virtual optical drive, then a user on the server side needs to manually operate to store the file mounted on the virtual optical drive in the OS of the server by inputting a storage instruction, so as to complete the process of transmitting the file to the OS of the server.
[0005] In the related art, since the process of transmitting the file to the OS of the server cannot be separated from the user constantly sending commands and operations, it is necessary to rely on the user experience to determine whether the file transmission is successful, thereby resulting in low efficiency of transmitting the file to the OS. SUMMARY
[0006] Embodiments of the present application provide a file transmission method and a computing device, which simplify user operations and improve the efficiency of file transmission.
[0007] In a first aspect, the embodiments of the present application provide a file transmission method, the method is applied to a file transmission system, the file transmission system comprises a first computing device and a second computing device, and the method comprises the following steps: the first computing device displays a remote control page, the remote control page is a page of a virtual keyboard display and mouse KVM component of the second computing device; in response to a first operation, the first computing device connects a target file to a virtual CD-ROM 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 CD-ROM 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.
[0008] It can be understood that the remote control page of the KVM component of the second computing device can be displayed on 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 CD-ROM interface of the KVM component, and the second computing device can mount the target file to the first directory of the second computing device after detecting that the target file is connected to the virtual CD-ROM interface of the KVM component, and then the second computing device copies the target file to the desktop directory, so as to realize the purpose of transmitting the local target file of the first computing device to the OS of the second computing device, and enable the second computing device to perform normal read and write operations on the target file. The user only needs to complete the step of dragging the file, and the subsequent file transmission process is automatically completed by the first computing device and the second computing device, thereby avoiding the situation that the file transmission fails due to insufficient experience or operation errors of the user, and improving the efficiency of file transmission.
[0009] In a 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 CD-ROM interface of the KVM component, comprising: in response to receiving a drag operation on the element corresponding to the target file through the remote control page, the first computing device connects the target file to the virtual CD-ROM interface of the KVM component through an HTML drag-and-drop interface.
[0010] It can be understood that in the case that the remote control page is an HTML page, the HTML drag-and-drop interface can be used to receive the drag operation, so as to detect whether the target file is dragged into the remote control page.
[0011] 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 comprises: the first computing device disconnects the connection between the target file and the virtual CD-ROM interface of the KVM component.
[0012] It can be understood that, after the second computing device has successfully stored the target file under the desktop directory, which can be read and written 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.
[0013] In a possible implementation, the file mounted under the first directory is a read-only file.
[0014] It can be understood that, the specified mount point can be set as read-only, and the target file can be mounted under the specified mount point, so as to ensure that the target file has read-only permission for the second computing device.
[0015] In a second aspect, an embodiment of the present application provides a file transmission method, which is applied to a second computing device, and the method comprises the following steps: when detecting that a target file accesses a virtual optical drive interface of a KVM component, mounting the target file to a first directory of the second computing device; the target file is a file stored locally in a 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 copying the target file to a desktop directory of the second computing device.
[0016] It can be understood that, by displaying the remote control page of the KVM component of the second computing device through the first computing device, after the first computing device receives a first operation on the target file, the first computing device can access the virtual optical drive interface of the KVM component with the local target file, and the second computing device can mount the target file to the first directory of the second computing device after detecting that the target file accesses the virtual optical drive interface of the KVM component, and then the second computing device copies the target file to the desktop directory, so as to achieve the purpose of transmitting the local target file of the first computing device to the OS of the second computing device, and enable the second computing device to perform normal read and write operations on the target file. By simplifying the operation steps of the user, the file transmission process is automatically completed by the first computing device and the second computing device, and the situation of file transmission failure caused by insufficient user experience or operation errors is avoided, thereby improving the efficiency of file transmission.
[0017] In a possible implementation, before mounting the target file to the first directory of the second computing device when detecting that the target file accesses the virtual optical drive interface of the KVM component, the method further comprises the following step: detecting, by a device manager udev, whether the target file accesses the virtual optical drive interface of the KVM component.
[0018] In a third aspect, an embodiment of the present application provides a file transmission method, the method being applied to a first computing device, and the method comprising: displaying a remote control page, the remote control page being a page of a virtual keyboard, display, mouse, KVM component of a second computing device; in response to a first operation, connecting a target file to a virtual CD-ROM interface of the KVM component, the first operation being an operation of dragging the target file to the remote control page, the target file being a file stored locally on the first computing device; displaying an element corresponding to the target file in the remote control page; and wherein the display of the element corresponding to the target file in the remote control page indicates that the target file has been copied to a desktop directory of the second computing device.
[0019] It can be understood that, by displaying the remote control page of the KVM component of the second computing device 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 target file can be transmitted 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 operation steps of the user, the process of file transmission is automatically completed by the first computing device and the second computing device, and the situation of file transmission failure caused by insufficient user experience or operation errors is avoided, thereby improving the efficiency of file transmission.
[0020] In a possible implementation, 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 CD-ROM interface of the KVM component comprises: in response to the remote control page receiving the drag operation on the element corresponding to the target file, connecting the target file to the virtual CD-ROM interface of the KVM component through an HTML drag-and-drop interface.
[0021] It can be understood that, in the case where the remote control page is an HTML page, the HTML drag-and-drop interface can be used to receive the drag operation, thereby detecting whether the target file is dragged to the remote control page.
[0022] In a fourth aspect, an embodiment of the present application provides a file transmission device, the file transmission device being used to execute any one of the file transmission methods provided in the second aspect.
[0023] In a possible implementation, the file transmission apparatus can be divided into function modules according to the method provided in the second aspect. For example, each function module can be divided according to each function, or two or more functions can be inherited in one processing module. For example, the file transmission apparatus can be divided into a mounting module, a copying module, and the like according to functions. The possible technical solutions and beneficial effects of each function module described above can be referred to the technical solutions provided in the second aspect or the corresponding possible implementation, which will not be described here.
[0024] In a fifth aspect, an embodiment of the present application provides a file transmission apparatus, which is used to execute any one of the file transmission methods provided in the third aspect.
[0025] In a possible implementation, the file transmission apparatus can be divided into function modules according to the method provided in the third aspect. For example, each function module can be divided according to each function, or two or more functions can be inherited in one processing module. For example, the file transmission apparatus can be divided into a first display module, an access module, and a second display module according to functions. The possible technical solutions and beneficial effects of each function module described above can be referred to the technical solutions provided in the third aspect or the corresponding possible implementation, which will not be described here.
[0026] In a sixth aspect, an embodiment of the present application provides a computing device, which includes a processor and a display module. The display module is used to display a remote control page, and the remote control page is a page of a virtual keyboard display and mouse KVM component of a second computing device. The processor is used to respond to a first operation to access a target file to a virtual CD-ROM interface of the KVM component. The display module is further used to display an element corresponding to the target file in the remote control page. The element corresponding to the target file in the remote control page indicates that the target file has been copied to a desktop directory of the second computing device.
[0027] In a possible implementation, if the remote control page is a hypertext markup language (HTML) page, the processor is further used to respond to a drag operation on the element corresponding to the target file received by the remote control page to access the target file to the virtual CD-ROM interface of the KVM component through an HTML drag-and-drop interface.
[0028] In a seventh aspect, an embodiment of the present application provides a computing device, the computing device comprising a baseboard management controller (BMC), the BMC being configured to: mount a target file to a first directory of a second computing device when detecting that the target file accesses a virtual CD-ROM interface of a keyboard video mouse (KVM) component; the target file being a file stored locally on the first computing device; the first computing device being configured to display a remote control page of the KVM component of the second computing device; a permission of the target file being set as a read-only file; and copy the target file to a desktop directory of the second computing device.
[0029] In a possible implementation, before the mounting of the target file to the first directory of the second computing device when detecting that the target file accesses the virtual CD-ROM interface of the KVM component, the BMC is further configured to: detect, by a device manager (udev), whether the target file accesses the virtual CD-ROM interface of the KVM component.
[0030] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium storing at least one computer program instruction, the computer program instruction being loaded and executed by a file transfer system to implement the file transfer method according to the above aspects.
[0031] In a ninth aspect, an embodiment of the present application provides a computer program product, the computer program product comprising computer instructions stored in a computer-readable storage medium. A processor of a first device and / or a second device of a file transfer system reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the file transfer system to perform the file transfer method provided in various possible implementation manners of the above aspects.
[0032] The detailed description of the fourth aspect to the ninth aspect and various implementation manners thereof in the embodiments of the present application can refer to the detailed description in the first aspect and various implementation manners thereof, the second aspect and various implementation manners thereof, and the third aspect and various implementation manners thereof. In addition, the beneficial effects of the fourth aspect to the ninth aspect and various implementation manners thereof can refer to the beneficial effect analysis in the first aspect and various implementation manners thereof, the second aspect and various implementation manners thereof, and the third aspect and various implementation manners thereof, which will not be described herein again.
[0033] These aspects and other aspects of the embodiments of the present application will be more apparent in the following description. BRIEF DESCRIPTION OF DRAWINGS
[0034] FIG. 1 is a schematic diagram of a framework of a file transfer system according to an example embodiment;
[0035] FIG. 2 is a schematic diagram of a computing device according to an example embodiment;
[0036] FIG. 3 is a schematic diagram of a computing device according to an example embodiment;
[0037] FIG. 4 is a flow diagram of a file transmission method according to an example embodiment;
[0038] FIG. 5 is a schematic diagram of a target file drag-and-drop upload according to an example embodiment;
[0039] FIG. 6 is a schematic diagram of a file transmission apparatus according to an example embodiment;
[0040] FIG. 7 is a schematic diagram of a file transmission apparatus according to an example embodiment. DETAILED DESCRIPTION
[0041] In the embodiments of the present application, the word "exemplary" or "for example" is used to mean serving as an example, instance, or illustration. Any implementation or design solution described as "exemplary" or "for example" in the embodiments of the present application should not be construed as being preferred or advantageous over other implementations or design solutions. Rather, the use of the word "exemplary" or "for example" is intended to present concepts in a concrete manner.
[0042] In the embodiments of the present application, the terms "first", "second", etc. are used only for descriptive purposes, and should not be construed as indicating or implying relative importance or a specific number of technical features indicated. Therefore, the features defined with "first", "second", etc. can explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, the meaning of "a plurality of" is two or more.
[0043] First, the application scenarios of the embodiments of the present application are exemplarily introduced.
[0044] In the use scenarios of computing devices, especially in the use scenarios of servers, there is a need to transmit files into the OS of the server. For example, a technician needs to transmit files related to firmware upgrade to the OS of the server, so that the server can perform firmware upgrade test using the files related to firmware upgrade, or a user needs to transmit files related to software installation package to the OS of the server, so that the server can install corresponding software according to the files related to software installation package. Therefore, the efficiency and convenience of transmitting files into the OS of the server are increasingly important.
[0045] Currently, in order to realize the transmission of the file into the OS of the server, the computing device can achieve the purpose of remotely controlling the server through the KVM component in the BMC management platform, manually start the virtual optical drive under the KVM, then the user manually selects a file under a certain address locally, realizes the purpose of mounting the file on the virtual optical drive, and then the user on the server side needs to input the storage instruction to manually operate the file mounted on the virtual optical drive to be stored in the OS of the server, so as to complete the process of transmitting the file into the OS of the server.
[0046] The BMC management platform is used for remotely managing the server. The computing device can log in to the BMC management platform through the browser, and input the account (such as 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 logged-in BMC management platform.
[0047] Specifically, managing the server through the BMC management platform can include controlling the power-on, power-off, and restart of the server, or can also include detecting the states of the processor (central processing unit, CPU), hard disk, power supply, network, etc., or can also include redirecting the remote login server using the Internet standard (HTML5), or can also include viewing the system log of the server. In the implementation of the function of remotely logging into the server, the KVM component can be used to display the remote control page. The server being remotely logged into is installed with the BMC management platform, the BMC management platform includes the KVM component, and the computing device remotely logging into the server logs in to the BMC management platform through the browser to display the 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 OS of the server.
[0048] The KVM component can achieve the purpose of accessing and controlling the computer by directly connecting the ports of the keyboard, display, and mouse. Through the KVM technology, the server does not need to modify the software, that is, through the KVM component in the BMC management platform, the server can be accessed at any time, and the servers located in multiple remote locations can be directly accessed through the KVM component in the BMC management platform.
[0049] That is, the server is installed with the BMC management platform, the BMC management platform has the KVM component, and the computing device logging in to the BMC management platform through the browser can achieve the purpose of remotely controlling the server through the KVM component in the BMC management platform.
[0050] Currently, the process of copying and storing a file by a server-side user needs the user to manually send an instruction to indicate the storage location, and also causes the user to be unable to accurately issue an instruction to copy the file path in the case of not knowing the access permission of the OS to the file under each directory. Since the user needs to perform more and complex operations, the efficiency of storing the file in the OS is low.
[0051] In addition, the file can also be transmitted to the OS by remotely connecting to the OS of the server through additional software installed in the computing device, such as MobaXterm, WinSCP, etc. This results in the need to install additional software, ensure the existence of a business network port, and maintain normal transmission function of the business network between the computing device and the server, which has a high requirement for software and network. If there is a network problem, the file transmission cannot be performed.
[0052] Therefore, 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 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 can mount the target file to the first directory of the second computing device and set the permission of the target file as a read-only file. Then, the second computing device copies the target file to the desktop directory, so as to achieve the purpose of transmitting the local target file of the first computing device to the OS of the second computing device, and enable the second computing device to perform normal read and write operations on the target file. By simplifying the operation steps of the user, the process of file transmission is automatically completed by the first computing device and the second computing device, which avoids the situation of file transmission failure caused by insufficient user experience or operation error, thereby improving the efficiency of file transmission.
[0053] Secondly, the system architecture of the embodiment of the present application is exemplarily introduced.
[0054] FIG. 1 shows a schematic diagram of a framework of a file transmission system according to an embodiment of the present application. As shown in FIG. 1, the file transmission system 200 includes at least a first computing device 20 and a second computing device 30. The first computing device 20 logs in a BMC management platform through a browser, and remotely manages the second computing device 30 through the BMC management platform installed in the second computing device 30. After the first computing device 20 logs in the BMC management platform, the first computing device 20 can receive an operation received through a keyboard, a display, and a mouse interface, such as a drag operation on a target file placed in a remote control page displayed on the first computing device 20 for remotely controlling the second computing device 30, through a KVM component included in the BMC management platform installed in the second computing device 30. Then, the first computing device 20 can access a virtual optical drive interface, the second computing device 30 can detect the file accessed to the virtual optical drive interface, and mount the file accessed to the virtual optical drive interface to a first directory in a server, and then copy the file in the first directory of the server to a desktop directory, and the storage location of the desktop directory corresponding to the file storage is located in a memory 32 corresponding to an OS run by a processor 31 of the second computing device 30.
[0055] Optionally, the first computing device 20 can be a personal computer (PC) device, 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 can be a server.
[0056] FIG. 2 shows a schematic diagram of a computing device according to an embodiment of the present application. The computing device 100 can be the first computing device. In terms of hardware, the computing device 100 includes a CPU 101, a memory 102, and a display module 103.
[0057] The CPU 101 can be configured to run a browser to log in a BMC management platform. The memory 102 can be configured to store a local target file. The display module 103 can be configured to display a remote control page.
[0058] Optionally, the computing device 100 can be a server, a computer device, or a terminal.
[0059] In addition, FIG. 3 shows a schematic diagram of a computing device according to an embodiment of the present application. The computing device 300 can be the second computing device. In terms of hardware, the computing device 300 includes a CPU 301, a BMC 302, and a memory 303.
[0060] The CPU 301 can be configured to run an operating system.
[0061] The BMC 302 can be an independent chip integrated on a mainboard of the computing device 300. The BMC can run a small operating system independent of a server operating system. The BMC 302 can be used to manage core functions of the computing device 300, such as a hardware state, an operating system, a health state, and power consumption management. The BMC 302 can run an installed BMC management platform. The KVM component is included in the installed BMC management platform.
[0062] The memory 303 can be used to store files that support read and write operations under the OS.
[0063] In terms of software, the computing device 300 can run an OS through a kernel of the CPU 301. The OS can run application programs to process different services.
[0064] Optionally, the computing device 300 can be a server or a computer device.
[0065] It should be noted that the system architecture and application scenarios described in the embodiments of the present application are used 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 by the embodiments of the present application. Those skilled in the art can know that, with the evolution of system architecture and the appearance of new business scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.
[0066] To facilitate understanding, the file transmission method provided by the present application is exemplarily introduced below in combination with the accompanying drawings. The file transmission method is applicable to the file transmission system shown in FIG. 1.
[0067] FIG. 4 shows a flowchart of a file transmission method provided by an example embodiment of the present application. The file transmission method can be applied to a file transmission system, such as the file transmission system 200 shown in FIG. 1. The file transmission method includes the following steps:
[0068] S101, a first computing device displays a remote control page.
[0069] In the embodiments of the present application, the first computing device can log in to a BMC management platform through a browser and display a remote control page for remotely controlling a second computing device through a KVM component in the BMC management platform.
[0070] The remote control page can be a page used to remotely control the second computing device through the KVM component after logging in to the BMC management platform through the browser. The second computing device is a computing device to which a target file needs to be transmitted into an OS running in the second computing device. The second computing device can be a server.
[0071] S102, in response to the first operation, the first computing device accesses the target file to a virtual CD-ROM interface of the KVM component.
[0072] In the embodiments of the present application, the first operation is an operation of dragging the target file into the remote control page, and the first operation can be a drag operation performed by a user on the target file of the first computing device.
[0073] If the remote control page is a hyper text 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 accesses the target file to a virtual CD-ROM interface of the KVM component through an HTML drag and drop interface.
[0074] The drag operation can be an operation of clicking the element by a mouse cursor and releasing the cursor at a specified position.
[0075] The target file is a file stored locally on the first computing device. That is, the target file is a file that needs to be transmitted to the OS of the second computing device and is currently stored locally on the first computing device.
[0076] The element of the target file can be an icon of the target file or the like that supports dragging. The remote control page can include a placeable element that is an element in the remote control page that supports identifying whether an element is placed thereon. That is, the placeable element can be a specified area in the remote control page for triggering uploading of a file.
[0077] When the first computing device detects that the element of the target file is placed in the specified area, a process of accessing the target file to the interface of the virtual CD-ROM can be automatically triggered. The drag operation can simplify the operation steps of the user and avoid problems of file transmission failure caused by user operation problems.
[0078] For example, the HTML drag and drop interface enables an application to use the drag and drop function in a browser. For example, a user can select a draggable element, such as an icon corresponding to the target file, using a mouse. The user drags the element to a placeable element in the remote control page, and releases the mouse cursor to place the element in the placeable element, that is, to place the icon of the target file in the specified position in the remote control page. During the drag operation, a translucent snapshot of the draggable element follows the mouse cursor. After the element is placed in the placeable element, the virtual CD-ROM accesses the target file corresponding to the placeable element by detecting the translucent snapshot.
[0079] In a possible implementation, the first computing device can access the target file to a virtual CD-ROM interface of the KVM component by accessing the target file to a storage space of the first computing device connected with the virtual CD-ROM interface.
[0080] For example, the first computing device determines to perform the first operation on the target file in the remote control page and reads the target file by using an HTML drag and drop interface provided by HTML 5 and a file API interface. When the HTML detects an interaction event corresponding to the drag operation, the first computing device can notify a virtual CD-ROM interface of the KVM component to access the read target file to a "local file" interface of the virtual CD-ROM of the KVM component and automatically connect the virtual CD-ROM, that is, a storage space in the first computing device connected with the virtual CD-ROM interface of the KVM component.
[0081] S103, when the second computing device detects that the target file accesses the virtual CD-ROM interface of the KVM component, the second computing device mounts the target file to a first directory of the second computing device and copies the target file in the first directory to a desktop directory of the second computing device.
[0082] In a possible implementation, in response to the second computing device detecting that the target file accesses the virtual CD-ROM interface of the KVM component, the second computing device mounts the target file to a first directory of the second computing device.
[0083] In a possible implementation, the second computing device can detect whether the target file accesses the virtual CD-ROM interface of the KVM component by using a device manager (udev).
[0084] The udev is a device management tool of an OS, which can manage device files in a / dev directory by listening to a kernel and can dynamically update the device files according to states of devices in the system.
[0085] In one case, after the second computing device detects that the target file accesses the virtual CD-ROM interface of the KVM component, the second computing device can mount the target file to a specified mounting point in a first directory of the second computing device, and then the second computing device copies the target file mounted in the specified mounting point to a desktop directory for storage. The target file mounted in the specified mounting point is a read-only file.
[0086] In another case, after the second computing device detects that the target file accesses the virtual CD-ROM interface of the KVM component, the second computing device can mount the target file to a first directory of the second computing device, and then the second computing device copies the target file mounted in the first directory to a desktop directory for storage. The target file in the first directory can be set as a read-only file.
[0087] For example, after detecting that the target file accesses the virtual optical drive, the second computing device can trigger the udev mechanism to customize a response script, which is used to indicate a storage step. After the udev detects that the target file accesses the virtual optical drive interface of the KVM component, the following three steps are performed: first, the second computing device mounts the file in a first directory, for example, the / mnt directory of the OS, wherein the file mounted in the / mnt directory is a read-only file; then the file in the / mnt directory is copied to a desktop directory, for example, the desktop (Desktop) of the server, wherein the file stored in the desktop directory supports read-write operation.
[0088] In S104, the first computing device displays an element corresponding to the target file in the remote control page.
[0089] In the embodiment of the present application, when the first computing device displays the element corresponding to the target file in the remote control page, the target file has been transmitted to the OS of the second computing device and supports read-write operation of the target file by the OS.
[0090] In a possible implementation, after transmitting the target file to the OS of the second computing device, the first computing device can disconnect the connection between the target file and the virtual optical drive interface of the KVM component.
[0091] Displaying the 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 transmitted to the OS of the second computing device.
[0092] For example, FIG. 5 is a schematic diagram of target file drag-and-drop upload according to an embodiment of the present application. As shown in FIG. 5, 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 certain folder of the first computing device and dragging the icon of the target file to the remote control page 10 and releasing the mouse, the first computing device can recognize the drag operation of the target file and mount the target file on the virtual optical drive. Then, the second computing device detects that the target file accesses the virtual optical drive interface of the KVM component through the udev mechanism, mounts the target file in the / mnt directory of the OS, wherein the file mounted in the / mnt directory is a read-only file; then the target file in the / mnt directory is copied to a desktop directory, for example, the desktop (Desktop) of the server, wherein the file stored in the desktop directory supports read-write operation; finally, the action of unmounting and ejecting the virtual optical drive is performed. The first computing device displays the icon of the target file in the remote control page 10, which indicates that the target file has been transmitted to the OS of the second computing device.
[0093] In summary, the remote control page of the KVM component of the second computing device can be displayed by the first computing device, after the first computing device receives the first operation on the target file, the first computing device can access the local target file 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 after detecting that the target file is accessed to the virtual optical drive interface of the KVM component, and then the second computing device copies the target file to the desktop directory, so as to realize that the first computing device transmits 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 operation steps of the user, the file transmission process is automatically completed by the first computing device and the second computing device, which avoids the situation that the file transmission fails due to insufficient user experience or operation error, thereby improving the efficiency of file transmission.
[0094] The above mainly introduces the scheme of the embodiments of the present application from the perspective of the method. It can be understood that the file transmission device contains at least one of the corresponding hardware structure and software module for executing each function in order to realize the above functions. Those skilled in the art should easily realize that the units and algorithm steps of each example described in combination with the embodiments disclosed in the present application can be realized in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the form of hardware or computer software driven hardware depends on the specific application and design constraints of the technical scheme. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0095] The embodiments of the present application can divide the functional units of the file transmission device according to the above method examples, for example, each functional unit can be divided according to each function, or two or more functions can be integrated in one processing unit. The integrated unit can be realized in the form of hardware or software functional unit. It should be noted that the division of units in the embodiments of the present application is illustrative, and is only a logical function division. Actual implementation can have another division method.
[0096] For example, FIG. 6 shows a structural schematic diagram of a file transmission device 500 provided by an example embodiment of the present application. The file transmission device 500 is applied to the first computing device, and the file transmission device 500 includes:
[0097] The first display module 410 is configured to display a remote control page, and the remote control page is a page of a virtual keyboard display and mouse KVM component of the second computing device;
[0098] The access module 420 is configured to access the target file to a virtual CD-ROM 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.
[0099] The second display module 430 is configured to display an element corresponding to the target file in the remote control page; and the display of the element corresponding to the target file in the remote control page indicates that the target file has been copied to a desktop directory of the second computing device.
[0100] In a possible implementation, the remote control page is an HTML page; and the access module 420 is further configured to access the target file to the virtual CD-ROM interface of the KVM component through an HTML drag-and-drop interface in response to the remote control page receiving a drag operation on the element corresponding to the target file.
[0101] For a specific description of the above optional mode, refer to the foregoing method embodiments, which will not be repeated here. In addition, the explanation and beneficial effect of any one of the above-provided file transmission apparatuses can refer to the corresponding method embodiments described above, which will not be repeated here.
[0102] As an example, in combination with FIG. 4, the functions implemented by part or all of the first display module 410, the access module 420 and the second display module 430 in the file transmission apparatus can be implemented by the CPU in the first computing device executing program code.
[0103] As an example, FIG. 7 shows a structural schematic diagram of a file transmission apparatus 600 provided in an example embodiment of the present application. The file transmission apparatus 600 is applied to a second computing device, and the file transmission apparatus 600 includes:
[0104] The mounting module 510 is configured to mount the target file to a first directory of the second computing device when detecting that the target file accesses a virtual CD-ROM interface of a virtual keyboard display and mouse (KVM) component; the target file is a file stored locally on the first computing device; and the first computing device is configured to display a remote control page of the KVM component of the second computing device.
[0105] The copying module 520 is configured to copy the target file to a desktop directory of the second computing device.
[0106] In a possible implementation, the apparatus further includes:
[0107] The detection module is configured to, before mounting the target file to the first directory of the second computing device, detect, through a device manager (udev), whether the target file accesses the virtual CD-ROM interface of the KVM component.
[0108] The above-mentioned optional manners can refer to the foregoing method embodiments, and details are not described herein. In addition, the above-mentioned explanations and beneficial effects of any one of the file transmission apparatuses can refer to the corresponding method embodiments, and details are not described herein.
[0109] For example, in combination with FIG. 4, the functions implemented by part or all of the acquisition module 510 and the storage module 520 in the file transmission apparatus can be implemented by executing program codes in the BMC of the second computing device.
[0110] In an example embodiment, a computer-readable storage medium is also provided, which stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by a processor to implement all or part of the steps of 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 and an optical data storage device, etc.
[0111] In an example embodiment, a computer program product or a computer program is also provided, which includes computer instructions 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 of the file transmission system executes the computer instructions, so that the file transmission system executes all or part of the steps of the method shown in any one of the embodiments of FIG. 4.
[0112] 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 storage medium or other non-transitory medium or article in a machine-readable format.
[0113] Through the description of the above embodiments, those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above functional modules is exemplified, and in actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
[0114] In 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 illustrative, for example, the division of the modules or units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another device, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed units can be indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0115] The units described as separate components can or can not be physically separated, and the components shown as units can be one physical unit or multiple physical units, that is, they can be located in one place or distributed to multiple different places. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment scheme.
[0116] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.
[0117] The integrated unit, if realized in the form of a software functional unit and sold or used as an independent product, can be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application essentially or the parts that make contributions to the prior art or all or part of the technical solutions can be embodied in the form of a software product, which is stored in a storage medium and includes a plurality of instructions to make a device (which can be a single-chip microcomputer, a chip, etc.) or a processor execute all or part of the steps of the methods described in the embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various storage medium that can store program codes.
[0118] The above merely provides the optional embodiments of the present application, and is not intended to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A file transfer method characterized by, The method is applied to a file transmission system, the file transmission system comprising a first computing device and a second computing device, and the method comprises: The first computing device displays a remote control page, the remote control page being 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 accesses 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 in the first computing device; When the second computing device detects that the target file is accessed 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 an element corresponding to the target file in the remote control page.
2. The method of claim 1, wherein, If the remote control page is an HTML page; the first computing device accesses the target file to the virtual optical drive interface of the KVM component in response to the first operation, comprising: In response to receiving a drag operation on the element corresponding to the target file through the remote control page, the first computing device accesses 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 comprises: The first computing device disconnects the connection between the target file and 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 mounted by the first directory is a read-only file.
5. A file transfer method characterized by, The method is applied to a second computing device, and the method comprises: When detecting that a target file is accessed to a virtual optical drive interface of a virtual keyboard display mouse KVM component, mounting the target file to a first directory of the second computing device; the target file is a file stored locally in a first computing device; the first computing device is configured to display a remote control page of the KVM component of the second computing device; Copying the target file to a desktop directory of the second computing device.
6. The method of claim 5, wherein, Before mounting the target file to the first directory of the second computing device when detecting that the target file is accessed to the virtual optical drive interface of the virtual keyboard display mouse KVM component, the method further comprises: Detecting, by a device manager udev, whether the target file is accessed to the virtual optical drive interface of the KVM component.
7. A file transfer method characterized by, The method is applied to a first computing device, and the method comprises: Displaying a remote control page, the remote control page being a page of a virtual keyboard display mouse KVM component of the second computing device; In response to a first operation, accessing 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 in the first computing device; Displaying an element corresponding to the target file in the remote control page, wherein displaying the element corresponding to the target file in the remote control page indicates that the target file has been copied to a desktop directory of the second computing device.
8. The method of claim 7, wherein, If the remote control page is a HyperText Markup Language (HTML) page, the responding to the first operation to access the target file to a virtual CD-ROM interface of the KVM component includes: In response to the remote control page receiving a drag operation on the element corresponding to the target file, the target file is accessed to the virtual CD-ROM interface of the KVM component through an HTML drag-and-drop interface.
9. A computing device, comprising: The computing device includes a processor and a display module; the display module is configured to display a remote control page, the remote control page being a page of a virtual keyboard display mouse (KVM) component of the second computing device; the processor is configured to respond to a first operation to access a target file to a virtual CD-ROM 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; The display module is further configured to display an element corresponding to the target file in the remote control page, wherein displaying the element corresponding to the target file in the remote control page indicates that the target file has been copied to a desktop directory of the second computing device.
10. A computing device, comprising: The computing device includes a baseboard management controller (BMC); the BMC is configured to, when detecting that a target file accesses a virtual CD-ROM interface of a virtual keyboard display mouse (KVM) component, mount the target file to a 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 configured 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
Patent Citations
File transmission method and system under virtual desktop infrastructure
CN105338048A
Method and system for transmitting local file data to virtual machine block device
CN116506417A
File transmission method and system, computing device and storage medium
CN117424889A
File transmission method and computing device
CN118802898A
Virtual optical disc drive generating method and apparatus, and computer readable storage medium
WO2022156507A1