Data transmission method, electronic equipment and readable medium

By mounting the target listener in the file explorer of the electronic device, monitoring and filtering data transmission messages, the problem that NAS client applications need to deal with a large number of irrelevant messages during data transmission is solved, and the data transmission efficiency and application response speed are improved.

CN119902691AActive Publication Date: 2025-04-29HUAWEI TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202311407621.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-26
Publication Date
2025-04-29
Estimated Expiration
2043-10-26

AI Technical Summary

Technical Problem

When existing NAS client applications perform data transmission, they need to listen to and filter a large number of unrelated data transmission messages, resulting in reduced data transmission efficiency and application lag.

Method used

By mounting a target listener (such as a copy hook program) in the file explorer of an electronic device, monitoring and filtering data transmission messages, only messages belonging to the NAS client application are passed to the application, thereby reducing the filtering process of redundant messages.

Benefits of technology

It improves the data transmission efficiency of NAS client applications, reduces the response time of the application, and prevents lag.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119902691A_ABST
    Figure CN119902691A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of electronics, in particular to a data transmission method, electronic equipment and a readable medium. The method is used for the electronic equipment provided with a first application and a second application, and comprises the following steps: under the condition that the first application monitors a data transmission message from a memory managed by the second application to the memory managed by the first application, sending a transmission path in the data transmission message to the second application. Based on the scheme, the second application only receives the information related to the data transmission service of the second application, so that the filtering operation of the second application on redundant messages, such as messages of other applications, is avoided, and the processing efficiency of the second application can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic technology, and in particular to a data transmission method, an electronic device and a readable medium. Background Art

[0002] With the rapid development of science and technology, the amount of data that electronic devices need to process and store is increasing. In the context of the data explosion, the storage space of electronic devices themselves is at risk of being overcapacity and cannot guarantee to meet user needs. Therefore, network attached storage (NAS) came into being. NAS, as an attached storage of the local storage of electronic devices, is also called a private cloud. It can store various types of data such as photos, videos, documents, etc., and provide expansion space for electronic devices. Electronic devices can transmit data to and from NAS, such as uploading data from electronic devices to NAS, or downloading data from NAS to electronic devices. The existence of NAS enables the storage space of electronic devices to be released, and users can download data from NAS at any time.

[0003] In the related art, data transmission between an electronic device and a NAS can be implemented through a NAS client application on the electronic device side. When a user performs a transmission operation on the NAS client application and attempts to transmit data from the NAS, the NAS client application needs to monitor all data transmission messages in the electronic device system, such as the data transmission source path and target path corresponding to the user's transmission operation, that is, the NAS client application also needs to monitor data transmission messages of other applications except the NAS client application. Therefore, the NAS client application also needs to filter and process irrelevant messages to obtain data operation messages related to the NAS client application, and then perform data transmission operations based on the filtered messages. Among them, the filtering step may consume a lot of time, thereby reducing the data transmission efficiency of the NAS client application. Summary of the invention

[0004] The purpose of the present application is to provide a data transmission method, an electronic device and a readable medium.

[0005] In a first aspect, an embodiment of the present application provides a data transmission method, which is applied to an electronic device, on which a first application (e.g., a file explorer application) and a second application (e.g., a NAS client application) are installed, the method comprising: the first application detects that there is a first data transmission message belonging to the second application among multiple data transmission messages, wherein the first data transmission message indicates that first data managed by the second application is transferred from a first memory to a second memory managed by the first application; the first application sends first transmission information to the second application, wherein the first transmission information includes a transmission path of the first data in the first data transmission message.

[0006] That is, in the embodiment of the present application, the data transmission message is a message in the first application related to the first application, and specifically can be a copy message, such as a FO_COPY message. The electronic device can be a device installed with the first application and the second application, including but not limited to a mobile phone, a personal computer, a tablet computer, a wearable device (such as a smart watch, a smart bracelet, etc.), a vehicle-mounted device (such as a car computer, etc.), an Internet of Things device, a smart home device (such as a smart TV, etc.), etc. The first application is used to manage data in the second memory, and the second application is used to manage data in the first memory.

[0007] Through a data transmission method of the present application, a data transmission message can be filtered through a first application to obtain a first data transmission message belonging to a second application, and then the first data transmission message is sent to the second application for processing. In this way, the second application no longer needs to filter redundant messages, such as data transmission messages of other applications, and can directly perform data transmission based on the received first data transmission message, that is, transfer the first data from the first storage to the second storage, thereby improving the data transmission efficiency of the second application and preventing the second application from freezing.

[0008] In a possible implementation of the first aspect mentioned above, a target monitoring program is mounted in the first application; the first application detects that there is a first data transmission message belonging to the second application among multiple data transmission messages, including: the target monitoring program in the first application detects that there is a first data transmission message belonging to the second application among multiple data transmission messages.

[0009] That is, in an embodiment of the present application, the target monitoring program (also known as the target listening program) can be a hook program, such as a CopyHook application. The target monitoring program can be developed by a second application and injected into the first application by the second application, so that the target monitoring program is mounted in the first application. It can be understood that when the second application is started, the second application mounts the target monitoring program to the first application. The second application can flexibly set the filtering conditions of the target monitoring program to achieve accurate filtering of messages sent from the first application to the second application.

[0010] In a possible implementation of the first aspect above, the first data transmission message is generated based on a first operation of the user, and the first operation includes: dragging first data of the interface of the second application to the interface of the first application.

[0011] That is, in the embodiment of the present application, the first operation may include a drag operation.

[0012] In a possible implementation of the first aspect above, the method also includes: the second application establishes a data transmission pipeline between the first application and the second application, wherein the first application has the right to use the data transmission pipeline; the first application sends the first transmission information to the second application, including: the first application sends the first transmission information to the second application through the data transmission pipeline.

[0013] That is, in an embodiment of the present application, the data transmission pipe can be a named pipe, wherein the second application can grant the first application the permission to open the named pipe when creating the named pipe, even if the first application has the permission to use the named pipe. By transmitting business messages through named pipes, business messages can be prevented from being received and processed by other clients.

[0014] In a possible implementation of the first aspect above, a data transmission message includes a data transmission path, and the transmission path includes a source path and a target path; at least one of the source path and the target path of the data of the data transmission message belongs to a second memory; the first application detects that there is a first data transmission message belonging to the second application among multiple data transmission messages, including: the first application detects that there is a data transmission message among multiple data transmission messages whose source path belongs to the first memory and whose target path belongs to the second memory.

[0015] That is, in an embodiment of the present application, the source path of the first data transmission message belongs to the first memory and the target path belongs to the second memory. It can be understood that at least one of the source path and the target path of the data transmission message belongs to the second memory, so as long as the source path of the data transmission message belongs to the first memory, the target path must belong to the second memory. Optionally, the first application can filter the source path of the data transmission message to obtain the first data transmission message whose source path belongs to the first memory.

[0016] In a possible implementation of the first aspect above, the method further includes: the second application transmitting the first data from a source path of the first data to a target path of the first data.

[0017] That is, in the embodiment of the present application, the second application may transmit the first data from the source path of the first data to the target path of the first data based on the received first data transmission message.

[0018] In a possible implementation of the first aspect described above, the first memory includes at least one of a cloud memory and a local memory, and the second memory is a local memory of the electronic device.

[0019] That is, in an embodiment of the present application, the first memory includes a cloud memory and / or a local memory, such as a cloud memory and a local memory of a network attached storage; the second memory is a local memory of the electronic device, such as a local disk.

[0020] In a possible implementation of the first aspect above, the first application is a file resource manager application, and the second application is a network attached storage client application.

[0021] That is, in an embodiment of the present application, the first application is a file explorer application, which is used to manage data in the local storage of the electronic device; the second application is a network attached storage client application, and a user can log in to an account to perform management operations on the data or files in the network attached storage, such as downloading data in the network attached storage to the local.

[0022] In a second aspect, an embodiment of the present application provides an electronic device, comprising: a memory for storing instructions executed by one or more processors of the electronic device, and a processor for executing instructions of the data transmission method of the first aspect.

[0023] In a third aspect, an embodiment of the present application provides a readable medium having instructions stored thereon, and when the instructions are executed on an electronic device, the electronic device executes the data transmission method of the first aspect.

[0024] In a fourth aspect, an embodiment of the present application provides a computer program product, comprising: a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium contains a computer program code for executing the data transmission method of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0026] Figure 1A According to the present application, a schematic diagram of a first file transfer scenario is shown;

[0027] Figure 1B According to the present application, a second file transfer scenario schematic diagram is shown;

[0028] Figure 2According to the present application, a schematic diagram of a file transfer interaction process is shown;

[0029] Figure 3 According to an embodiment of the present application, a flow chart of a data transmission method is shown;

[0030] Figure 4 According to an embodiment of the present application, a schematic diagram of an interaction process of a data transmission method is shown;

[0031] Figure 5 According to an embodiment of the present application, a hardware structure diagram of an electronic device 100 is shown. DETAILED DESCRIPTION

[0032] The technical solutions in the embodiments of the present application will be described clearly and in detail below with reference to the accompanying drawings.

[0033] According to some embodiments, file transfer between an electronic device and a NAS may be achieved through a NAS client application on the electronic device side. In response to a user dragging a file or folder in the NAS client application interface to a target folder interface, the NAS client application may obtain the address of the target folder and download the above-mentioned file or folder to the target folder.

[0034] refer to Figure 1A When the file explorer application interface 11 and the NAS client application interface 12 are displayed together on the screen of the electronic device 100, the user can use the mouse pointer 10 to drag the icon 13 corresponding to the target picture in the NAS client application interface 12 to the file explorer application interface 11. The target picture is the picture stored in the NAS, and the target folder is opened in the file explorer application interface 11. After the dragging operation is completed, Figure 1B As shown in the figure, an icon 14 corresponding to the target image is added to the file explorer application interface 11, indicating that the target image is successfully downloaded from the NAS to the target folder.

[0035] In some embodiments, the NAS client application performs file transfer in response to the user's file download operation on the NAS end. Currently, the NAS client application subscribes to all file and folder operation messages in the electronic device system, such as to the Microsoft Windows operating system. TMThe SHChangeNotify service, i.e., the file directory operation real-time monitoring service, subscribes to messages related to file transfer, so that the SHChangeNotify service can notify the NAS client application when any file transfer event occurs. In other words, the NAS client application will receive file transfer messages that are not related to the NAS client application, such as messages about other software downloading resources, messages about file transfers between other folders, etc. Among them, messages related to file transfer may include file and folder operation messages generated when file and folder operation events occur, specifically including information such as the source path and target path of the file transfer.

[0036] Figure 2 A schematic diagram of a file transfer interaction process is shown. Figure 2 , an exemplary process includes:

[0037] S201: The NAS client program 22 registers to monitor messages in SHChangeNotify.

[0038] It is understandable that the NAS client application 22 may pre-register with the SHChangeNotify service to monitor operation messages of files and folders.

[0039] S202: Business drag operation.

[0040] It can be understood that the service drag operation may be a drag operation from the interface of the NAS client program 22 to the interface of the file resource manager program 21 .

[0041] S203: SHChangeNotify forwards the file and folder operation message to the NAS client program 22.

[0042] It can be understood that the SHChangeNotify service can transmit the operation messages of files and folders in the file explorer application 21 to the NAS client application 22 .

[0043] S204: Monitor the operation messages of files and folders and perform service filtering.

[0044] The NAS client program 22 can monitor the operation messages of files and folders, and perform business filtering to obtain messages related to the NAS client application program 22, that is, operation messages corresponding to the business files of the NAS.

[0045] It can be understood that the NAS client application 22 receives all the operation messages of files and folders from the file explorer application 21 in the system, and there are redundant messages in these messages that need to be filtered. Therefore, when the operation message corresponding to the current service drag operation is generated, the NAS client application 22 may be performing service filtering on other messages. That is, it determines whether other messages are file operation messages related to the NAS client application 22, and does not respond when it is determined that they are not file operation messages related to the NAS client application 22, resulting in the current message needing to wait in line. Only when other messages are processed can the current message be processed and the download operation corresponding to the current message, that is, the operation of transferring files to the file explorer application 21, be performed.

[0046] S205: Copy the business file to the drag path.

[0047] It can be understood that the NAS client application 22 can copy the service file to the drag path based on the filtered message. The downloaded file is displayed in the file resource manager interface 11, that is, the file transfer operation is completed.

[0048] In the above embodiment, the NAS client application 22 needs to filter all the subscribed file operation messages. Since filtering redundant messages takes a certain amount of time, the business processing efficiency of the application is reduced. In addition, in extreme cases, such as when other software downloads a large amount of resources, the SHChangeNotify service will continuously forward redundant messages to the NAS client application 22, causing the NAS client application 22 to spend a lot of time filtering messages, resulting in application freezes.

[0049] In order to solve the above problems, an embodiment of the present application proposes a data transmission method, which can develop a target listening program corresponding to NAS, such as a copy hook (CopyHook) application, and then pre-mount the developed target listening program to the file explorer to achieve accurate monitoring of NAS-related services. If and only if the target listening program listens to NAS-related data operation messages, such as messages triggered by users dragging files in the NAS client application interface to the system file explorer interface, the target listening program will send the service message to the NAS client application. In this way, the NAS client application no longer needs to filter redundant messages, and can directly perform service processing based on the received service messages, so that users can download data on the NAS to electronic devices more quickly, thereby improving the efficiency of NAS service processing.

[0050] In some optional embodiments, the target listening program may include a developed copy hook (CopyHook) program, and may also include other implementable applications. It is understood that the CopyHook program is an application developed based on the hook (Hook) function, for example, the function of monitoring copy messages and performing accurate filtering is developed in the CopyHook hook program. The embodiment of the present application does not limit the development language of CopyHook.

[0051] In some optional embodiments, the NAS client application pre-creates a named pipe (PIPE) between the file resource manager and the NAS client application, and pre-injects CopyHook into the file resource manager. When a file operation event occurs in the system, CopyHook can filter out events whose source path is NAS based on the source path corresponding to the file operation event, that is, filter out the service message of the NAS client application, and then send the service message (including the source path and target path of the target file) to the NAS client application through the named PIPE, so that the NAS client application can directly download the target file from the source path to the target path without filtering the message, thereby completing the file transfer operation from NAS to the local storage of the electronic device.

[0052] Combine the following Figure 3 An exemplary process of a data transmission method provided in an embodiment of the present application is introduced.

[0053] It can be understood that the technical solution provided in the embodiment of the present application can be applied to any electronic device 100 installed with the NAS client application 22, including but not limited to mobile phones, personal computers, tablet computers, wearable devices (such as smart watches, smart bracelets, etc.), vehicle-mounted devices (such as car computers, etc.), Internet of Things devices, smart home devices (such as smart TVs, etc.), etc. Figure 3 As shown, the method includes:

[0054] S301: monitoring file operation messages through a target monitoring program, filtering the file operation messages, and obtaining a first operation message related to a target client application.

[0055] In the embodiment of the present application, the target monitoring program is an application mounted in the file explorer application 21, which can monitor and filter all file operation messages in the electronic device 100 system.

[0056] In the embodiment of the present application, the target client application may be a NAS client application 22 for managing files stored in the NAS. It is understood that the files in the NAS may be stored in a cloud storage or a local storage of the electronic device 100.

[0057] It can be understood that the file explorer application 21 can manage files and folders in the electronic device 100 system. The file operation message is an operation message of a file or folder in a file operation event, including information of a source path and a target path of the operation, and the source path information can include information of a storage path of a target file and information of a target file.

[0058] The operation may include a drag operation on a file, for example, selecting a file in a target client application with a mouse, dragging the file to a target folder directory, and then releasing the mouse to complete the operation.

[0059] In some embodiments, the target listening program can filter the source path in the file operation information. That is, the file operation message corresponding to the source path located in the first storage corresponding to the target client application is determined as the first operation message; and the file operation message corresponding to the source path of other storages other than the first storage is filtered out, that is, these file operation messages are not processed.

[0060] It can be understood that if the source path of the file operation message is a storage path corresponding to other applications except the target client application, or a storage path of the local memory of the electronic device 100, it means that the file operation message is a message unrelated to the target client application, such as a message of other applications downloading files, a message of file transfer between local folders, and other messages that do not require a response from the target client application, then the file operation message can be filtered out. Among them, the target client application can be a NAS client application 22, and other applications can include other network disk client applications, video applications, music applications, etc.

[0061] In an embodiment of the present application, file operation information can be generated based on a drag operation. For example, when a user intends to transfer a file, he or she can drag the mouse cursor to complete the drag operation on the screen of the electronic device 100, and the file operation information corresponding to the drag operation is generated in the file explorer application 21.

[0062] It can be understood that for the drag operation that generates the first operation message, the object of the drag operation is the target file in the first storage, and the drag operation starts from the target client corresponding to the first storage and ends at the file resource manager corresponding to the second storage.

[0063] S302: Sending a file transfer instruction to a target client application program based on the first operation message through the target listening program.

[0064] It can be understood that the file transfer instruction is used to instruct the target client application to download a file.

[0065] In some embodiments, the file transfer instruction may include information about the source path, target path, and target file of the drag operation, so that after the target client application receives the file transfer instruction, it can download the target file from the source path to the target path based on the file transfer instruction.

[0066] Optionally, information of the target file may be included in the source path, such as the source path including file name information of the target file.

[0067] S303: Download the target file to the second storage via the target client application.

[0068] It is understandable that the target client application can download the target file from the source path in the cloud to the target path in the second storage.

[0069] In an embodiment of the present application, the first memory may be a NAS, and accordingly, the target client application corresponding to the first memory may be a NAS client application 22, that is, all files in the first memory may be stored in the cloud; the second memory may be a local memory of the electronic device 100, such as a local disk, etc., that is, all files in the second memory may be stored locally.

[0070] In some embodiments, the first memory also includes a local memory, that is, the files in the first memory can be stored locally. If the target file is located in the cloud, the target client application can download the target file from the cloud to the second memory; if the target file is located locally, the target client application can transfer the target file from the local to the second memory.

[0071] In the embodiment of the present application, by developing a target listening program and mounting the target listening program in the file resource manager of the electronic device 100, it is possible to listen to and accurately filter out business messages related to the target client application, and filter out redundant messages that the target client application does not need to process. In this way, the target listening program can directly send the filtered business messages to the target client application, so that the target client application does not need to filter the business messages, and can directly perform file transfer processing based on the business messages, avoiding the situation where the target listening program is still filtering redundant messages and cannot process the business messages in time when the user generates business messages by performing file operations, thereby improving the file transfer processing efficiency of the target client application.

[0072] The following is based on Figure 4 A data transmission method of the present application is further introduced.

[0073] Figure 4It is understood that the interactive flow diagram of a data transmission method provided by an embodiment of the present application can be implemented by opening the interface of the NAS client application 22 and the interface of the file explorer application 21 on the screen of the electronic device 100 installed with the NAS client application 22. Figure 4 The interaction flow is shown.

[0074] S401: The NAS client application 22 creates a named pipe for process communication and receives a pipe message.

[0075] It can be understood that the named pipe can support unidirectional or bidirectional data communication between different processes of the same electronic device 100 .

[0076] In some embodiments, the NAS client application 22 may specify a name for the named pipe when establishing it, and other processes may open the other end of the pipe through the name. If the other process has the permission, that is, the NAS client application 22 grants the permission to it when establishing the named pipe, the other process may communicate with the process of the NAS client application 22 through the named pipe. For example, the NAS client application 22 may open the permission of the file explorer application 21 in the named pipe in advance, and the process of the file explorer application 21 may open the named pipe through the name of the named pipe, and communicate with the process of the NAS client application 22 through the named pipe.

[0077] In some embodiments, the NAS client application 22 may develop a client application and a target listener.

[0078] The client application can implement the file management function in the NAS. Optionally, in response to the user's file management operation, such as right-clicking to open the management function menu, clicking a delete button, a copy button, etc., to manage the files stored in the NAS.

[0079] The target listening program may be CopyHook, which is mounted in the file resource manager application 21 and responds to the operation messages of files and folders in the file resource manager application 21, that is, monitors and filters the file operation messages.

[0080] S402 : The NAS client application 22 injects the CopyHook copy hook into the Windows Explorer file resource manager application 21 .

[0081] It can be understood that CopyHook is used to monitor file and folder operation messages, accurately identify target business messages, and send them to the client application through the client application's named channel.

[0082] In the embodiment of the present application, CopyHook is developed by the NAS client application 22. After the NAS client application 22 is started, CopyHook can be injected into the file resource manager application 21 to enable CopyHook to monitor the file operation message of the file resource manager application 21.

[0083] S403: The user performs a service drag operation.

[0084] It can be understood that the service drag operation is a drag operation related to the NAS client application 22 and the file explorer application 21 , such as a drag operation performed by a user on an interface of the NAS client application 22 and an interface of the file explorer application 21 .

[0085] In some embodiments, the interface of the file explorer 21 and the interface of the NAS client application 22 are displayed together on the screen of the electronic device 100, and when the interface of the file explorer 21 opens the target folder interface and the interface of the NAS client application 22 opens the folder interface of the target file, the user can use the mouse pointer to press and hold the icon of the target picture in the interface of the NAS client application 22, and drag the mouse pointer to the interface of the file explorer 21 to complete the business drag operation.

[0086] It can be understood that the user intention corresponding to the above-mentioned service drag operation is to copy the target file from the NAS to the target folder of the electronic device 100 .

[0087] It should be noted that the user operation of the present application is not limited to the drag operation. In some other optional implementations, step S403 may also be other operations that include the above-mentioned user intention, that is, the user intention is to copy the target file from the NAS to the target folder of the electronic device 100.

[0088] S404: CopyHook monitors the FO_COPY message and accurately filters the target path.

[0089] In the embodiment of the present application, CopyHook can monitor the FO_COPY message in the file operation message of the file explorer application 21. The FO_COPY message is a copy message, including the path of the source folder of the copied file and the path of the target folder of the copied file.

[0090] CopyHook can monitor all FO_COPY messages in the electronic device system in real time, and filter the monitored FO_COPY messages based on the path of the source folder in the FO_COPY message to obtain FO_COPY messages whose source file path is located in the NAS file path. For example, for each message in the monitored FO_COPY message, it is determined whether the source file path in each message belongs to the NAS file path. If so, the filter passes, and if not, the message is filtered out.

[0091] The judgment condition for CopyHook to filter file operation messages is not limited to the above-mentioned source file path condition. According to some embodiments, the NAS client application 22 may further define the filter condition for CopyHook. For example, the available paths and disabled paths in the NAS file path are updated in real time, and the filter condition for CopyHook is defined as filtering only FO_COPY messages whose source paths are available paths. When the user's member (very important person, VIP) status is non-VIP, the disabled path may be a VIP folder path, an extra-capacity folder path, etc. in the NAS.

[0092] S405: CopyHook sends the drag path to the NAS client application 22 via the named pipe.

[0093] In some embodiments, CopyHook can send the drag path to the NAS client application 22 through the named pipe created in step S401, wherein the drag path includes the source file path and the target file path in the FO_COPY message, wherein the source file path is the storage path of the NAS file, which is the drag path in the FO_COPY message related to the NAS obtained by CopyHook in step S404 by filtering based on all monitored FO_COPY messages.

[0094] In some embodiments, the name information of the dragged business file (ie, the target file mentioned above) is included in the source file path.

[0095] In the embodiment of the present application, business message transmission through named pipes can prevent business messages from being received and processed by other clients.

[0096] In some other optional embodiments, CopyHook may also send the message to the NAS client application 22 through other IPC communication methods, such as shared memory, Socket, RPC, etc.

[0097] S406: The NAS client application 22 copies the service file to the drag path.

[0098] It can be understood that in step S406, the business file can be copied from the NAS file storage path to the target file path in the drag path.

[0099] In some embodiments, NAS files are stored in the cloud. To copy business files, the NAS client application 22 may download business files from the cloud, and then store the downloaded business files in the target file path to complete the copy operation.

[0100] It can be understood that the above description of steps S401-S406 is based on a file operation scenario. When the dragged object is a folder, FO_COPY contains the folder source path and the folder target path. The NAS client application 22 can download the dragged folder to the target file path to complete the folder transfer.

[0101] In the embodiment of the present application, the filtering process of the service message can be transferred from the NAS client application 22 to the process of mounting CopyHook, that is, the filtering of the service message is transferred to the process of the file resource manager application 21, and after the client application receives the service message obtained after filtering, it can directly perform the final download service processing. In this way, not only can the service processing load of the client application be reduced, but also the response speed of the NAS client application 22 to the user operation can be improved, thereby improving the service processing efficiency of the NAS client application 22.

[0102] like Figure 5 As shown, a hardware structure diagram of an electronic device 100 according to an embodiment of the present application is exemplified. Figure 5 As shown, the electronic device 100 may include a processor 110 (or host), a power module 140, a memory 180, a mobile communication module 130, a wireless communication module 120, a sensor module 190, an audio module 150, a camera 170, an interface module 160, a button 101, a display screen 102, and a touch screen 103, etc.

[0103] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute the only possible implementation method for the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0104] The processor 110 may include one or more processing units, for example, a processing module or processing circuit including a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processor, a microprocessor (MCU), an artificial intelligence (AI) processor, or a programmable logic device (FPGA). Among them, different processing units may be independent devices or integrated into one or more processors. A storage unit may also be provided in the processor 110 for storing instructions and data. In some embodiments, the storage unit in the processor 110 is a cache memory 180, which may store instructions or data that the processor 110 has just used or circulated. If the processor 110 needs to use the instruction or data again, it may be directly called from the storage unit, thereby avoiding repeated access, reducing the waiting time of the processor 110, and thus improving the efficiency of the system.

[0105] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0106] It can be understood that in an embodiment of the present application, the processor can be used to execute the method steps performed by the electronic device 100 in the data transmission method of the present application, for example, the first application monitors the presence of a first data transmission message belonging to the second application among multiple data transmission messages, wherein the first data transmission message indicates: the first data managed by the second application is transferred from the first memory to the second memory managed by the first application; the first application sends the first transmission information to the second application, wherein the first transmission information includes the transmission path of the first data in the first data transmission message.

[0107] The power module 140 may include a power source, a power management component, etc. The power source may be a battery. The power management component is used to manage the charging of the power source and the power supply of the power source to other modules. In some embodiments, the power management component includes a charging management module and a power management module. The charging management module is used to receive charging input from the charger; the power management module is used to connect the power source, and the charging management module is connected to the processor 110. The power management module receives input from the power source and / or the charging management module, and supplies power to the processor 110, the display screen 102, the camera 170, and the wireless communication module 120.

[0108] The wireless communication module 120 may include an antenna, and transmit and receive electromagnetic waves via the antenna. The wireless communication module 120 may provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth, global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc., applied to the electronic device 100. The electronic device 100 may communicate with the network and other devices through wireless communication technology.

[0109] The display screen 102 is used to display a human-computer interaction interface, images, videos, etc. The display screen 102 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light emitting diode (OLED), an active-matrix organic light emitting diode or an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (FLED), a quantum dot light emitting diode (QLED), etc.

[0110] The interface module 160 includes an external memory interface, a universal serial bus (USB) interface, etc. The external memory interface can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface to implement a data storage function. The universal serial bus interface is used for the electronic device 100 to communicate with other electronic devices 100.

[0111] The various embodiments disclosed in the present application may be implemented in hardware, software, firmware, or a combination of these implementation methods. The embodiments of the present application may be implemented as a computer program or program code executed on a programmable system, the programmable system including at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device.

[0112] Program code can be applied to input instructions to perform the functions described in this application and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor, a microcontroller, an application specific integrated circuit, or a microprocessor.

[0113] Program code can be implemented with high-level programming language or object-oriented programming language to communicate with the processing system. When necessary, program code can also be implemented with assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.

[0114] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, instructions may be distributed over a network or by other computer-readable media. Therefore, a machine-readable medium may include any mechanism for storing or transmitting information in a machine (e.g., computer) readable form, including but not limited to, a floppy disk, an optical disk, an optical disk, a magneto-optical disk, a read-only memory (ROM), a random access memory (RAM), a magnetic card or an optical card, a flash memory, or a tangible machine-readable memory for transmitting information (e.g., carrier wave, infrared signal digital signal, etc.) using the Internet in an electrical, optical, acoustic, or other form of propagation signal. Therefore, a machine-readable medium includes any type of machine-readable medium suitable for storing or transmitting electronic instructions or information in a machine (e.g., computer) readable form.

Claims

1. A data transmission method, characterized in that: Applied to an electronic device, the electronic device has a first application and a second application installed thereon, the method comprising: The first application detects that there is a first data transmission message belonging to the second application among the multiple data transmission messages, wherein the first data transmission message indicates: transmitting the first data managed by the second application from the first memory to the second memory managed by the first application; The first application sends first transmission information to the second application, wherein the first transmission information includes a transmission path of the first data in the first data transmission message.

2. The method according to claim 1, characterized in that A target monitoring program is mounted in the first application; The first application detects that there is a first data transmission message belonging to the second application among the multiple data transmission messages, including: The target monitoring program in the first application detects that there is a first data transmission message belonging to the second application among multiple data transmission messages.

3. The method according to claim 1, characterized in that The first data transmission message is generated based on a first operation of a user, and the first operation includes: Drag the first data of the interface of the second application to the interface of the first application.

4. The method according to claim 1, characterized in that The method further comprises: The second application establishes a data transmission pipeline between the first application and the second application, wherein the first application has permission to use the data transmission pipeline; The first application sends first transmission information to the second application, including: The first application sends the first transmission information to the second application through the data transmission pipeline.

5. The method according to claim 1, characterized in that The data transmission message includes a transmission path of the data, and the transmission path includes a source path and a target path; At least one of the source path and the target path of the data of the data transmission message belongs to the second memory; The first application detects that there is a first data transmission message belonging to the second application among the multiple data transmission messages, including: The first application detects that there is a data transmission message in which the source path belongs to the first storage and the target path belongs to the second storage among multiple data transmission messages.

6. The method according to claim 5, characterized in that The method further comprises: The second application transmits the first data from a source path of the first data to a target path of the first data.

7. The method according to any one of claims 1 to 6, characterized in that: The first memory includes at least one of a cloud memory and a local memory, and the second memory is a local memory of the electronic device.

8. The method according to any one of claims 1 to 6, characterized in that: The first application is a file explorer application, and the second application is a network attached storage client application.

9. An electronic device, characterized in that: include: a memory for storing instructions to be executed by one or more processors of the electronic device, and A processor, configured to execute instructions of the data transmission method according to any one of claims 1 to 8.

10. A readable medium, characterized in that: The readable medium stores instructions, and when the instructions are executed on the electronic device, the electronic device executes the data transmission method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • PC client file downloading method implemented based on dragging operation

    CN107908352A

  • Interaction method and device of mobile terminal and computer, electronic equipment and storage medium

    CN111511045A

  • Data transmission method and related equipment

    CN112527221A

  • Cloud data operation method for terminal equipment, storage medium and terminal equipment

    CN113238997A

  • File transmission method and device

    CN114579522A