CN114465998A - Multi-device file transmission method and device, terminal device and readable storage medium - Google Patents
Multi-device file transmission method and device, terminal device and readable storage medium Download PDFInfo
- Publication number
- CN114465998A CN114465998A CN202111528547.5A CN202111528547A CN114465998A CN 114465998 A CN114465998 A CN 114465998A CN 202111528547 A CN202111528547 A CN 202111528547A CN 114465998 A CN114465998 A CN 114465998A
- Authority
- CN
- China
- Prior art keywords
- file
- terminal
- resource
- target file
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 67
- 238000000034 method Methods 0.000 title claims abstract description 61
- 238000003860 storage Methods 0.000 title claims abstract description 15
- 238000004891 communication Methods 0.000 claims abstract description 17
- 230000006870 function Effects 0.000 claims description 49
- 238000004590 computer program Methods 0.000 claims description 20
- 238000012546 transfer Methods 0.000 claims description 15
- 230000005856 abnormality Effects 0.000 claims description 11
- 238000005516 engineering process Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000004044 response Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/176—Support for shared access to files; File sharing support
Abstract
The application is applicable to the technical field of data transmission, and provides a multi-device file transmission method, a multi-device file transmission device, a terminal device and a readable storage medium, wherein the method comprises the following steps: when a file acquisition request is detected, the file acquisition request is analyzed to obtain target file information carried by the file acquisition request, target file resources corresponding to the target file information are searched, when the target file resources are not searched, the target file resources are searched in other terminals based on a file sharing service program, and when the target file resources are searched in other terminals, the target file resources are downloaded. According to the file transmission sharing network and the file transmission method, the first terminal and the plurality of other terminals which deploy the file sharing service program are in communication connection, the file transmission sharing network is constructed, when the target file resource cannot be obtained in any device, the target file resource is obtained through the other devices in the file transmission sharing network, and the file transmission efficiency and the stability are improved.
Description
Technical Field
The present application relates to the field of data transmission technologies, and in particular, to a method and an apparatus for multi-device file transmission, a terminal device, and a readable storage medium.
Background
With the development of information technology, information sharing technology gradually becomes the most important information exchange technology in production and life of people.
The traditional file transmission method generally needs to set corresponding file downloading/upgrading firmware for each device, so that the cost is high, and when multiple devices have transmission requirements, multiple tasks need to be additionally created, so that a large amount of flow is consumed.
In the related method for transmitting files among multiple devices, the task of querying and downloading files of the subsystem device is usually affected by the main system device, which results in low stability and efficiency of data transmission.
Disclosure of Invention
The embodiment of the application provides a multi-device file transmission method and device, a terminal device and a readable storage medium, and can solve the problems of high cost, low transmission stability and low efficiency in the related technology.
In a first aspect, an embodiment of the present application provides a multi-device file transmission method, which is applied to a first terminal, where the first terminal deploys a file sharing service program and is in communication connection with a plurality of other terminals, and the other terminals are terminal devices, except the first terminal, that deploy the file sharing service program; the method comprises the following steps:
when a file acquisition request is detected, analyzing the file acquisition request to obtain target file information carried by the file acquisition request; the target file information comprises a file ID, a file name and a file size;
searching a target file resource corresponding to the target file information;
when the target file resource is not found, searching the target file resource in the other terminals based on the file sharing service program;
and downloading the target file resource when the target file resource is found in the other terminals.
In an embodiment, the downloading the target file resource when the target file resource is found in the other terminal includes:
when the target file resource is found in any one of the other terminals, the other terminals are used as target terminals, and a file calling task is created according to the target file information;
and downloading the target file resource from the target terminal by using the file sharing service program according to the file calling task, and storing the target file resource.
In an embodiment, when the target file resource is not found, after the target file resource is found in the other terminal based on the file sharing service program, the method further includes:
when the target file resource is not searched in the other terminals, detecting whether an online downloading function is started or not;
when detecting that the online downloading function is not started, searching and determining a second terminal; the second terminal is other terminals for starting the online downloading function;
and downloading the target file resource through the second terminal by utilizing the online downloading function and storing the target file resource.
In one embodiment, the downloading and storing the target file resource through the second terminal by using the online downloading function includes:
creating an online file downloading task according to the target file information, and sending the online file downloading task to the second terminal so that the second terminal executes the online file downloading task and downloads the target file resource through a third-party platform;
and acquiring and storing the target file resource returned by the second terminal.
In one embodiment, after detecting whether to turn on the online downloading function, the method further includes:
and when the online downloading function is detected to be started, downloading the target file resource through a third-party platform and storing the target file resource.
In one embodiment, the method further comprises:
when the equipment abnormality is detected, equipment abnormality notification information is generated and sent to the other terminals;
and exiting the file sharing service program.
In one embodiment, the method further comprises:
when an access request sent by a third terminal is received, analyzing the access request to obtain and store a to-be-accessed file list of the third terminal carried by the access request; the file list to be accessed comprises a plurality of file resources and file information of each file resource;
and sending the file list to be accessed to the other terminals.
In a second aspect, an embodiment of the present application provides a multi-device file transmission apparatus, which is applied to a first terminal, where the first terminal deploys a file sharing service program and is in communication connection with a plurality of other terminals, and the other terminals are terminal devices, except the first terminal, that deploy the file sharing service program; the device comprises:
the information acquisition module is used for analyzing the file acquisition request when the file acquisition request is detected to obtain target file information carried by the file acquisition request; the target file information comprises a file ID, a file name and a file size;
the first searching module is used for searching the target file resource corresponding to the target file information;
the second searching module is used for searching the target file resource in the other terminals based on the file sharing service program when the target file resource is not searched;
and the shared file downloading module is used for downloading the target file resource when the target file resource is found in the other terminals.
In one embodiment, the shared file downloading module includes:
a task creating unit, configured to create a file call task according to the target file information, with the other terminal as a target terminal, when the target file resource is found in any one of the other terminals;
and the first resource downloading unit is used for downloading the target file resource from the target terminal by using the file sharing service program according to the file calling task and storing the target file resource.
In one embodiment, the apparatus further comprises:
the function detection module is used for detecting whether to start an online downloading function when the target file resource is not searched in the other terminals;
the determining module is used for searching and determining the second terminal when detecting that the online downloading function is not started; the second terminal is other terminals for starting the online downloading function;
and the second resource downloading unit is used for downloading the target file resource through the second terminal by utilizing the online downloading function and storing the target file resource.
In one embodiment, the second resource downloading unit includes:
the sending subunit is used for creating an online file downloading task according to the target file information and sending the online file downloading task to the second terminal so that the second terminal executes the online file downloading task and downloads the target file resource through a third-party platform;
and the resource acquisition subunit is used for acquiring and storing the target file resource returned by the second terminal.
In one embodiment, the apparatus further comprises:
and the online resource downloading module is used for downloading the target file resource through the third-party platform and storing the target file resource when the online downloading function is detected to be started.
In one embodiment, the apparatus further comprises:
the generating module is used for generating equipment abnormity notification information and sending the equipment abnormity notification information to the other terminals when the equipment abnormity is detected;
and the program control module is used for exiting the file sharing service program.
In one embodiment, the apparatus further comprises:
the list acquisition module is used for analyzing the access request when receiving the access request sent by a third terminal, obtaining and storing a file list to be accessed of the third terminal carried by the access request; the file list to be accessed comprises a plurality of file resources and file information of each file resource;
and the sending module is used for sending the file list to be accessed to the other terminals.
In a third aspect, an embodiment of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor, when executing the computer program, implements the file transfer method for multiple devices as described in any one of the above first aspects.
In a fourth aspect, the present application provides a computer-readable storage medium, where a computer program is stored, and when executed by a processor, the computer program implements the file transfer method of multiple devices according to any one of the first aspect.
In a fifth aspect, an embodiment of the present application provides a computer program product, which, when running on a terminal device, causes the terminal device to execute the multi-device file transfer method according to any one of the above first aspects.
Compared with the prior art, the embodiment of the application has the advantages that: the file transmission sharing network is constructed by the communication connection of the first terminal and the plurality of other terminals, which deploy the file sharing service program, so that when the target file resource cannot be obtained in any equipment, the target file resource can be obtained through the other equipment in the file transmission sharing network, and the file transmission efficiency and stability are improved.
It is understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description of the first aspect, and are not described herein again.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a multi-device file transfer system provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of a file transfer method for multiple devices according to an embodiment of the present application;
fig. 3 is a flowchart illustrating a step S104 of a file transmission method for multiple devices according to an embodiment of the present application;
fig. 4 is another schematic flowchart of a file transfer method of multiple devices according to an embodiment of the present application;
FIG. 5 is a schematic structural diagram of a multi-device file transfer apparatus according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
The multi-device file transmission method provided by the embodiment of the application can be applied to a first terminal, wherein the first terminal is used for deploying the file sharing service program and is in communication connection with a plurality of other terminals, and the other terminals are terminal devices which are used for deploying the file sharing service program except the first terminal; the first terminal and the other terminals include a Mobile phone, a tablet Computer, a wearable device, a vehicle-mounted device, a notebook Computer, an Ultra-Mobile Personal Computer (UMPC), a netbook, a Personal Digital Assistant (PDA), and other terminal devices, and the specific type of the terminal device is not limited in this embodiment.
With the development of information technology, the importance of information sharing technology is increasing. The traditional file transmission method has high cost and large consumption flow, and the related file transmission method among multiple devices has the problems of low stability and efficiency of data transmission. In order to solve the above problems, the present application provides a multi-device file transmission method, a multi-device file transmission apparatus, a terminal device, and a computer-readable storage medium, where a file transmission shared network is constructed by communicatively connecting a first terminal, which deploys a file sharing service program, with a plurality of other terminals, so that when a target file resource cannot be obtained in any device, the target file resource is obtained by the other devices in the file transmission shared network, and thus, the file transmission efficiency and stability are improved.
In order to implement the technical scheme provided by the application, a multi-device file transmission system can be constructed firstly. Referring to fig. 1, the multi-device file transfer system is composed of a first terminal (the first terminal communicates with an external device) and more than one other terminal (only 2 terminals are shown in fig. 1, for example, other terminal a and other terminal b, the other terminal a and other terminal b communicate with a third party platform), and the first terminal and the other terminals are in communication connection, and every two other terminals are in communication connection.
The first terminal and the other terminals a and b are both devices which deploy file sharing service programs, can provide file sharing transmission services, and may have file sharing transmission service requirements to acquire target file resources. When a first terminal (which can be communicated with external equipment and/or a third-party platform) detects a file acquisition request, the file acquisition request is analyzed to obtain target file information carried by the file acquisition request, a target file resource corresponding to the target file information is searched, when the target file resource is not searched, the target file resource is searched in other terminals based on a file sharing service program, and when the target file resource is searched in other terminals (which can be communicated with the external equipment and/or the third-party platform), the target file resource is downloaded, so that when the target file resource cannot be obtained in any equipment in a file transmission sharing network, the target file resource is obtained through other equipment in the file transmission sharing network, and the file transmission efficiency and stability are improved.
In order to explain the technical solution proposed in the present application, the following description will be given by way of specific examples.
Fig. 2 shows a schematic flow chart of a file transmission method of multiple devices provided in the present application, which may be applied to a notebook computer by way of example and not limitation.
S101, when a file acquisition request is detected, analyzing the file acquisition request to obtain target file information carried by the file acquisition request; the target file information includes a file ID, a file name, and a file size.
Specifically, when a file acquisition request input by a user is detected or a file acquisition request sent by terminal equipment connected with a current first terminal is received, analyzing the file acquisition request to obtain target file information carried by the file acquisition request; the target file information includes, but is not limited to, a file ID, a file name, and a file size.
It can be understood that the file obtaining request may be used to obtain one or more target file resources, and correspondingly, the file obtaining request carries information of one or more target files.
Specifically, the file sharing service program refers to a service program that shares all file resources in the terminal device to the file transfer sharing network. The file sharing method comprises the steps that a file sharing service program is deployed on a first terminal and a plurality of other terminals, communication connection between the first terminal and each other terminal is established, communication connection between every two other terminals is established, and a file transmission sharing network is formed, so that the first terminal and the other terminals in the file transmission sharing network can achieve a file sharing transmission function.
By way of example and not limitation, the first terminal or other terminals may be communicatively coupled to a third party platform to obtain file resources in the third party platform.
S102, searching for target file resources corresponding to the target file information.
Specifically, the file resource which is the same as the file ID, the file name and the file size information contained in the target file information is searched in the first file list of the current first terminal.
By way of example and not limitation, when a first terminal (and other terminals) deploys a file sharing service program, a corresponding file list (including file information and the number of file resources corresponding to each file resource in the file list) is created based on all file resources and corresponding file information contained in the terminal, and is sent to all terminal devices in the file transfer sharing network to share all file resources in the terminal.
By way of example and not limitation, the download progress of each file in each file list and the download status of each file (including but not limited to stopped downloading, in downloading, completed or in download error) are shared in real time. The file sharing service may provide the functionality to create, start, stop, and delete file download tasks.
S103, when the target file resource is not found, the target file resource is found in the other terminals based on the file sharing service program.
Specifically, when the target file resource is not found in the first file list of the current first terminal, the corresponding target file resource is found according to the target file information in the file lists provided by the plurality of other terminals according to the distance (from near to far) based on the position of the first terminal as the center of the file sharing service program.
And S104, downloading the target file resource when the target file resource is found in the other terminals.
Specifically, when the target file resource corresponding to the target file information is found in the file list provided by the other terminal, the target file resource is downloaded from the other terminal.
As shown in fig. 3, in an embodiment, the step S104 includes:
s1041, when the target file resource is found in any one of the other terminals, taking the other terminal as a target terminal, and creating a file calling task according to the target file information;
s1042, downloading the target file resource from the target terminal by using the file sharing service program according to the file calling task, and storing.
Specifically, when the target file resource is found in any one of the other terminals according to the target file information, the other terminal is used as the target terminal, the file calling task is created according to the target file information, and the target file resource is downloaded from the target terminal according to the file calling task by using the file sharing service program and is stored.
It can be understood that, in the file transmission shared network, there may be a plurality of other terminals including the target file resource, it is preset that the current first terminal is used as a center, the target file resource is searched in other devices according to a sequence from near to far, the other terminal which is the first terminal to search the target file resource is used as a target terminal, and when the target file resource is searched, the operation of searching the target file resource is stopped.
As shown in fig. 4, in an embodiment, after searching for the target file resource in the other terminal based on the file sharing service program when the target file resource is not found, the method further includes:
s105, when the target file resource is not searched in the other terminals, detecting whether an online downloading function is started or not;
s106, when the online downloading function is not started, searching and determining a second terminal; the second terminal is other terminals for starting the online downloading function;
and S107, downloading the target file resource through the second terminal by using the online downloading function, and storing.
Specifically, when the target file resource is not found in the file list provided by all other terminals in the current file sharing transmission network, whether the current first terminal starts the online downloading function is detected (the online downloading function refers to a sharing service function of acquiring the file resource from a third-party platform), when the current first terminal is detected not to start the online downloading function, whether other terminals in the current file sharing transmission network start the online downloading function is searched, so that the other terminals starting the online downloading function are used as second terminals, and the target file resource corresponding to the target file information is downloaded and stored through the second terminals by using the online downloading function.
As an example and not by way of limitation, it is set that whether the online downloading function is started by other terminals is determined one by one according to the distance from the current first terminal as the center, and the other terminal which is found first to start the online downloading function is used as the second terminal to execute the corresponding online downloading task.
By way of example and not limitation, when the second terminal is not detected, file acquisition failure information is correspondingly generated and displayed, and a user is prompted that no target file resource exists in the current file sharing transmission network.
In one embodiment, the downloading and storing the target file resource through the second terminal by using the online downloading function includes:
creating an online file downloading task according to the target file information, and sending the online file downloading task to the second terminal so that the second terminal executes the online file downloading task and downloads the target file resource through a third-party platform;
and acquiring and storing the target file resource returned by the second terminal.
Specifically, an online file downloading task is created according to the target file information and is sent to the second terminal which starts the online downloading function, so that the second terminal executes the online file downloading task and downloads the target file resource (to the second terminal) through the third-party platform, and the target file resource sent by the second terminal is obtained and stored. The third-party platform is a network platform or a database which is specified in advance and can provide file transmission sharing service.
In one embodiment, after detecting whether to turn on the online downloading function, the method further includes:
and when the online downloading function is detected to be started, downloading the target file resource through a third-party platform and storing the target file resource.
Specifically, when the online downloading function of the first terminal is detected to be started currently, the target file resource corresponding to the target file information is downloaded through the third-party platform and stored.
By way of example and not limitation, after the current first terminal obtains the target file resource through another terminal, the second terminal or the third-party platform, the file list of the current first terminal should be updated, so that the current first terminal can implement a sharing operation for the target file resource.
In one embodiment, the method further comprises:
when the equipment abnormality is detected, equipment abnormality notification information is generated and sent to the other terminals;
and exiting the file sharing service program.
Specifically, when detecting that the current first terminal has the device abnormality, generating device abnormality notification information and sending the device abnormality notification information to all other terminals, exiting the file sharing service program, and meanwhile, when the current first terminal executes the file downloading task, the other terminals can continue to execute the file downloading task, so that the terminal corresponding to the file downloading task and having the file sharing transmission requirement can acquire the file resource, and the situations of missing transmission, loss and the like of the file resource are avoided. The device abnormality includes, but is not limited to, a device failure or a communication abnormality.
In one embodiment, the method further comprises:
when an access request sent by a third terminal is received, analyzing the access request to obtain and store a to-be-accessed file list of the third terminal carried by the access request; the file list to be accessed comprises a plurality of file resources and file information of each file resource;
and sending the file list to be accessed to the other terminals.
Specifically, when receiving an access request sent by a third device except all devices (including the first terminal and all other terminals) in the current file sharing transmission network, the access request is analyzed to obtain and store a to-be-accessed file list of the third terminal carried in the access request, and the to-be-accessed file list is sent to all the terminals in the current file sharing transmission network, so that all the devices (including the first terminal and all other terminals) in the current file sharing transmission network can share file resources contained in the to-be-accessed file list. The file list to be accessed includes, but is not limited to, a plurality of file resources and file information of each file resource.
In the embodiment, the file transmission sharing network is constructed by the communication connection of the first terminal and the plurality of other terminals, which deploy the file sharing service program, so that when the target file resource cannot be obtained in any device, the target file resource can be obtained through the other devices in the file transmission sharing network, and the file transmission efficiency and stability are improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Corresponding to the multi-device file transmission method described in the foregoing embodiment, fig. 5 shows a block diagram of a multi-device file transmission apparatus provided in the embodiment of the present application, where the multi-device file transmission apparatus is applied to a first terminal, the first terminal deploys a file sharing service program and is in communication connection with a plurality of other terminals, and the other terminals are terminal devices, except the first terminal, that deploy the file sharing service program; for convenience of explanation, only portions related to the embodiments of the present application are shown.
Referring to fig. 5, the multi-device file transfer apparatus 100 includes:
the information acquisition module 101 is configured to, when a file acquisition request is detected, analyze the file acquisition request to obtain target file information carried by the file acquisition request; the target file information comprises a file ID, a file name and a file size;
a first searching module 102, configured to search for a target file resource corresponding to the target file information;
the second searching module 103 is configured to search the target file resource in the other terminal based on the file sharing service program when the target file resource is not found;
and the shared file downloading module 104 is configured to download the target file resource when the target file resource is found in the other terminal.
In one embodiment, the shared file downloading module includes:
a task creating unit, configured to create a file call task according to the target file information, with the other terminal as a target terminal, when the target file resource is found in any one of the other terminals;
and the first resource downloading unit is used for downloading the target file resource from the target terminal by using the file sharing service program according to the file calling task and storing the target file resource.
In one embodiment, the apparatus further comprises:
the function detection module is used for detecting whether to start an online downloading function or not when the target file resource is not searched in the other terminals;
the determining module is used for searching and determining the second terminal when detecting that the online downloading function is not started; the second terminal is other terminals for starting the online downloading function;
and the second resource downloading unit is used for downloading the target file resource through the second terminal by utilizing the online downloading function and storing the target file resource.
In one embodiment, the second resource downloading unit includes:
the sending subunit is used for creating an online file downloading task according to the target file information and sending the online file downloading task to the second terminal so that the second terminal executes the online file downloading task and downloads the target file resource through a third-party platform;
and the resource acquisition subunit is used for acquiring and storing the target file resource returned by the second terminal.
In one embodiment, the apparatus further comprises:
and the online resource downloading module is used for downloading the target file resource through the third-party platform and storing the target file resource when the online downloading function is detected to be started.
In one embodiment, the apparatus further comprises:
the generating module is used for generating equipment abnormity notification information and sending the equipment abnormity notification information to the other terminals when the equipment abnormity is detected;
and the program control module is used for exiting the file sharing service program.
In one embodiment, the apparatus further comprises:
the list acquisition module is used for analyzing the access request when receiving the access request sent by a third terminal, obtaining and storing a file list to be accessed of the third terminal carried by the access request; the file list to be accessed comprises a plurality of file resources and file information of each file resource;
and the sending module is used for sending the file list to be accessed to the other terminals.
In the embodiment, the file transmission sharing network is constructed by the communication connection of the first terminal and the plurality of other terminals, which deploy the file sharing service program, so that when the target file resource cannot be obtained in any device, the target file resource can be obtained through the other devices in the file transmission sharing network, and the file transmission efficiency and stability are improved.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
Fig. 6 is a schematic structural diagram of the terminal device provided in this embodiment. As shown in fig. 6, the terminal device 6 of this embodiment includes: at least one processor 60 (only one shown in fig. 6), a memory 61, and a computer program 62 stored in the memory 61 and operable on the at least one processor 60, the processor 60 implementing the steps in any of the various multi-device file transfer method embodiments described above when executing the computer program 62.
The terminal device 6 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 60, a memory 61. Those skilled in the art will appreciate that fig. 6 is only an example of the terminal device 6, and does not constitute a limitation to the terminal device 6, and may include more or less components than those shown, or combine some components, or different components, such as an input/output device, a network access device, and the like.
The Processor 60 may be a Central Processing Unit (CPU), and the Processor 60 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 61 may in some embodiments be an internal storage unit of the terminal device 6, such as a hard disk or a memory of the terminal device 6. In other embodiments, the memory 61 may also be an external storage device of the terminal device 6, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital Card (SD), a Flash memory Card (Flash Card), and the like, which are equipped on the terminal device 6. Further, the memory 61 may also include both an internal storage unit and an external storage device of the terminal device 6. The memory 61 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer program. The memory 61 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/terminal apparatus, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.
Claims (10)
1. The multi-device file transmission method is characterized by being applied to a first terminal, wherein the first terminal deploys a file sharing service program and is in communication connection with a plurality of other terminals, and the other terminals are terminal devices which deploy the file sharing service program except the first terminal;
the file transmission method of the multiple devices comprises the following steps:
when a file acquisition request is detected, analyzing the file acquisition request to obtain target file information carried by the file acquisition request; the target file information comprises a file ID, a file name and a file size;
searching a target file resource corresponding to the target file information;
when the target file resource is not found, searching the target file resource in the other terminals based on the file sharing service program;
and downloading the target file resource when the target file resource is found in the other terminals.
2. The method for file transmission with multiple devices according to claim 1, wherein the downloading the target file resource when the target file resource is found in the other terminal comprises:
when the target file resource is found in any one of the other terminals, the other terminals are used as target terminals, and a file calling task is created according to the target file information;
and downloading the target file resource from the target terminal by using the file sharing service program according to the file calling task, and storing the target file resource.
3. The method for file transmission among multiple devices according to claim 1, wherein, when the target file resource is not found, after the target file resource is found in the other terminal based on the file sharing service program, the method further comprises:
when the target file resource is not searched in the other terminals, detecting whether an online downloading function is started or not;
when detecting that the online downloading function is not started, searching and determining a second terminal; the second terminal is other terminals for starting the online downloading function;
and downloading the target file resource through the second terminal by utilizing the online downloading function and storing the target file resource.
4. The multi-device file transfer method according to claim 3, wherein the downloading and storing the target file resource through the second terminal using the online download function comprises:
creating an online file downloading task according to the target file information, and sending the online file downloading task to the second terminal so that the second terminal executes the online file downloading task and downloads the target file resource through a third-party platform;
and acquiring and storing the target file resource returned by the second terminal.
5. The method for transferring files among multiple devices according to claim 3, wherein after detecting whether to start the online downloading function, the method further comprises:
and when the online downloading function is detected to be started, downloading the target file resource through a third-party platform and storing the target file resource.
6. The multi-device file transfer method according to any one of claims 1 to 5, further comprising:
when the equipment abnormality is detected, equipment abnormality notification information is generated and sent to the other terminals;
and exiting the file sharing service program.
7. The multi-device file transfer method according to any one of claims 1 to 5, further comprising:
when an access request sent by a third terminal is received, analyzing the access request to obtain and store a to-be-accessed file list of the third terminal carried by the access request; the file list to be accessed comprises a plurality of file resources and file information of each file resource;
and sending the file list to be accessed to the other terminals.
8. The multi-device file transmission device is characterized by being applied to a first terminal, wherein the first terminal is used for deploying a file sharing service program and is in communication connection with a plurality of other terminals, and the other terminals are terminal devices which are used for deploying the file sharing service program except the first terminal;
the file transmission device of the multiple devices comprises:
the information acquisition module is used for analyzing the file acquisition request when the file acquisition request is detected to obtain target file information carried by the file acquisition request; the target file information comprises a file ID, a file name and a file size;
the first searching module is used for searching the target file resource corresponding to the target file information;
the second searching module is used for searching the target file resource in the other terminals based on the file sharing service program when the target file resource is not searched;
and the shared file downloading module is used for downloading the target file resource when the target file resource is found in the other terminals.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111528547.5A CN114465998B (en) | 2021-12-14 | 2021-12-14 | Multi-device file transmission method and device, terminal device and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111528547.5A CN114465998B (en) | 2021-12-14 | 2021-12-14 | Multi-device file transmission method and device, terminal device and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114465998A true CN114465998A (en) | 2022-05-10 |
CN114465998B CN114465998B (en) | 2023-09-22 |
Family
ID=81405571
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111528547.5A Active CN114465998B (en) | 2021-12-14 | 2021-12-14 | Multi-device file transmission method and device, terminal device and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114465998B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115118711A (en) * | 2022-06-06 | 2022-09-27 | 蚂蚁区块链科技(上海)有限公司 | File transmission method and device |
CN115118712A (en) * | 2022-06-06 | 2022-09-27 | 蚂蚁区块链科技(上海)有限公司 | File transmission method and device |
CN116055481A (en) * | 2023-04-03 | 2023-05-02 | 银河航天(北京)网络技术有限公司 | Method, system, device and storage medium for sharing files |
CN116094580A (en) * | 2023-04-10 | 2023-05-09 | 银河航天(北京)网络技术有限公司 | Method, system and storage medium based on satellite asynchronous shared file |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103812915A (en) * | 2012-11-15 | 2014-05-21 | 中兴通讯股份有限公司 | Resource sharing method, device and system, terminal and resource management center |
CN105656978A (en) * | 2014-12-04 | 2016-06-08 | 中国移动通信集团公司 | Resource sharing method and device |
CN106341905A (en) * | 2016-08-31 | 2017-01-18 | 广州视睿电子科技有限公司 | File sharing method based on wireless network, equipment and system |
CN109564565A (en) * | 2016-12-05 | 2019-04-02 | 惠普打印机韩国有限公司 | For providing the server and its operating method of cloud service |
-
2021
- 2021-12-14 CN CN202111528547.5A patent/CN114465998B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103812915A (en) * | 2012-11-15 | 2014-05-21 | 中兴通讯股份有限公司 | Resource sharing method, device and system, terminal and resource management center |
CN105656978A (en) * | 2014-12-04 | 2016-06-08 | 中国移动通信集团公司 | Resource sharing method and device |
CN106341905A (en) * | 2016-08-31 | 2017-01-18 | 广州视睿电子科技有限公司 | File sharing method based on wireless network, equipment and system |
CN109564565A (en) * | 2016-12-05 | 2019-04-02 | 惠普打印机韩国有限公司 | For providing the server and its operating method of cloud service |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115118711A (en) * | 2022-06-06 | 2022-09-27 | 蚂蚁区块链科技(上海)有限公司 | File transmission method and device |
CN115118712A (en) * | 2022-06-06 | 2022-09-27 | 蚂蚁区块链科技(上海)有限公司 | File transmission method and device |
CN116055481A (en) * | 2023-04-03 | 2023-05-02 | 银河航天(北京)网络技术有限公司 | Method, system, device and storage medium for sharing files |
CN116094580A (en) * | 2023-04-10 | 2023-05-09 | 银河航天(北京)网络技术有限公司 | Method, system and storage medium based on satellite asynchronous shared file |
Also Published As
Publication number | Publication date |
---|---|
CN114465998B (en) | 2023-09-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114465998B (en) | Multi-device file transmission method and device, terminal device and readable storage medium | |
CN108540509B (en) | Processing method and device of terminal browser, server and intelligent terminal | |
CN110968331B (en) | Method and device for running application program | |
CN110875850B (en) | Firmware upgrading method and system, readable storage medium and terminal equipment | |
CN111694638A (en) | Rule package loading method, rule package executing method and terminal equipment | |
CN113434249A (en) | Mirror image synchronization method and device, docker host and storage medium | |
CN114785685A (en) | Software differential upgrading method and device, electronic equipment and readable storage medium | |
CN109656592B (en) | Card management method, device, terminal and computer readable storage medium | |
CN114756257B (en) | Data updating method, device, communication module and readable storage medium | |
CN114328097A (en) | File monitoring method and device, electronic equipment and storage medium | |
CN113010238A (en) | Permission determination method, device and system for micro application call interface | |
CN112416384A (en) | Software upgrading method and device and computer equipment | |
CN115878138A (en) | Application pre-downloading method and device, computer and storage medium | |
CN111273939B (en) | Information processing method, information processing device and terminal equipment | |
CN110493735B (en) | Short message processing method and device | |
CN112948013B (en) | Application probe configuration method and device, terminal equipment and storage medium | |
CN110474954B (en) | Block chain-based file sharing method and device, computer equipment and readable storage medium | |
CN112887958A (en) | Data storage method, storage medium and terminal equipment | |
CN112799763A (en) | Function management method, management device, terminal equipment and readable storage medium | |
CN115004667A (en) | Information pushing method and device, electronic equipment and computer readable medium | |
CN113792014B (en) | Nuclear power station file management method and device, terminal equipment and storage medium | |
CN113055876B (en) | Method and device for downloading standby cloud card and terminal equipment | |
CN113885919A (en) | Software acquisition method and device, terminal equipment and readable storage medium | |
CN112988691A (en) | File updating method and device based on embedded system and terminal equipment | |
CN115951901A (en) | Software deployment method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20231124 Address after: Room 601, 6th Floor, Building 13, No. 3 Jinghai Fifth Road, Beijing Economic and Technological Development Zone (Tongzhou), Tongzhou District, Beijing, 100176 Patentee after: Beijing Youbixuan Intelligent Robot Co.,Ltd. Address before: 518000 16th and 22nd Floors, C1 Building, Nanshan Zhiyuan, 1001 Xueyuan Avenue, Nanshan District, Shenzhen City, Guangdong Province Patentee before: Shenzhen Youbixuan Technology Co.,Ltd. |
|
TR01 | Transfer of patent right |