[go: up one dir, main page]

CN113993164A - File transmission method and file transmission device - Google Patents

File transmission method and file transmission device Download PDF

Info

Publication number
CN113993164A
CN113993164A CN202111269800.XA CN202111269800A CN113993164A CN 113993164 A CN113993164 A CN 113993164A CN 202111269800 A CN202111269800 A CN 202111269800A CN 113993164 A CN113993164 A CN 113993164A
Authority
CN
China
Prior art keywords
file
target
transmission
input
identifier
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.)
Pending
Application number
CN202111269800.XA
Other languages
Chinese (zh)
Inventor
张优德
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202111269800.XA priority Critical patent/CN113993164A/en
Publication of CN113993164A publication Critical patent/CN113993164A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • H04W28/065Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information using assembly or disassembly of packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a file transmission method and a file transmission device, and belongs to the technical field of communication. The file transmission method comprises the following steps: receiving a first input of a first identifier, wherein the first identifier is an identifier corresponding to a file to be sent; responding to the first input, canceling to display the first identification, and displaying N second identifications, wherein the second identifications are identifications corresponding to file segments, the file segments are obtained by splitting files to be sent, and N is an integer greater than 1; receiving second input of target identifiers, wherein the N second identifiers comprise target identifiers, and the target identifiers are identifiers corresponding to target file fragments; responding to the second input, determining a transmission mode corresponding to the target file fragment to obtain N target transmission modes, wherein the N target transmission modes are in one-to-one correspondence with the N file fragments; and correspondingly sending N file fragments in N target transmission modes.

Description

File transmission method and file transmission device
Technical Field
The present application belongs to the field of communications technologies, and in particular, relates to a file transmission method and a file transmission apparatus.
Background
In the related art, when a user shares a file through a mobile phone, the user is required to select a transmission mode, the file is sent through the transmission mode selected by the user, and if the file is large in size, the file transmission time is long, and the transmission efficiency is low.
Disclosure of Invention
The embodiment of the application aims to provide a file transmission method and a file transmission device, and the problem of low file transmission efficiency can be solved.
In a first aspect, an embodiment of the present application provides a file transmission method, including:
receiving a first input of a first identifier, wherein the first identifier is an identifier corresponding to a file to be sent;
responding to the first input, canceling to display the first identification, and displaying N second identifications, wherein the second identifications are identifications corresponding to file segments, the file segments are obtained by splitting files to be sent, and N is an integer greater than 1;
receiving second input of target identifiers, wherein the N second identifiers comprise target identifiers, and the target identifiers are identifiers corresponding to target file fragments;
responding to the second input, determining a transmission mode corresponding to the target file fragment to obtain N target transmission modes, wherein the N target transmission modes are in one-to-one correspondence with the N file fragments;
and correspondingly sending N file fragments in N target transmission modes.
In a second aspect, an embodiment of the present application provides a file transmission apparatus, including:
the receiving module is used for receiving a first input of a first identifier, wherein the first identifier is an identifier corresponding to a file to be sent;
the splitting module is used for responding to the first input, canceling to display the first identification and displaying N second identifications, wherein the second identifications are identifications corresponding to file segments, the file segments are obtained by splitting files to be sent, and N is an integer greater than 1;
the receiving module is further used for receiving second input of target identifiers, wherein the N second identifiers comprise the target identifiers, and the target identifiers are identifiers corresponding to the target file segments;
the determining module is used for responding to the second input, determining the transmission modes corresponding to the target file segments, and obtaining N target transmission modes, wherein the N target transmission modes are in one-to-one correspondence with the N file segments;
and the sending module is used for correspondingly sending the N file fragments through the N target transmission modes.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the steps of the method according to the first aspect.
In the embodiment of the application, when a user sends a file, the file to be sent can be split through the first input, so that the complete file to be sent is split into N fragmented file segments, the transmission modes of the file segments are respectively set, and after the file to be sent is set, the file to be sent is subjected to parallel multi-thread file transmission on the file to be transmitted through multiple transmission modes, so that when the file to be sent is transmitted, multiple different transmission modes of electronic equipment can be fully utilized, network bandwidths of the different transmission modes are fully utilized, the time consumed by file transmission can be effectively reduced, and the file transmission efficiency is improved.
Drawings
FIG. 1 shows a flow diagram of a file transfer method according to an embodiment of the application;
FIG. 2 shows one of the interface diagrams of a file transfer method according to an embodiment of the present application;
FIG. 3 is a second schematic interface diagram of a document transmission method according to an embodiment of the present application;
FIG. 4 is a third schematic interface diagram illustrating a file transfer method according to an embodiment of the present application;
FIG. 5 is a fourth illustration of an interface of a document transfer method according to an embodiment of the present application;
FIG. 6 shows a fifth interface diagram of a document transfer method according to an embodiment of the present application;
FIG. 7 is a block diagram showing a configuration of a document transfer apparatus according to an embodiment of the present application;
FIG. 8 shows a block diagram of an electronic device according to an embodiment of the application;
fig. 9 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The following describes in detail a file transfer method and a file transfer apparatus provided in the embodiments of the present application with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
In some embodiments of the present application, a file transfer method is provided, and fig. 1 shows a flowchart of a file transfer method according to an embodiment of the present application, and as shown in fig. 1, the method includes:
step 102, receiving a first input of a first identifier;
in step 102, the first identifier is an identifier corresponding to a file to be sent;
step 104, canceling the display of the first identification and displaying N second identifications;
in step 104, the second identifier is an identifier corresponding to a file segment, the file segment is obtained by splitting a file to be sent, and N is an integer greater than 1;
step 106, receiving a second input of the target identification;
in step 106, the N second identifiers include target identifiers, and the target identifiers are identifiers corresponding to the target file segments;
step 108, responding to the second input, determining the transmission modes corresponding to the target file segments, and obtaining N target transmission modes;
in step 108, the N target transmission modes correspond to the N file segments one to one;
and step 110, correspondingly sending N file fragments through N target transmission modes.
In the embodiment of the application, when a user sends a file, first, a first input can be performed in a mode of pressing the file to be sent for a long time, and the like, so that file splitting is triggered. After receiving a first input of a file to be sent, the electronic device splits the file to be sent into a plurality of file segments according to a set splitting mode to obtain N file segments.
Fig. 2 shows one of interface schematic diagrams of a file transmission method according to an embodiment of the present application, and as shown in fig. 2, in a sharing interface 200, after a user presses a first identifier 202 for a long time, the first identifier 202 is automatically split into N second identifiers 204, where the first identifier 202 represents a file to be sent, and the second identifiers 204 represent file fragments.
The sizes of the N file segments can be set respectively or uniformly. The number of the split file fragments can be set according to the requirements of a user, and the file fragments can be automatically split according to the size of the file fragments set by the user. For example, for a file to be sent with a file size of 100M, splitting the file by 5 equal parts can be selected, and then 5 files to be sent with a size of 20M are obtained. If the user chooses to split the file to be sent of 100M into file segments of 30M size, 3 file segments of 30M file size and 1 file segment of 10M file size will be obtained.
Further, after the N file segments are obtained by splitting, the user may set the transmission mode of each file segment. For example, after splitting a file to be sent, 3 file segments are obtained, which are segment a, segment B, and segment C, respectively. The user can set the transmission mode of the segment A as Wi-Fi P2P, namely, send the segment A in a Wi-Fi direct connection mode, then set the transmission mode of the segment B as Bluetooth transmission, send the segment B in a Bluetooth transmission mode, and finally set the transmission mode of the segment C as a cellular network, namely, send the segment C in a mobile phone traffic internet surfing mode.
After the transmission mode of each file segment is determined, the electronic equipment transmits each file segment through the corresponding transmission mode respectively, so that the parallel multi-thread file transmission is carried out on the band-transmitted files through multiple transmission modes simultaneously, when the files to be transmitted are transmitted, the electronic equipment can fully utilize multiple different transmission modes, fully utilize network bandwidths of the different transmission modes, effectively reduce the time consumed by file transmission and improve the file transmission efficiency.
In some embodiments of the present application, the file format of the N file segments is the same as the file format of the file to be sent.
In the embodiment of the application, when the file to be sent is split, the file to be sent can be split into N small files with the same file format as that of the original file. For example, a user may wish to share an audio piece in mp3 format with a friend, and the audio piece may take a long time to share due to its large file size. At this point, the splitting of this audio file may be triggered by the first input.
After receiving the first input, the preset program is called to split the audio into a plurality of audio segments, for example, a segment of audio with a duration of 10 minutes is split into 5 pieces of audio with a duration of 2 minutes, and the file format of the audio is the same as that of the file before splitting, namely, mp3 format. Then, the 5 audio clips can be shared and sent by setting different or the same transmission modes respectively. The electronic device receiving the sharing can integrate the audio clips after receiving the audio clips, so that complete original audio is obtained, and each audio clip can be played respectively.
It can be understood that when the original file is split according to the same file format, the original file may be split according to a specific sequence, for example, according to the track sequence of an audio file, or according to the paragraph sequence of a text document, or according to the time axis sequence of a video file.
It can be understood that, after splitting the original file to be shared into N file segments, all the N file segments may be sent at one time, or one or more of the N file segments may be selected for sharing, that is, part of the content of the original file to be shared is shared.
By splitting the original file to be sent into N file segments with the same file format as that of the original file to be sent, the electronic device receiving the file segments can use the file segments respectively, namely, the shared file can be used after receiving part of the file segments, and the transmission efficiency of the file is improved.
In some embodiments of the present application, each of the N file segments includes integration information, where the integration information is used to instruct an electronic device that receives the N file segments to integrate the N file segments to obtain a file to be sent.
In the embodiment of the application, in splitting an original file to be shared into N file segments, each file segment is added with integration information, after the shared electronic device receives the file segments, the number of the file segments can be determined according to the integration information, and after all the file segments are received, the file segments are integrated according to the indication of the integration information, so that the received N file segments are restored into the complete original file to be shared.
Fig. 3 shows a second interface schematic diagram of the file transmission method according to the embodiment of the present application, and as shown in fig. 3, the interface 300 is an interface for receiving file fragments, wherein after receiving any file fragment, the second identifiers 302 corresponding to all file fragments can be displayed in the interface 300. Wherein, the document segment which is received completely and the document segment which is not received completely can be displayed in a distinguishing way. After all the file segments have been received, a confirmation menu 304 is displayed and the user can choose whether to merge the file segments.
Fig. 4 shows a third interface schematic diagram of the file transmission method according to the embodiment of the present application, as shown in fig. 4, the interface 400 is an interface for receiving file segments, wherein after receiving N file segments, the interface 400 displays corresponding second identifiers 402, at this time, a receiver can independently run any file segment by clicking one second identifier 402, as shown in fig. 4, after clicking the identifier 404, a user pops up a corresponding running interface 406.
According to the file fragment integrating method and device, the integration information is added into the split file fragments, so that the electronic equipment receiving the file fragments can determine the number of all the file fragments through the integration information, the file fragments can be automatically integrated after all the file fragments are received, and the transmission efficiency is improved.
In some embodiments of the present application, determining, in response to the second input, a transmission mode corresponding to the target file segment includes:
responding to a second input, and displaying M alternative transmission modes, wherein M is a positive integer;
receiving a third input to the target transmission mode, wherein the M alternative transmission modes comprise the target transmission mode;
and responding to the third input, and respectively determining N target transmission modes corresponding to the N file fragments.
In the embodiment of the present application, when determining the target transmission mode of each file segment, the target transmission mode of each file segment may be set. Specifically, a user may select one target file segment of the plurality of file segments, at this time, preset M candidate transmission modes are displayed, the candidate modes include all transmission modes supported by the current electronic device, and the user may set a corresponding target transmission mode for the currently selected target file segment by selecting one of the target candidate modes.
Specifically, fig. 5 shows a fourth interface schematic diagram of the file transmission method according to the embodiment of the present application, as shown in fig. 5, in the sharing interface 500, second identifiers 502 corresponding to 4 file fragments are displayed, and a user may select a transmission mode of each file fragment, specifically, may select a corresponding file transmission mode in the sharing mode menu 504, so as to set a target transmission mode for one file fragment.
According to the method and the device, the transmission mode of each file fragment can be freely selected by a user through visual menu operation, the process is visual, the learning cost of the user is not required, and the file transmission efficiency is improved.
In some embodiments of the present application, after determining N target transmission modes corresponding to N file fragments, respectively, the file transmission method further includes:
receiving a fourth input to the target identification;
determining a target time in response to a fourth input, wherein the target time is used for indicating the sending time of the target file fragment;
correspondingly sending N file fragments by N target transmission modes, comprising the following steps:
and correspondingly sending the N file fragments according to the N sending times and the N target transmission modes.
In the embodiment of the application, a user can set corresponding sending time for each file fragment individually, so that timed sending is realized.
Specifically, when the size of a file to be shared or sent by a user is large, the size of a file fragment is also large, and network channel congestion may be caused by sending all the file fragments simultaneously.
Fig. 6 shows a fifth interface schematic diagram of the file transmission method according to the embodiment of the present application, and as shown in fig. 6, N second identifiers 602 are displayed in the sharing interface 600, wherein sending time may be set for a file fragment corresponding to each second identifier, specifically as shown by time identifiers 604 in fig. 6.
In some embodiments of the present application, the alternative transmission manner includes: bluetooth transmission, infrared transmission, Wi-Fi transmission, cellular network transmission, and near field communication transmission.
In this embodiment of the application, the alternative transmission manner includes BlueTooth transmission (BlueTooth), when the file segment is transmitted through BlueTooth transmission, the current electronic device establishes BlueTooth connection with the target electronic device, and the selected file segment is transmitted to the target electronic device through BlueTooth connection.
The alternative transmission mode further comprises infrared transmission, the current electronic equipment starts an infrared transmitting device, the target electronic equipment starts an infrared receiving device, the infrared transmitting device and the infrared receiving device are oppositely arranged, and the selected file segments are sent to the target electronic equipment through the infrared transmitting device.
Alternative transmission means also include Wi-Fi transmissions, where Wi-Fi transmissions include Wi-Fi p2p and Wi-Fi APs. The Wi-Fi p2p is a Wi-Fi direct mode, when the file fragments are sent through a transmission mode of Wi-Fi p2p, a network channel based on a Wi-Fi communication protocol is established between the current electronic device and the target electronic device, and the selected file fragments are sent to the target electronic device through the established network channel.
The Wi-Fi AP is characterized in that network connection is established between the Wi-Fi AP, namely the current electronic equipment and the target electronic equipment and Access Point (AP) equipment such as a router, the current electronic equipment sends the file fragments to the AP equipment by taking the AP as a relay, and the AP equipment forwards the received data to the target electronic equipment.
The alternative transmission mode further includes cellular network transmission, that is, the electronic device is connected to 2G/3G/4G/5G/6G … … through a network, the current electronic device establishes a cellular network connection with the communication cell, the target file fragments are sent to the sharing server through the cellular network connection, the sharing server receives the file fragments and forwards the file fragments to the target electronic device, and the target electronic device can connect to the network through any mode to obtain the file fragments.
The alternative transmission method further includes Near Field Communication (NFC), and when the file fragment is transmitted through the approach Communication, the current electronic device is close to the target electronic device, so as to establish a Near Field Communication connection, and the target file fragment is transmitted through the approach Communication connection.
In some embodiments of the present application, a document transmission apparatus is provided, and fig. 7 shows a block diagram of a document transmission apparatus according to an embodiment of the present application, and as shown in fig. 7, a document transmission apparatus 700 includes:
a receiving module 702, configured to receive a first input of a first identifier, where the first identifier is an identifier corresponding to a file to be sent;
the splitting module 704 is configured to cancel displaying the first identifier and display N second identifiers in response to the first input, where the second identifiers are identifiers corresponding to file segments, the file segments are obtained by splitting a file to be sent, and N is an integer greater than 1;
a receiving module 702, further configured to receive a second input of target identifiers, where the N second identifiers include target identifiers, and the target identifiers are identifiers corresponding to target file segments;
a determining module 706, configured to determine, in response to the second input, a transmission mode corresponding to the target file segment, to obtain N target transmission modes, where the N target transmission modes are in one-to-one correspondence with the N file segments;
the sending module 708 is configured to correspondingly send the N file segments in the N target transmission manners.
In the embodiment of the application, when a user sends a file, first, a first input can be performed in a mode of pressing the file to be sent for a long time, and the like, so that file splitting is triggered. After receiving a first input of a file to be sent, the electronic device splits the file to be sent into a plurality of file segments according to a set splitting mode to obtain N file segments.
The sizes of the N file segments can be set respectively or uniformly. The number of the split file fragments can be set according to the requirements of a user, and the file fragments can be automatically split according to the size of the file fragments set by the user. For example, for a file to be sent with a file size of 100M, splitting the file by 5 equal parts can be selected, and then 5 files to be sent with a size of 20M are obtained. If the user chooses to split the file to be sent of 100M into file segments of 30M size, 3 file segments of 30M file size and 1 file segment of 10M file size will be obtained.
Further, after the N file segments are obtained by splitting, the user may set the transmission mode of each file segment. For example, after splitting a file to be sent, 3 file segments are obtained, which are segment a, segment B, and segment C, respectively. The user can set the transmission mode of the segment A as Wi-Fi P2P, namely, send the segment A in a Wi-Fi direct connection mode, then set the transmission mode of the segment B as Bluetooth transmission, send the segment B in a Bluetooth transmission mode, and finally set the transmission mode of the segment C as a cellular network, namely, send the segment C in a mobile phone traffic internet surfing mode.
After the transmission mode of each file segment is determined, the electronic equipment transmits each file segment through the corresponding transmission mode respectively, so that the parallel multi-thread file transmission is carried out on the band-transmitted files through multiple transmission modes simultaneously, when the files to be transmitted are transmitted, the electronic equipment can fully utilize multiple different transmission modes, fully utilize network bandwidths of the different transmission modes, effectively reduce the time consumed by file transmission and improve the file transmission efficiency.
In some embodiments of the present application, the file format of the N file segments is the same as the file format of the file to be sent.
In the embodiment of the application, when the file to be sent is split, the file to be sent can be split into N small files with the same file format as that of the original file. For example, a user may wish to share an audio piece in mp3 format with a friend, and the audio piece may take a long time to share due to its large file size. At this point, the splitting of this audio file may be triggered by the first input.
After receiving the first input, the preset program is called to split the audio into a plurality of audio segments, for example, a segment of audio with a duration of 10 minutes is split into 5 pieces of audio with a duration of 2 minutes, and the file format of the audio is the same as that of the file before splitting, namely, mp3 format. Then, the 5 audio clips can be shared and sent by setting different or the same transmission modes respectively. The electronic device receiving the sharing can integrate the audio clips after receiving the audio clips, so that complete original audio is obtained, and each audio clip can be played respectively.
By splitting the original file to be sent into N file segments with the same file format as that of the original file to be sent, the electronic device receiving the file segments can use the file segments respectively, namely, the shared file can be used after receiving part of the file segments, and the transmission efficiency of the file is improved.
In some embodiments of the present application, each of the N file segments includes integration information, where the integration information is used to instruct an electronic device that receives the N file segments to integrate the N file segments to obtain a file to be sent.
In the embodiment of the application, in splitting an original file to be shared into N file segments, each file segment is added with integration information, after the shared electronic device receives the file segments, the number of the file segments can be determined according to the integration information, and after all the file segments are received, the file segments are integrated according to the indication of the integration information, so that the received N file segments are restored into the complete original file to be shared.
According to the file fragment integrating method and device, the integration information is added into the split file fragments, so that the electronic equipment receiving the file fragments can determine the number of all the file fragments through the integration information, the file fragments can be automatically integrated after all the file fragments are received, and the transmission efficiency is improved.
In some embodiments of the present application, the file transfer device further comprises:
the display module is used for responding to a second input and displaying M alternative transmission modes, wherein M is a positive integer;
the receiving module is further configured to receive a third input to the target transmission mode, where the M candidate transmission modes include the target transmission mode;
and the determining module is also used for responding to the third input and respectively determining N target transmission modes corresponding to the N file fragments.
In the embodiment of the present application, when determining the target transmission mode of each file segment, the target transmission mode of each file segment may be set. Specifically, a user may select one target file segment of the plurality of file segments, at this time, preset M candidate transmission modes are displayed, the candidate modes include all transmission modes supported by the current electronic device, and the user may set a corresponding target transmission mode for the currently selected target file segment by selecting one of the target candidate modes.
According to the method and the device, the transmission mode of each file fragment can be freely selected by a user through visual menu operation, the process is visual, the learning cost of the user is not required, and the file transmission efficiency is improved.
In some embodiments of the present application, the receiving module is further configured to receive a fourth input for the target identification;
the determining module is further used for responding to a fourth input and determining a target time, wherein the target time is used for indicating the sending time of the target file fragment;
and the sending module is also used for correspondingly sending the N file fragments according to the N sending times and the N target transmission modes.
In the embodiment of the application, a user can set corresponding sending time for each file fragment individually, so that timed sending is realized.
Specifically, when the size of a file to be shared or sent by a user is large, the size of a file fragment is also large, and network channel congestion may be caused by sending all the file fragments simultaneously.
In some embodiments of the present application, the alternative transmission manner includes: bluetooth transmission, infrared transmission, Wi-Fi transmission, cellular network transmission, and near field communication transmission.
In this embodiment of the application, the alternative transmission manner includes BlueTooth transmission (BlueTooth), when the file segment is transmitted through BlueTooth transmission, the current electronic device establishes BlueTooth connection with the target electronic device, and the selected file segment is transmitted to the target electronic device through BlueTooth connection.
The alternative transmission mode further comprises infrared transmission, the current electronic equipment starts an infrared transmitting device, the target electronic equipment starts an infrared receiving device, the infrared transmitting device and the infrared receiving device are oppositely arranged, and the selected file segments are sent to the target electronic equipment through the infrared transmitting device.
Alternative transmission means also include Wi-Fi transmissions, where Wi-Fi transmissions include Wi-Fi p2p and Wi-Fi APs. The Wi-Fi p2p is a Wi-Fi direct mode, when the file fragments are sent through a transmission mode of Wi-Fi p2p, a network channel based on a Wi-Fi communication protocol is established between the current electronic device and the target electronic device, and the selected file fragments are sent to the target electronic device through the established network channel.
The Wi-Fi AP is characterized in that network connection is established between the Wi-Fi AP, namely the current electronic equipment and the target electronic equipment and Access Point (AP) equipment such as a router, the current electronic equipment sends the file fragments to the AP equipment by taking the AP as a relay, and the AP equipment forwards the received data to the target electronic equipment.
The alternative transmission mode further includes cellular network transmission, that is, the electronic device is connected to 2G/3G/4G/5G/6G … … through a network, the current electronic device establishes a cellular network connection with the communication cell, the target file fragments are sent to the sharing server through the cellular network connection, the sharing server receives the file fragments and forwards the file fragments to the target electronic device, and the target electronic device can connect to the network through any mode to obtain the file fragments.
The alternative transmission method further includes Near Field Communication (NFC), and when the file fragment is transmitted through the approach Communication, the current electronic device is close to the target electronic device, so as to establish a Near Field Communication connection, and the target file fragment is transmitted through the approach Communication connection.
The file transmission device in the embodiment of the present application may be a device, and may also be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The file transfer device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The file transmission device provided by the embodiment of the application can implement each process implemented by the method embodiment, and is not repeated here to avoid repetition.
Optionally, an electronic device is further provided in an embodiment of the present application, fig. 8 shows a block diagram of a structure of the electronic device according to the embodiment of the present application, and as shown in fig. 8, an electronic device 800 includes a processor 802, a memory 804, and a program or an instruction stored in the memory 804 and capable of running on the processor 802, and when the program or the instruction is executed by the processor 802, the process of the embodiment of the method is implemented, and the same technical effect can be achieved, and details are not repeated here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 9 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 900 includes, but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, and a processor 910.
Those skilled in the art will appreciate that the electronic device 900 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 910 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system. The electronic device structure shown in fig. 9 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The user input unit 907 is configured to receive a first input of a first identifier, where the first identifier is an identifier corresponding to a file to be sent;
the processor 910 is configured to cancel displaying the first identifier and display N second identifiers in response to the first input, where the second identifiers are identifiers corresponding to file segments, the file segments are obtained by splitting a file to be sent, and N is an integer greater than 1;
the user input unit 907 is further configured to receive a second input of a target identifier, where the N second identifiers include the target identifier, and the target identifier is an identifier corresponding to the target file segment;
the processor 910 is further configured to determine, in response to the second input, a transmission manner corresponding to the target file segment, to obtain N target transmission manners, where the N target transmission manners are in one-to-one correspondence with the N file segments; and correspondingly sending N file fragments in N target transmission modes.
In the embodiment of the application, when a user sends a file, the file to be sent can be split through the first input, so that the complete file to be sent is split into N fragmented file segments, the transmission modes of the file segments are respectively set, and after the file to be sent is set, the file to be sent is subjected to parallel multi-thread file transmission on the file to be transmitted through multiple transmission modes, so that when the file to be sent is transmitted, multiple different transmission modes of electronic equipment can be fully utilized, network bandwidths of the different transmission modes are fully utilized, the time consumed by file transmission can be effectively reduced, and the file transmission efficiency is improved.
Optionally, the file format of the N file segments is the same as the file format of the file to be sent.
In the embodiment of the application, the original file to be sent is split into N file segments with the same file format as that of the original file to be sent, so that the electronic devices receiving the file segments can use the file segments respectively, that is, the shared files can be used after receiving part of the file segments, and the file transmission efficiency is improved.
Optionally, the N file segments each include integration information, where the integration information is used to instruct the electronic device that receives the N file segments to integrate the N file segments, so as to obtain a file to be sent.
In the embodiment of the application, in splitting an original file to be shared into N file segments, each file segment is added with integration information, after the shared electronic device receives the file segments, the number of the file segments can be determined according to the integration information, and after all the file segments are received, the file segments are integrated according to the indication of the integration information, so that the received N file segments are restored into the complete original file to be shared.
Optionally, the processor 910 is further configured to display M alternative transmission modes in response to a second input, where M is a positive integer;
the user input unit 907 is further configured to receive a third input to the target transmission manner, where the M candidate transmission manners include the target transmission manner;
the processor 910 is further configured to determine, in response to a third input, N target transmission modes corresponding to the N file segments, respectively.
According to the method and the device, the transmission mode of each file fragment can be freely selected by a user through visual menu operation, the process is visual, the learning cost of the user is not required, and the file transmission efficiency is improved.
Optionally, the user input unit 907 is further configured to receive a fourth input of the target identification;
processor 910 is further configured to determine a target time in response to a fourth input, where the target time is used to indicate a transmission time of the target file segment;
the processor 910 is further configured to correspondingly send the N file segments according to the N sending times and the N target transmission modes.
In the embodiment of the application, a user can set corresponding sending time for each file fragment individually, so that timed sending is realized. When the file volume that the user needs to share or send is large, the volume of the file fragment is also large, and the network channel is likely to be blocked when all the file fragments are sent at the same time.
Optionally, the alternative transmission manner includes: bluetooth transmission, infrared transmission, Wi-Fi transmission, cellular network transmission, and near field communication transmission.
In the embodiment of the application, when a user sends a file, the file to be sent can be split through the first input, so that the complete file to be sent is split into N fragmented file segments, the transmission modes of the file segments are respectively set, and after the file to be sent is set, the file to be sent is subjected to parallel multi-thread file transmission on the file to be transmitted through multiple transmission modes, so that when the file to be sent is transmitted, multiple different transmission modes of electronic equipment can be fully utilized, network bandwidths of the different transmission modes are fully utilized, the time consumed by file transmission can be effectively reduced, and the file transmission efficiency is improved.
It should be understood that, in the embodiment of the present application, the input Unit 904 may include a Graphics Processing Unit (GPU) 9041 and a microphone 9042, and the Graphics Processing Unit 9041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode.
The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 907 includes a touch panel 9071 and other input devices 9072. A touch panel 9071 also referred to as a touch screen. The touch panel 9071 may include two parts, a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. Memory 909 can be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 910 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 910.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements the processes of the foregoing method embodiments, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the foregoing method embodiments, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method for file transfer, comprising:
receiving a first input of a first identifier, wherein the first identifier is an identifier corresponding to a file to be sent;
responding to the first input, canceling to display the first identifier, and displaying N second identifiers, wherein the second identifiers are identifiers corresponding to file fragments, the file fragments are obtained by splitting the file to be sent, and N is an integer greater than 1;
receiving a second input of a target identifier, wherein the N second identifiers comprise the target identifier, and the target identifier is an identifier corresponding to a target file segment;
responding to the second input, determining a transmission mode corresponding to the target file fragment to obtain N target transmission modes, wherein the N target transmission modes are in one-to-one correspondence with the N file fragments;
and correspondingly sending the N file fragments through the N target transmission modes.
2. The file transmission method according to claim 1, wherein each of the N file segments includes integration information, and wherein the integration information is used to instruct an electronic device that receives the N file segments to integrate the N file segments to obtain the file to be transmitted.
3. The file transmission method according to claim 1 or 2, wherein the determining a transmission mode corresponding to the target file segment in response to the second input comprises:
responding to the second input, and displaying M alternative transmission modes, wherein M is a positive integer;
receiving a third input to the target transmission mode, wherein the M alternative transmission modes include the target transmission mode;
and responding to the third input, and respectively determining the N target transmission modes corresponding to the N file fragments.
4. The file transfer method according to claim 3, wherein after the determining the N target transfer modes corresponding to the N file fragments respectively, the file transfer method further comprises:
receiving a fourth input to the target identification;
determining a target time in response to the fourth input, wherein the target time is used for indicating the sending time of the target file segment;
the correspondingly sending the N file segments in the N target transmission modes includes:
and correspondingly sending the N file fragments according to the N sending times and the N target transmission modes.
5. The file transmission method according to claim 3, wherein the alternative transmission means includes:
bluetooth transmission, infrared transmission, Wi-Fi transmission, cellular network transmission, and near field communication transmission.
6. A file transfer apparatus, comprising:
the receiving module is used for receiving a first input of a first identifier, wherein the first identifier is an identifier corresponding to a file to be sent;
the splitting module is used for responding to the first input, canceling to display the first identifier and displaying N second identifiers, wherein the second identifiers are identifiers corresponding to file segments, the file segments are obtained by splitting the file to be sent, and N is an integer greater than 1;
the receiving module is further configured to receive a second input of a target identifier, where the N second identifiers include the target identifier, and the target identifier is an identifier corresponding to a target file segment;
a determining module, configured to determine, in response to the second input, a transmission manner corresponding to the target file segment to obtain N target transmission manners, where the N target transmission manners are in one-to-one correspondence with the N file segments;
and the sending module is used for correspondingly sending the N file fragments through the N target transmission modes.
7. The apparatus according to claim 6, wherein each of the N file segments includes integration information, and wherein the integration information is used to instruct an electronic device that receives the N file segments to integrate the N file segments to obtain the file to be transmitted.
8. The file transfer device according to claim 6 or 7, characterized by further comprising:
a display module, configured to respond to the second input and display M alternative transmission modes, where M is a positive integer;
the receiving module is further configured to receive a third input to the target transmission mode, where the M candidate transmission modes include the target transmission mode;
the determining module is further configured to respectively determine the N target transmission modes corresponding to the N file segments in response to the third input.
9. The document transfer apparatus according to claim 8,
the receiving module is further configured to receive a fourth input to the target identifier;
the determining module is further configured to determine a target time in response to the fourth input, where the target time is used to indicate a sending time of the target file segment;
the sending module is further configured to correspondingly send the N file segments according to the N sending times and the N target transmission modes.
10. The file transfer device according to claim 8, wherein the alternative transfer means comprises:
bluetooth transmission, infrared transmission, Wi-Fi transmission, cellular network transmission, and near field communication transmission.
CN202111269800.XA 2021-10-29 2021-10-29 File transmission method and file transmission device Pending CN113993164A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111269800.XA CN113993164A (en) 2021-10-29 2021-10-29 File transmission method and file transmission device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111269800.XA CN113993164A (en) 2021-10-29 2021-10-29 File transmission method and file transmission device

Publications (1)

Publication Number Publication Date
CN113993164A true CN113993164A (en) 2022-01-28

Family

ID=79744157

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111269800.XA Pending CN113993164A (en) 2021-10-29 2021-10-29 File transmission method and file transmission device

Country Status (1)

Country Link
CN (1) CN113993164A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115208877A (en) * 2022-07-21 2022-10-18 中国建设银行股份有限公司 File transmission method, device, equipment, medium and product

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1547348A (en) * 2003-12-10 2004-11-17 中国科学院计算技术研究所 A Method of User-Level Parallel Communication Between Computers Based on Intelligent Network Card
CN103781187A (en) * 2012-10-19 2014-05-07 华为终端有限公司 File transmission controlling method and terminal
CN103843358A (en) * 2011-09-21 2014-06-04 日本电气株式会社 Contents distribution system, cache server, and contents distribution method
CN104519075A (en) * 2013-09-26 2015-04-15 中兴通讯股份有限公司 Data transmission method and device
CN106210146A (en) * 2016-09-13 2016-12-07 郑州云海信息技术有限公司 File loading method based on B/S framework, device, server and system
US20170093946A1 (en) * 2015-09-28 2017-03-30 Sony Corporation Parallel transcoding directly from file identifier
CN110213662A (en) * 2019-07-09 2019-09-06 金明晔 A kind of VOD method, server, client and video on-demand system
CN112291341A (en) * 2020-10-28 2021-01-29 维沃移动通信有限公司 File transmission method, device and equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1547348A (en) * 2003-12-10 2004-11-17 中国科学院计算技术研究所 A Method of User-Level Parallel Communication Between Computers Based on Intelligent Network Card
CN103843358A (en) * 2011-09-21 2014-06-04 日本电气株式会社 Contents distribution system, cache server, and contents distribution method
CN103781187A (en) * 2012-10-19 2014-05-07 华为终端有限公司 File transmission controlling method and terminal
CN104519075A (en) * 2013-09-26 2015-04-15 中兴通讯股份有限公司 Data transmission method and device
US20170093946A1 (en) * 2015-09-28 2017-03-30 Sony Corporation Parallel transcoding directly from file identifier
CN106210146A (en) * 2016-09-13 2016-12-07 郑州云海信息技术有限公司 File loading method based on B/S framework, device, server and system
CN110213662A (en) * 2019-07-09 2019-09-06 金明晔 A kind of VOD method, server, client and video on-demand system
CN112291341A (en) * 2020-10-28 2021-01-29 维沃移动通信有限公司 File transmission method, device and equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115208877A (en) * 2022-07-21 2022-10-18 中国建设银行股份有限公司 File transmission method, device, equipment, medium and product
CN115208877B (en) * 2022-07-21 2024-02-27 中国建设银行股份有限公司 File transmission method, device, equipment, medium and product

Similar Documents

Publication Publication Date Title
CN110012328B (en) Method and device for interacting with smart television
CN106713323B (en) page content preview method, client, server and system
CN113014972B (en) Screen projection method, device and system
CN104615421A (en) Virtual gift display method and device
CN106028266B (en) Information transmission method, device and system
CN112286887A (en) File sharing method and device and electronic equipment
CN113285866B (en) Information sending method and device and electronic equipment
CN106413032B (en) Hotspot establishing method and terminal equipment
CN111866976A (en) Network switching method and device
CN112511412B (en) Information sending method and device, electronic equipment and readable storage medium
CN102375554A (en) Hand-held device and method thereof for inputting characters
US12271722B2 (en) Application installation method and apparatus, terminal device, and storage medium
CN106330681B (en) Method, system and related equipment for sharing film watching information
CN113993164A (en) File transmission method and file transmission device
CN105245438B (en) Content sharing method, device and system
CN115314173B (en) Resource pool configuration method, device, terminal and network side equipment
CN107798008B (en) Content pushing system, method and device
CN114501566A (en) Network switching method and device
CN113992660A (en) File transmission method and device, electronic equipment and storage medium
CN114221923A (en) Message processing method and device and electronic equipment
CN106453574A (en) Mobile terminal broadcast hotspot file sharing method and terminal
CN112612548A (en) Data processing method and device and electronic equipment
CN115460698A (en) PDCCH monitoring method, terminal and network side equipment
CN112905837A (en) Video file processing method and device and electronic equipment
CN107613135B (en) Information transmission method, first terminal, second terminal and storage medium

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