[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2018010448A1 - File transmission method and apparatus - Google Patents

File transmission method and apparatus Download PDF

Info

Publication number
WO2018010448A1
WO2018010448A1 PCT/CN2017/077724 CN2017077724W WO2018010448A1 WO 2018010448 A1 WO2018010448 A1 WO 2018010448A1 CN 2017077724 W CN2017077724 W CN 2017077724W WO 2018010448 A1 WO2018010448 A1 WO 2018010448A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
file
downloaded
transmission
transmitted
Prior art date
Application number
PCT/CN2017/077724
Other languages
French (fr)
Chinese (zh)
Inventor
邓现伦
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018010448A1 publication Critical patent/WO2018010448A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/14Multichannel or multilink protocols

Definitions

  • Embodiments of the present invention relate to the field of communications, and in particular, to a file transmission method and apparatus.
  • both the sender and the receiver need to be connected to the WI-FI terminal.
  • a WI-FI terminal for example, a smart uFi or a router
  • both the sender and the receiver need to be connected to the WI-FI terminal.
  • the file transfer cannot be performed. Waiting for the next two users to be online at the same time, the files transmitted by the user can be retransmitted, which results in greatly reduced user experience.
  • file transmission when file transmission is performed based on the WI-FI terminal, file transmission cannot be performed when one of the sender and the receiver is not online.
  • the embodiment of the invention provides a file transmission method and device, so as to solve at least the problem that the file transmission cannot be performed when one of the sender and the receiver is not online when the file is transmitted by the WI-FI terminal in the related art.
  • a file transmission method including: storing a file transmitted by the first terminal from a first terminal to a second terminal; determining whether the second terminal supports file transmission; If the result is YES, the stored file is sent to the second terminal.
  • storing the file that is sent by the first terminal from the first terminal to the second terminal includes: transmitting a file downloaded from the first terminal to the second terminal Detecting that the second terminal is abnormally disconnected; determining whether to continue downloading the undownloaded file to be downloaded from the first terminal; if the determination result is yes, downloading the The file to be downloaded is stored.
  • the method before sending the stored file to the second terminal, the method further includes: The second terminal sends a first indication message, where the first indication message is used to indicate that the status of the file that is transmitted by the first terminal to the second terminal is downloaded to be transmitted.
  • the method further includes: sending a second indication message to the second terminal, where the second indication message is used to indicate the first The state of the file transmitted by the terminal to the second terminal is that the transmission is completed.
  • storing the file that is sent by the first terminal from the first terminal to the second terminal includes: transmitting a file downloaded from the first terminal to the second terminal Detecting that the first terminal is abnormally disconnected; determining whether the file downloaded from the first terminal is complete; and if the determination result is no, marking a part of the file downloaded from the first terminal And for continuing to download the remaining part of the file from the first terminal when detecting that the first terminal supports file transmission.
  • a file transmission apparatus including: a storage module configured to store a file transmitted by the first terminal from a first terminal to a second terminal; and a determination module configured to determine Whether the second terminal supports file transmission; the first sending module is configured to send the stored file to the second terminal if the determination result is yes.
  • the storage module includes: a first detecting unit, configured to detect that the second terminal is abnormally disconnected during a process of transmitting a file downloaded from the first terminal to the second terminal;
  • the first determining unit is configured to determine whether to continue downloading the undownloaded file to be downloaded from the first terminal, and the downloading unit is configured to download the to-be-suppressed from the first terminal if the determination result is yes Download the file for storage.
  • the method further includes: a second sending module, configured to send a first indication message to the second terminal, where the first indication message is used to indicate that the first terminal transmits to the second terminal The status of the file is downloaded to be transmitted.
  • a second sending module configured to send a first indication message to the second terminal, where the first indication message is used to indicate that the first terminal transmits to the second terminal The status of the file is downloaded to be transmitted.
  • the method further includes: a third sending module, configured to send a second indication message to the second terminal, where the second indication message is used to indicate that the first terminal transmits to the second terminal The status of the file is that the transfer has been completed.
  • a third sending module configured to send a second indication message to the second terminal, where the second indication message is used to indicate that the first terminal transmits to the second terminal The status of the file is that the transfer has been completed.
  • the storage module includes: a second detecting unit, configured to be in the first During the process of transmitting the file downloaded by the terminal to the second terminal, detecting that the first terminal is abnormally disconnected; the second determining unit is configured to determine whether the file downloaded from the first terminal is complete; And setting, in the case that the determination result is no, marking a part of the file downloaded from the first terminal, and subsequently continuing to download from the first terminal when detecting that the first terminal supports file transmission The rest of the file.
  • a second detecting unit configured to be in the first During the process of transmitting the file downloaded by the terminal to the second terminal, detecting that the first terminal is abnormally disconnected
  • the second determining unit is configured to determine whether the file downloaded from the first terminal is complete; And setting, in the case that the determination result is no, marking a part of the file downloaded from the first terminal, and subsequently continuing to download from the first terminal when detecting that the first terminal supports file transmission The rest of the file.
  • a storage medium is also provided.
  • the storage medium is configured to store program code for performing the steps of: storing a file transmitted by the first terminal from the first terminal to the second terminal; determining whether the second terminal supports file transmission; In case, the stored file is sent to the second terminal.
  • the storage medium is further configured to store program code for performing the following steps: before sending the stored file to the second terminal, further comprising: sending a first indication message to the second terminal, The first indication message is used to indicate that the status of the file that is transmitted by the first terminal to the second terminal is downloaded to be transmitted.
  • the storage medium is further configured to store program code for performing the following steps: after transmitting the stored file to the second terminal, further comprising: sending a second indication message to the second terminal, The second indication message is used to indicate that the status of the file that is transmitted by the first terminal to the second terminal is that the transmission is completed.
  • the file transmitted from the first terminal of the first terminal to the second terminal is stored; whether the second terminal supports the file transmission; and if the determination result is yes, the stored file is sent to the second terminal. . Since the file to be sent by the first terminal to the second terminal is stored, the second terminal can receive the file when it is capable of receiving the file, so even when the file is transmitted by the first terminal, the second terminal If it is not online, it will not affect the file transmission. Therefore, it can solve the problem that the file transmission cannot be performed when one of the sender and the receiver is not online when the file is transmitted based on the WI-FI terminal in the related art.
  • FIG. 1 is a block diagram showing the hardware structure of a terminal of a file transmission method according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a file transfer method according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of a method for transmitting a file based on an intelligent uFi according to an embodiment of the present invention
  • FIG. 4 is a flowchart of an asynchronous uFi-based file asynchronous resume according to an embodiment of the present invention
  • FIG. 5 is a structural block diagram of a file transfer apparatus according to an embodiment of the present invention.
  • FIG. 6 is a structural block diagram of a storage module 52 in a file transfer apparatus according to an embodiment of the present invention.
  • FIG. 7 is a block diagram 1 of a preferred structure of a file transfer apparatus according to an embodiment of the present invention.
  • FIG. 8 is a block diagram 2 of a preferred structure of a file transfer apparatus according to an embodiment of the present invention.
  • FIG. 9 is a block diagram showing a preferred configuration of a memory module 52 in a file transfer apparatus according to an embodiment of the present invention.
  • FIG. 1 is a block diagram showing the hardware structure of a terminal of a file transmission method according to an embodiment of the present invention.
  • terminal 10 may include one or more (only one shown) processor 102 (processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), A memory 104 for storing data, and a transmission device 106 for communication functions.
  • processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA
  • a memory 104 for storing data
  • a transmission device 106 for communication functions.
  • terminal 10 may also include more or fewer components than those shown in FIG. 1, or have a different configuration than that shown in FIG.
  • the memory 104 can be configured as a software program and a module for storing application software, such as program instructions/modules corresponding to the file transfer method in the embodiment of the present invention, and the processor 102 executes each by executing a software program and a module stored in the memory 104.
  • a functional application and data processing, that is, the above method is implemented.
  • Memory 104 may include high speed random access memory, and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
  • memory 104 may further include memory remotely located relative to processor 102, which may be connected to terminal 10 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • Transmission device 106 is arranged to receive or transmit data via a network.
  • the above-described network specific example may include a wireless network provided by a communication provider of the mobile terminal 10.
  • the transmission device 106 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet.
  • NIC Network Interface Controller
  • the transmission device 106 can be a radio frequency (RF) module configured to communicate with the Internet wirelessly.
  • RF radio frequency
  • FIG. 2 is a flowchart of a file transmission method according to an embodiment of the present invention. As shown in FIG. 2, the process includes the following steps:
  • Step S202 storing a file transmitted by the first terminal from the first terminal to the second terminal;
  • Step S204 determining whether the second terminal supports file transmission
  • Step S206 if the determination result is yes, the stored file is sent to the second terminal.
  • the file that the first terminal sends to the second terminal is stored, so that the second terminal can receive the file when it is capable of receiving the file, so even when the file is transmitted by the first terminal,
  • the second terminal is not online and does not affect the file transmission. Therefore, it can solve the problem that the file transmission cannot be performed when one of the sender and the receiver is not online when the file is transmitted based on the WI-FI terminal in the related art.
  • storing the file sent by the first terminal from the first terminal to the second terminal includes: detecting that the second terminal is abnormally disconnected during the process of transmitting the file downloaded from the first terminal to the second terminal; Whether to continue downloading the undownloaded file to be downloaded from the first terminal; if the determination result is yes, the file to be downloaded is downloaded from the first terminal for storage.
  • the second terminal is abnormally disconnected, the first terminal does not stop transmitting files because the second terminal is disconnected, and the file can still be transferred and stored, so that the second terminal is normally online.
  • the stored file can be obtained, so that the problem that one party is abnormally disconnected and the other party cannot continue to transfer files during the file transfer process can be solved.
  • the method further includes: sending a first indication message to the second terminal, where the first indication message is used to indicate a status of the file that is transmitted by the first terminal to the second terminal It has been downloaded for transmission.
  • the second terminal can quickly determine whether the stored file can be obtained according to the state of the stored file.
  • the method further includes: sending a second indication message to the second terminal, where the second indication message is used to indicate a status of the file that is transmitted by the first terminal to the second terminal Completed for transfer.
  • storing the file that is transmitted by the first terminal from the first terminal to the second terminal includes: detecting that the first terminal is abnormally disconnected during the process of transmitting the file downloaded from the first terminal to the second terminal; Whether the file downloaded from the first terminal is complete; if the result of the determination is no, the partial file downloaded from the first terminal is marked for subsequent use to continue from the first terminal when detecting that the first terminal supports file transmission Download the rest of the file.
  • the foregoing embodiment is applied to a scenario in which a different smart device performs file transmission based on a WI-FI terminal (for example, an intelligent uFi).
  • a WI-FI terminal for example, an intelligent uFi
  • an asynchronous file transmission process and both users can be implemented.
  • the file transfer is completed through the WI-FI terminal.
  • uFi When different users' mobile phones are connected to uFi through WI-FI, uFi itself will save a list of currently connected user lists, through which the mobile phone devices connected to the smart uFi can be obtained, including the devices. The mac address and the IP address assigned to the device.
  • File transfer list This table is stored in the smart uFi and consists of one record.
  • One record contains fields (record id, sender mac address, sender file path, receiver mac address, receiver storage address, uFi file address). , transmission status), wherein the transmission status is included (in the transmission, completed (same as the above completed transmission), not completed to be uploaded, uploaded to be downloaded (the same The above has been downloaded to be transferred), the upload has been canceled)
  • Transmission record port As the server of the whole system, the smart uFi opens the socket listening port after the uFi is started. When the user performs file transfer, the socket connection is first established to the transmission record port, and the user client (for example, the APP on the mobile phone). You can get a list of all devices connected to the smart uFi and send a message update file transfer.
  • the user client for example, the APP on the mobile phone.
  • Client accepts the port When the mobile phone is connected to the smart WI-FI, after the file transfer function is enabled, the socket listening port is opened by itself. When different clients use the file transfer function, the file transfer is completed by connecting the port of the client ip. And instruction interaction.
  • the initialization operation is performed: the first step is to establish a connection with the intelligent uFi transmission record port through the client (for example, the APP on the mobile phone), and send a request device list instruction to obtain the current online user and obtain The mac address and its assigned IP address are used to obtain a list of users who can currently transfer files in real time.
  • the second step is to establish a client accepting port for the corresponding client according to the local IP address to monitor whether there is a request to send a file.
  • the third step is to send the query command to the intelligent uFi, and the query relates to the abnormal state record of the device, including the situation that the sender needs to send the file to the uFi storage space, and If the receiver does not complete the download, the file can be resumed asynchronously if the sender or receiver is abnormally disconnected.
  • the process of the abnormal disconnection of the mobile phone A If the intermediate mobile phone A is disconnected and the file has not been transferred yet, the mobile phone B cannot accept the mobile phone A file, at this time, if the mobile phone B selects and waits for the next mobile phone A to connect to the uFi,
  • the unfinished file is uploaded to the smart uFi storage space
  • the data command is sent to the smart uFi, and the transfer status is changed to the uncompleted upload.
  • the purpose is to make the unfinished after the next sender connects to the uFi.
  • the file is sent to the storage space of the smart uFi, so that the recipient can download it later, otherwise the command is sent to the smart uFi to delete the transmission record, and the mobile phone B deletes the file that has not been downloaded.
  • the process of abnormally disconnecting the mobile phone B If the intermediate mobile phone B is disconnected, the mobile phone A can select whether to upload the uncompleted transferred file to the smart uFi storage space, and if yes, upload the file to the uFi, when the upload is completed, Send the data command to the smart uFi, and change the status to the uploaded to be downloaded. Also update the uFi file address to the address in the smart uFi. The purpose is to complete the uFi storage space when the receiver connects to the uFi next time. Download unfinished files. If you select No, send a data command to the smart uFi, and the status of this record is canceled.
  • the process of asynchronously resuming the file after the abnormal disconnection After the sending A (mobile phone A) or the receiving party B (mobile phone B) abnormal disconnection occurs, and the next time the device is connected to the smart uFi, the third step is initialized.
  • the file transfer list of the smart uFi is read, and is divided into two cases: first, if the mac address of the device is on the sender and if the status is uncompleted to be uploaded, if the device selects that the upload is not completed, then Read the file according to the sender address of the transmission list and upload it to the storage space of the smart uFi.
  • FIG. 3 is A flowchart of an intelligent uFi-based file transmission method according to an embodiment of the present invention, as shown in FIG. 3, the process includes: connecting to different clients of the smart uFi, and acquiring current user list information through the transmission record port.
  • Step S302 The sender A (same as the above mobile phone A) requests to send a file to the current online user receiver B;
  • Step S304 Send the MAC address of the sender A, the file path, the MAC address of the receiver B (the same mobile phone B), and the transmission status (to be confirmed) to the intelligent uFi file transmission port, and the smart uFi receives a data. new record;
  • Step S306 The accepting party B accepts the sending file request of the sender A, and further selects whether to accept the file. If the receiving party B does not accept the file, the process goes to step S308, and if the receiving party B chooses to accept the file, the process goes to step S310. ;
  • Step S308 The receiving party B sends a delete command to the smart uFi, and the uFi deletes the transmission record, and the file transmission ends;
  • Step S310 The receiving party sends the receiving path to the smart uFi, and the smart uFi updates the accepted address of the record after receiving the data, and the transmission state is in the transmission;
  • Step S312 In the transmission process, whether there is a case where the sender A exits, that is, the case where the sender A disconnects, if the sender A disconnects, the process goes to step S314, if the sender A disconnects If yes, go to step S320;
  • Step S314 The accepting party B can select whether to let the sender A send the file to the storage space of the smart uFi, if the receiving party B selects yes, then go to step S316, if the receiving party B selects no, then turn Go to step S318;
  • Step 316 The receiving party B sends a modification command, and the smart uFi modifies the transmission record to be uncompleted for uploading.
  • the purpose is that after the next sender goes online, the status of the transmission record can be uncompleted to be uploaded, and then the selection is not
  • the completed file is uploaded to the storage space of the smart uFi, so that the uploading is completed for the recipient of the record to complete the asynchronous download of the file;
  • Step S318 Send a delete instruction, the smart uFi deletes the transmission record, and the receiver B deletes the locally downloaded unfinished file;
  • Step S320 determining whether there is a disconnection of the receiver B, if there is a case where the receiver B is disconnected, then go to step S322, if there is no case where the receiver B is disconnected, then go to step S328;
  • Step S322 The sender A selects whether to upload to the smart uFi storage space, if the sender A selects yes, then go to step S324, if the sender A chooses no, then go to step S326;
  • Step S324 The sender A uploads the file to the storage space of the smart uFi. After the upload is completed, the uFi file address of the list is updated, and the update status is uploaded and to be downloaded, so that the next time the receiver B can record according to the status of the record. Uploaded to be downloaded, you can select the uFi file address from this record, you can choose to download the unfinished file from the uFi storage space, and complete the asynchronous transfer of the file;
  • Step S326 Send a data command, and uFi updates the transmission record to cancel the upload;
  • Step S328 After the sending is completed, the modified transmission state is completed.
  • FIG. 4 is a flowchart of the asynchronous retransmission of the file based on the intelligent uFi according to the embodiment of the present invention.
  • the sender disconnects and receives the disconnection. open.
  • the process includes:
  • Step S402 When the next device (same mobile phone) is connected to the uFi, send an instruction to the uFi to obtain a list of transmission records related to the device;
  • Step S404 determining whether the current user's Mac address exists in the sender or receiver of the transmission record, if it is the recipient, then go to step S406, if it is the sender, go to step S418;
  • Step S406 determining whether the status has been uploaded for download and determining whether the uFi file address exists, if it is determined that the uFi file address exists, then go to step S408, if it is determined that the uFi file address does not exist, go to step S414;
  • Step S408 the user selects whether to download the file, if the user chooses to download the file, then go to step S410, if the user chooses not to download the file, then go to step S412;
  • Step S410 Download the file, and after the completion, modify the record to be completed, delete the record and the storage file thereof;
  • Step S412 Send a data instruction, and delete the record and its storage file on the smart uFi;
  • Step S414 determining whether the record status is canceled uploading, if it is determined that the record record is canceled upload, then go to step S416;
  • Step S416 Send a data command, delete the record on the smart uFi and its stored uncompleted downloaded file;
  • Step S418 In the state is not completed to upload, the user selects whether to upload the file to the storage space of the smart uFi, if the user chooses to upload the file, then go to step S420, if the user does not choose to upload the file, then go to step S422;
  • Step S420 uploading a file, updating the server address of the list after the upload is completed, and updating the status to the uploaded to be downloaded, so that the receiver of the record completes the asynchronous transmission of the file;
  • Step S422 Sending a data command, and modifying the status on the smart uFi to the record status is canceled.
  • a file is transmitted based on a WI-FI terminal (for example, smart uFi)
  • a WI-FI terminal for example, smart uFi
  • the sender or the receiver is disconnected.
  • the following processing manner may be adopted: when the sender is abnormally disconnected
  • the receiver may choose to request the next time the sender connects to the WI-FI terminal to upload the unsent file to the storage space of the WI-FI terminal; similarly, when the receiver is abnormally disconnected, the sender sends The party can select to send the unfinished file to the storage space of the WI-FI terminal, so that the receiver can complete the download of the file the next time the receiver connects to the WI-FI terminal.
  • the recipient When connecting to the WI-FI terminal as the sender next time, query the file that needs to be uploaded, and store the file to be transferred into the storage space of the smart WI-FI terminal; also as the receiving party next time to connect to the WI-FI At the time of the terminal, the status of the file that has not been downloaded is queried. If the required file has been temporarily stored in the storage space of the smart WI-FI terminal, the recipient can complete the download directly from the smart WI-FI terminal.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform.
  • hardware can also be used, but in many cases the former is a better implementation.
  • the technical solution of the present invention in essence or the contribution to the related art can be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM).
  • the instructions include a number of instructions for causing a terminal device (which may be a cell phone, computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention.
  • a file transmission device is also provided in this embodiment, and the device is used to implement the foregoing embodiments and preferred embodiments, and details are not described herein.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 5 is a structural block diagram of a file transfer apparatus according to an embodiment of the present invention. As shown in FIG. 5, the apparatus includes:
  • the storage module 52 is configured to store a file transmitted by the first terminal from the first terminal to the second terminal;
  • the determining module 54 is connected to the storage module 52, and configured to determine whether the second terminal supports file transmission;
  • the first sending module 56 is connected to the determining module 54 and configured to send the stored file to the second terminal if the determination result is yes.
  • FIG. 6 is a structural block diagram of a storage module 52 in a file transfer apparatus according to an embodiment of the present invention.
  • the storage module 52 includes: a first detecting unit 62, a first determining unit 64, and a downloading unit 66. Be explained.
  • the first detecting unit 62 is configured to detect that the second terminal is abnormally disconnected during the process of transmitting the file downloaded from the first terminal to the second terminal;
  • the first determining unit 64 is connected to the first detecting unit 62, and is configured to determine whether to continue downloading the undownloaded file to be downloaded from the first terminal;
  • the download unit 66 is connected to the first determining unit 64, and is configured to download the file to be downloaded from the first terminal for storage if the determination result is YES.
  • FIG. 7 is a block diagram of a preferred structure of a file transmission apparatus according to an embodiment of the present invention.
  • the apparatus includes, in addition to all the modules shown in FIG. 5, a second sending module 72, which is configured to be The second terminal sends a first indication message, where the first indication message is used to indicate that the status of the file transmitted by the first terminal to the second terminal is downloaded to be transmitted.
  • FIG. 8 is a block diagram of a preferred structure of a file transfer apparatus according to an embodiment of the present invention.
  • the apparatus includes: a third sending module 82, in addition to all the modules shown in FIG. 5 and FIG.
  • the second indication message is sent to the second terminal, where the second indication message is used to indicate that the status of the file transmitted by the first terminal to the second terminal is that the transmission is completed.
  • FIG. 9 is a block diagram of a preferred structure of a storage module 52 in a file transfer apparatus according to an embodiment of the present invention. As shown in FIG. 9, the storage module 52 includes, in addition to all the units shown in FIG.
  • the second detecting unit 92 is configured to detect that the first terminal is abnormally disconnected during the process of transmitting the file downloaded from the first terminal to the second terminal;
  • the second determining unit 94 is connected to the second detecting unit 92, and is configured to determine whether the file downloaded from the first terminal is complete;
  • the marking unit 96 is connected to the second determining unit 94, and is configured to mark a partial file downloaded from the first terminal when the determination result is negative, for subsequent detection of the first terminal supporting file transmission. Continue to download the remaining files from the first terminal.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are in any combination.
  • the forms are located in different processors.
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • the storage medium is further configured to store program code for performing the following steps: storing the file transmitted by the first terminal from the first terminal to the second terminal comprises:
  • the storage medium is further configured to store program code for performing the following steps: before sending the stored file to the second terminal, the method further includes:
  • the first indication message is sent to the second terminal, where the first indication message is used to indicate that the status of the file transmitted by the first terminal to the second terminal is downloaded to be transmitted.
  • the storage medium is further configured to store program code for performing the following steps: after the stored file is sent to the second terminal, the method further includes:
  • the second indication message is sent to the second terminal, where the second indication message is used to indicate that the status of the file transmitted by the first terminal to the second terminal is that the transmission is completed.
  • the storage medium is further configured to store program code for performing the following steps: storing the file transmitted by the first terminal from the first terminal to the second terminal comprises:
  • the partial file downloaded from the first terminal is marked for subsequent downloading of the remaining partial files from the first terminal when detecting that the first terminal supports file transmission.
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a mobile hard disk e.g., a hard disk
  • magnetic memory e.g., a hard disk
  • the processor performs: storing, according to the stored program code in the storage medium, a file that is transmitted from the first terminal of the first terminal to the second terminal; determining whether the second terminal supports file transmission; When the result of the determination is YES, the stored file is transmitted to the second terminal.
  • the processor is executed according to the stored program code in the storage medium: storing the file transmitted by the first terminal from the first terminal to the second terminal includes: downloading the file to be downloaded from the first terminal In the process of transmitting to the second terminal, detecting that the second terminal is abnormally disconnected; determining whether to continue downloading the undownloaded file to be downloaded from the first terminal; if the determination result is yes, downloading from the first terminal Download the file for storage.
  • the processor is configured to: according to the stored program code in the storage medium, before the sending the stored file to the second terminal, the method further includes: sending, by the second terminal, a first indication message, where The first indication message is used to indicate that the status of the file transmitted by the first terminal to the second terminal is downloaded to be transmitted.
  • the processor is configured to: according to the stored program code in the storage medium, after the sending the file to the second terminal, the method further includes: sending a second indication message to the second terminal, where The second indication message is used to indicate that the status of the file transmitted by the first terminal to the second terminal is that the transmission is completed.
  • the processor is executed according to the stored program code in the storage medium: storing the file transmitted by the first terminal from the first terminal to the second terminal includes: downloading the file to be downloaded from the first terminal In the process of transmitting to the second terminal, detecting that the first terminal is abnormally disconnected; determining whether the file downloaded from the first terminal is complete; and if the determination result is negative, marking a part of the file downloaded from the first terminal, And for continuing to download the remaining part of the file from the first terminal when detecting that the first terminal supports file transmission.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the file transmitted from the first terminal of the first terminal to the second terminal is stored; determining whether the second terminal supports file transmission; and if the determination result is yes, sending the stored file to the second file terminal. Since the file to be sent by the first terminal to the second terminal is stored, the second terminal can receive the file when it is capable of receiving the file, so even when the file is transmitted by the first terminal, the second terminal If it is not online, it will not affect the file transmission. Therefore, it can solve the problem that the file transmission cannot be performed when one of the sender and the receiver is not online when the file is transmitted based on the WI-FI terminal in the related art.

Landscapes

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

Abstract

Provided in the embodiments of the present invention are a file transmission method and apparatus, the method comprising: storing a file from a first terminal which is transmitted by the first terminal to a second terminal; determining whether the second terminal supports file transmission; and sending a stored file to the second terminal when the determined result is yes. The embodiments of the present invention may resolve the problem in related technology wherein file transmission is impossible if one of either a sender or a receiver is not online when a file is transmitted by means of a Wi-Fi terminal.

Description

文件传输方法及装置File transmission method and device 技术领域Technical field
本发明实施例涉及通信领域,具体而言,涉及一种文件传输方法及装置。Embodiments of the present invention relate to the field of communications, and in particular, to a file transmission method and apparatus.
背景技术Background technique
目前,基于WI-FI终端(例如,智能uFi,路由器)进行文件传输的时候,需要发送方和接收方均连接到WI-FI终端上,当其中一方不在线后,则无法进行文件传输,需要等待下次同样的两个用户同时在线时,才能重新传输用户传输的文件,这样导致用户体验度大大降低。At present, when a file is transmitted based on a WI-FI terminal (for example, a smart uFi or a router), both the sender and the receiver need to be connected to the WI-FI terminal. When one of the parties is not online, the file transfer cannot be performed. Waiting for the next two users to be online at the same time, the files transmitted by the user can be retransmitted, which results in greatly reduced user experience.
因此,相关技术中基于WI-FI终端进行文件传输时,发送方和接收方中一方不在线则无法进行文件传输。Therefore, in the related art, when file transmission is performed based on the WI-FI terminal, file transmission cannot be performed when one of the sender and the receiver is not online.
发明内容Summary of the invention
本发明实施例提供了一种文件传输方法及装置,以至少解决相关技术中基于WI-FI终端进行文件传输时,发送方和接收方中一方不在线则无法进行文件传输的问题。The embodiment of the invention provides a file transmission method and device, so as to solve at least the problem that the file transmission cannot be performed when one of the sender and the receiver is not online when the file is transmitted by the WI-FI terminal in the related art.
根据本发明的一个实施例,提供了一种文件传输方法,包括:存储来自第一终端的所述第一终端传输给第二终端的文件;判断所述第二终端是否支持文件传输;在判断结果为是的情况下,将存储的所述文件发送给所述第二终端。According to an embodiment of the present invention, a file transmission method is provided, including: storing a file transmitted by the first terminal from a first terminal to a second terminal; determining whether the second terminal supports file transmission; If the result is YES, the stored file is sent to the second terminal.
可选地,存储来自所述第一终端的所述第一终端传输给所述第二终端的所述文件包括:在将从所述第一终端下载的文件向所述第二终端传输的过程中,检测到所述第二终端异常断开;判断是否继续从所述第一终端下载未下载完的待下载文件;在判断结果为是的情况下,将从所述第一终端下载所述待下载文件进行存储。Optionally, storing the file that is sent by the first terminal from the first terminal to the second terminal includes: transmitting a file downloaded from the first terminal to the second terminal Detecting that the second terminal is abnormally disconnected; determining whether to continue downloading the undownloaded file to be downloaded from the first terminal; if the determination result is yes, downloading the The file to be downloaded is stored.
可选地,在将存储的所述文件发送给所述第二终端之前,还包括:向 所述第二终端发送第一指示消息,其中,所述第一指示消息用于指示所述第一终端传输给所述第二终端的所述文件的状态为已下载待传输。Optionally, before sending the stored file to the second terminal, the method further includes: The second terminal sends a first indication message, where the first indication message is used to indicate that the status of the file that is transmitted by the first terminal to the second terminal is downloaded to be transmitted.
可选地,在将存储的所述文件发送给所述第二终端之后,还包括:向所述第二终端发送第二指示消息,其中,所述第二指示消息用于指示所述第一终端传输给所述第二终端的所述文件的状态为已传输完成。Optionally, after the storing the file to the second terminal, the method further includes: sending a second indication message to the second terminal, where the second indication message is used to indicate the first The state of the file transmitted by the terminal to the second terminal is that the transmission is completed.
可选地,存储来自所述第一终端的所述第一终端传输给所述第二终端的所述文件包括:在将从所述第一终端下载的文件向所述第二终端传输的过程中,检测到所述第一终端异常断开;判断从所述第一终端下载的所述文件是否完整;在判断结果为否的情况下,对从所述第一终端下载的部分文件进行标记,用于后续在检测到所述第一终端支持文件传输时,继续从所述第一终端下载剩余部分文件。Optionally, storing the file that is sent by the first terminal from the first terminal to the second terminal includes: transmitting a file downloaded from the first terminal to the second terminal Detecting that the first terminal is abnormally disconnected; determining whether the file downloaded from the first terminal is complete; and if the determination result is no, marking a part of the file downloaded from the first terminal And for continuing to download the remaining part of the file from the first terminal when detecting that the first terminal supports file transmission.
根据本发明的另一个实施例,提供了一种文件传输装置,包括:存储模块,设置为存储来自第一终端的所述第一终端传输给第二终端的文件;判断模块,设置为判断所述第二终端是否支持文件传输;第一发送模块,设置为在判断结果为是的情况下,将存储的所述文件发送给所述第二终端。According to another embodiment of the present invention, a file transmission apparatus is provided, including: a storage module configured to store a file transmitted by the first terminal from a first terminal to a second terminal; and a determination module configured to determine Whether the second terminal supports file transmission; the first sending module is configured to send the stored file to the second terminal if the determination result is yes.
可选地,所述存储模块包括:第一检测单元,设置为在将从所述第一终端下载的文件向所述第二终端传输的过程中,检测到所述第二终端异常断开;第一判断单元,设置为判断是否继续从所述第一终端下载未下载完的待下载文件;下载单元,设置为在判断结果为是的情况下,将从所述第一终端下载所述待下载文件进行存储。Optionally, the storage module includes: a first detecting unit, configured to detect that the second terminal is abnormally disconnected during a process of transmitting a file downloaded from the first terminal to the second terminal; The first determining unit is configured to determine whether to continue downloading the undownloaded file to be downloaded from the first terminal, and the downloading unit is configured to download the to-be-suppressed from the first terminal if the determination result is yes Download the file for storage.
可选地,还包括:第二发送模块,设置为向所述第二终端发送第一指示消息,其中,所述第一指示消息用于指示所述第一终端传输给所述第二终端的所述文件的状态为已下载待传输。Optionally, the method further includes: a second sending module, configured to send a first indication message to the second terminal, where the first indication message is used to indicate that the first terminal transmits to the second terminal The status of the file is downloaded to be transmitted.
可选地,还包括:第三发送模块,设置为向所述第二终端发送第二指示消息,其中,所述第二指示消息用于指示所述第一终端传输给所述第二终端的所述文件的状态为已传输完成。Optionally, the method further includes: a third sending module, configured to send a second indication message to the second terminal, where the second indication message is used to indicate that the first terminal transmits to the second terminal The status of the file is that the transfer has been completed.
可选地,所述存储模块包括:第二检测单元,设置为在将从所述第一 终端下载的文件向所述第二终端传输的过程中,检测到所述第一终端异常断开;第二判断单元,设置为判断从所述第一终端下载的所述文件是否完整;标记单元,设置为在判断结果为否的情况下,对从所述第一终端下载的部分文件进行标记,用于后续在检测到所述第一终端支持文件传输时,继续从所述第一终端下载剩余部分文件。Optionally, the storage module includes: a second detecting unit, configured to be in the first During the process of transmitting the file downloaded by the terminal to the second terminal, detecting that the first terminal is abnormally disconnected; the second determining unit is configured to determine whether the file downloaded from the first terminal is complete; And setting, in the case that the determination result is no, marking a part of the file downloaded from the first terminal, and subsequently continuing to download from the first terminal when detecting that the first terminal supports file transmission The rest of the file.
根据本发明的又一个实施例,还提供了一种存储介质。该存储介质设置为存储用于执行以下步骤的程序代码:存储来自第一终端的所述第一终端传输给第二终端的文件;判断所述第二终端是否支持文件传输;在判断结果为是的情况下,将存储的所述文件发送给所述第二终端。According to still another embodiment of the present invention, a storage medium is also provided. The storage medium is configured to store program code for performing the steps of: storing a file transmitted by the first terminal from the first terminal to the second terminal; determining whether the second terminal supports file transmission; In case, the stored file is sent to the second terminal.
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:存储来自所述第一终端的所述第一终端传输给所述第二终端的所述文件包括:在将从所述第一终端下载的文件向所述第二终端传输的过程中,检测到所述第二终端异常断开;判断是否继续从所述第一终端下载未下载完的待下载文件;在判断结果为是的情况下,将从所述第一终端下载所述待下载文件进行存储。Optionally, the storage medium is further configured to store program code for performing the step of: storing the file transmitted by the first terminal from the first terminal to the second terminal comprises: During the process of transmitting the file downloaded by the first terminal to the second terminal, detecting that the second terminal is abnormally disconnected; determining whether to continue downloading the undownloaded file to be downloaded from the first terminal; If yes, the file to be downloaded is downloaded from the first terminal for storage.
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:在将存储的所述文件发送给所述第二终端之前,还包括:向所述第二终端发送第一指示消息,其中,所述第一指示消息用于指示所述第一终端传输给所述第二终端的所述文件的状态为已下载待传输。Optionally, the storage medium is further configured to store program code for performing the following steps: before sending the stored file to the second terminal, further comprising: sending a first indication message to the second terminal, The first indication message is used to indicate that the status of the file that is transmitted by the first terminal to the second terminal is downloaded to be transmitted.
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:在将存储的所述文件发送给所述第二终端之后,还包括:向所述第二终端发送第二指示消息,其中,所述第二指示消息用于指示所述第一终端传输给所述第二终端的所述文件的状态为已传输完成。Optionally, the storage medium is further configured to store program code for performing the following steps: after transmitting the stored file to the second terminal, further comprising: sending a second indication message to the second terminal, The second indication message is used to indicate that the status of the file that is transmitted by the first terminal to the second terminal is that the transmission is completed.
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:存储来自所述第一终端的所述第一终端传输给所述第二终端的所述文件包括:在将从所述第一终端下载的文件向所述第二终端传输的过程中,检测到所述第一终端异常断开;判断从所述第一终端下载的所述文件是否完整;在 判断结果为否的情况下,对从所述第一终端下载的部分文件进行标记,用于后续在检测到所述第一终端支持文件传输时,继续从所述第一终端下载剩余部分文件。Optionally, the storage medium is further configured to store program code for performing the step of: storing the file transmitted by the first terminal from the first terminal to the second terminal comprises: During the process of transmitting the file downloaded by the first terminal to the second terminal, detecting that the first terminal is abnormally disconnected; determining whether the file downloaded from the first terminal is complete; If the determination result is no, the partial file downloaded from the first terminal is marked for subsequent downloading of the remaining partial files from the first terminal when detecting that the first terminal supports file transmission.
通过本发明实施例,存储来自第一终端的第一终端传输给第二终端的文件;判断第二终端是否支持文件传输;在判断结果为是的情况下,将存储的文件发送给第二终端。由于将第一终端将要发送给第二终端的文件进行了存储,使得第二终端可以在有能力接收该文件的时候再接收该文件,因此,即使在第一终端传输文件时,第二终端并不在线,也不会影响文件的传输,因此,可以解决相关技术中基于WI-FI终端进行文件传输时,发送方和接收方中一方不在线则无法进行文件传输的问题。According to the embodiment of the present invention, the file transmitted from the first terminal of the first terminal to the second terminal is stored; whether the second terminal supports the file transmission; and if the determination result is yes, the stored file is sent to the second terminal. . Since the file to be sent by the first terminal to the second terminal is stored, the second terminal can receive the file when it is capable of receiving the file, so even when the file is transmitted by the first terminal, the second terminal If it is not online, it will not affect the file transmission. Therefore, it can solve the problem that the file transmission cannot be performed when one of the sender and the receiver is not online when the file is transmitted based on the WI-FI terminal in the related art.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是本发明实施例的一种文件传输方法的终端的硬件结构框图;1 is a block diagram showing the hardware structure of a terminal of a file transmission method according to an embodiment of the present invention;
图2是根据本发明实施例的文件传输方法的流程图;2 is a flowchart of a file transfer method according to an embodiment of the present invention;
图3是根据本发明实施例的基于智能uFi的文件传输方法的流程图;3 is a flowchart of a method for transmitting a file based on an intelligent uFi according to an embodiment of the present invention;
图4是根据本发明实施例的基于智能uFi的文件异步续传的流程图;4 is a flowchart of an asynchronous uFi-based file asynchronous resume according to an embodiment of the present invention;
图5是根据本发明实施例的文件传输装置的结构框图;FIG. 5 is a structural block diagram of a file transfer apparatus according to an embodiment of the present invention; FIG.
图6是根据本发明实施例的文件传输装置中存储模块52的结构框图;FIG. 6 is a structural block diagram of a storage module 52 in a file transfer apparatus according to an embodiment of the present invention;
图7是根据本发明实施例的文件传输装置的优选结构框图一;7 is a block diagram 1 of a preferred structure of a file transfer apparatus according to an embodiment of the present invention;
图8是根据本发明实施例的文件传输装置的优选结构框图二;8 is a block diagram 2 of a preferred structure of a file transfer apparatus according to an embodiment of the present invention;
图9是根据本发明实施例的文件传输装置中存储模块52的优选结构框图。FIG. 9 is a block diagram showing a preferred configuration of a memory module 52 in a file transfer apparatus according to an embodiment of the present invention.
具体实施方式 detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
实施例1Example 1
本申请实施例1所提供的方法实施例可以在终端、计算机终端或者类似的运算装置中执行。以运行在终端上为例,图1是本发明实施例的一种文件传输方法的终端的硬件结构框图。如图1所示,终端10可以包括一个或多个(图中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)、用于存储数据的存储器104、以及用于通信功能的传输装置106。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述电子装置的结构造成限定。例如,终端10还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。The method embodiment provided by Embodiment 1 of the present application can be executed in a terminal, a computer terminal or the like. Taking the operation on the terminal as an example, FIG. 1 is a block diagram showing the hardware structure of a terminal of a file transmission method according to an embodiment of the present invention. As shown in FIG. 1, terminal 10 may include one or more (only one shown) processor 102 (processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), A memory 104 for storing data, and a transmission device 106 for communication functions. It will be understood by those skilled in the art that the structure shown in FIG. 1 is merely illustrative and does not limit the structure of the above electronic device. For example, terminal 10 may also include more or fewer components than those shown in FIG. 1, or have a different configuration than that shown in FIG.
存储器104可设置为存储应用软件的软件程序以及模块,如本发明实施例中的文件传输方法对应的程序指令/模块,处理器102通过运行存储在存储器104内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至终端10。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 can be configured as a software program and a module for storing application software, such as program instructions/modules corresponding to the file transfer method in the embodiment of the present invention, and the processor 102 executes each by executing a software program and a module stored in the memory 104. A functional application and data processing, that is, the above method is implemented. Memory 104 may include high speed random access memory, and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, memory 104 may further include memory remotely located relative to processor 102, which may be connected to terminal 10 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
传输装置106设置为经由一个网络接收或者发送数据。上述的网络具体实例可包括移动终端10的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例 中,传输装置106可以为射频(Radio Frequency,RF)模块,其设置为通过无线方式与互联网进行通讯。Transmission device 106 is arranged to receive or transmit data via a network. The above-described network specific example may include a wireless network provided by a communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet. In an instance The transmission device 106 can be a radio frequency (RF) module configured to communicate with the Internet wirelessly.
在本实施例中提供了一种运行于上述终端的文件传输方法,图2是根据本发明实施例的文件传输方法的流程图,如图2所示,该流程包括如下步骤:In this embodiment, a file transmission method running on the terminal is provided. FIG. 2 is a flowchart of a file transmission method according to an embodiment of the present invention. As shown in FIG. 2, the process includes the following steps:
步骤S202,存储来自第一终端的第一终端传输给第二终端的文件;Step S202, storing a file transmitted by the first terminal from the first terminal to the second terminal;
步骤S204,判断第二终端是否支持文件传输;Step S204, determining whether the second terminal supports file transmission;
步骤S206,在判断结果为是的情况下,将存储的文件发送给第二终端。Step S206, if the determination result is yes, the stored file is sent to the second terminal.
通过上述步骤,将第一终端将要发送给第二终端的文件进行了存储,使得第二终端可以在有能力接收该文件的时候再接收该文件,因此,即使在第一终端传输文件时,第二终端并不在线,也不会影响文件的传输,因此,可以解决相关技术中基于WI-FI终端进行文件传输时,发送方和接收方中一方不在线则无法进行文件传输的问题。Through the above steps, the file that the first terminal sends to the second terminal is stored, so that the second terminal can receive the file when it is capable of receiving the file, so even when the file is transmitted by the first terminal, The second terminal is not online and does not affect the file transmission. Therefore, it can solve the problem that the file transmission cannot be performed when one of the sender and the receiver is not online when the file is transmitted based on the WI-FI terminal in the related art.
可选地,存储来自第一终端的第一终端传输给第二终端的文件包括:在将从第一终端下载的文件向第二终端传输的过程中,检测到第二终端异常断开;判断是否继续从第一终端下载未下载完的待下载文件;在判断结果为是的情况下,将从第一终端下载待下载文件进行存储。通过上述步骤,使得在文件传输的过程中,第二终端异常断开,第一终端不会因为第二终端的断开而停止传输文件,仍然可以继续传输文件并存储,以便第二终端正常上线时可以获取该存储的文件,因此,可以解决文件传输过程中,一方异常断开,另一方无法继续传输文件的问题。Optionally, storing the file sent by the first terminal from the first terminal to the second terminal includes: detecting that the second terminal is abnormally disconnected during the process of transmitting the file downloaded from the first terminal to the second terminal; Whether to continue downloading the undownloaded file to be downloaded from the first terminal; if the determination result is yes, the file to be downloaded is downloaded from the first terminal for storage. Through the above steps, in the process of file transmission, the second terminal is abnormally disconnected, the first terminal does not stop transmitting files because the second terminal is disconnected, and the file can still be transferred and stored, so that the second terminal is normally online. The stored file can be obtained, so that the problem that one party is abnormally disconnected and the other party cannot continue to transfer files during the file transfer process can be solved.
可选地,在将存储的文件发送给第二终端之前,还包括:向第二终端发送第一指示消息,其中,第一指示消息用于指示第一终端传输给第二终端的文件的状态为已下载待传输。通过上述步骤,使得第二终端在正常连接后,可以快速的根据存储的文件的状态判断出是否可以获取该存储的文件。 Optionally, before the sending the file to the second terminal, the method further includes: sending a first indication message to the second terminal, where the first indication message is used to indicate a status of the file that is transmitted by the first terminal to the second terminal It has been downloaded for transmission. Through the above steps, after the second terminal is normally connected, the second terminal can quickly determine whether the stored file can be obtained according to the state of the stored file.
可选地,在将存储的文件发送给第二终端之后,还包括:向第二终端发送第二指示消息,其中,第二指示消息用于指示第一终端传输给第二终端的文件的状态为已传输完成。通过上述步骤,可以根据该状态确定文件已传输完,在后续处理中可以优先删除。Optionally, after the sending the file to the second terminal, the method further includes: sending a second indication message to the second terminal, where the second indication message is used to indicate a status of the file that is transmitted by the first terminal to the second terminal Completed for transfer. Through the above steps, it can be determined according to the state that the file has been transmitted, and can be deleted preferentially in subsequent processing.
可选地,存储来自第一终端的第一终端传输给第二终端的文件包括:在将从第一终端下载的文件向第二终端传输的过程中,检测到第一终端异常断开;判断从第一终端下载的文件是否完整;在判断结果为否的情况下,对从第一终端下载的部分文件进行标记,用于后续在检测到第一终端支持文件传输时,继续从第一终端下载剩余部分文件。通过上述步骤,使得在文件传输的过程中第一终端异常断开后,在下次正常连接时,仍然可以根据需要继续传输未传输完成的文件,而此时第二终端是否在线不会影响该文件的传输,因此,可以解决文件传输过程中,一方异常断开,另一方无法继续传输文件的问题。Optionally, storing the file that is transmitted by the first terminal from the first terminal to the second terminal includes: detecting that the first terminal is abnormally disconnected during the process of transmitting the file downloaded from the first terminal to the second terminal; Whether the file downloaded from the first terminal is complete; if the result of the determination is no, the partial file downloaded from the first terminal is marked for subsequent use to continue from the first terminal when detecting that the first terminal supports file transmission Download the rest of the file. Through the above steps, after the first terminal is abnormally disconnected in the process of file transmission, the file that has not been transferred can still be transmitted as needed during the next normal connection, and the second terminal does not affect the file at this time. The transmission, therefore, can solve the problem that during the file transfer process, one party is abnormally disconnected and the other party cannot continue to transfer files.
需要说明的是,上述实施例应用于不同智能设备基于WI-FI终端(例如,智能uFi)进行文件传输的场景,借助WI-FI终端的存储空间,可以实现异步的文件传输过程,及双方用户不同时在线的时候,通过WI-FI终端完成文件的传输。It should be noted that the foregoing embodiment is applied to a scenario in which a different smart device performs file transmission based on a WI-FI terminal (for example, an intelligent uFi). With the storage space of the WI-FI terminal, an asynchronous file transmission process and both users can be implemented. When not online at the same time, the file transfer is completed through the WI-FI terminal.
下面以不同手机基于智能uFi进行文件传输为例对上述实施例进行说明。为了方便理解,首先对即将用到的专业术语进行说明。The above embodiment will be described below by taking the file transmission of different mobile phones based on intelligent uFi as an example. For the sake of understanding, first explain the terminology that will be used.
设备列表:当不同用户的手机通过WI-FI连接到uFi时,uFi本身会保存一份当前所连接的用户列表名单,通过该文件列表可以获取到连接到该智能uFi的手机设备,包括设备的mac地址,以及当前所该设备所分配的IP地址。Device list: When different users' mobile phones are connected to uFi through WI-FI, uFi itself will save a list of currently connected user lists, through which the mobile phone devices connected to the smart uFi can be obtained, including the devices. The mac address and the IP address assigned to the device.
文件传输列表:该表存储在智能uFi内,由一条条记录组成的,一条记录包含字段(记录id、发送方mac地址、发送方文件路径、接收方mac地址、接收方存储地址,uFi文件地址、传输状态),其中传输状态包含(传输中,已完成(同上述已传输完成),未完成待上传,已上传待下载(同 上述已下载待传输),已取消上传)File transfer list: This table is stored in the smart uFi and consists of one record. One record contains fields (record id, sender mac address, sender file path, receiver mac address, receiver storage address, uFi file address). , transmission status), wherein the transmission status is included (in the transmission, completed (same as the above completed transmission), not completed to be uploaded, uploaded to be downloaded (the same The above has been downloaded to be transferred), the upload has been canceled)
传输记录端口:智能uFi作为整个系统的服务端,在uFi启动后开启socket监听端口,当用户进行文件传输的时候,首先建立socket连接到传输记录端口,用户客户端(例如,手机上的APP)可以获取到连接到该智能uFi的所有设备以及发送信息更新文件传输列表。Transmission record port: As the server of the whole system, the smart uFi opens the socket listening port after the uFi is started. When the user performs file transfer, the socket connection is first established to the transmission record port, and the user client (for example, the APP on the mobile phone). You can get a list of all devices connected to the smart uFi and send a message update file transfer.
客户端接受端口:手机连接到智能WI-FI时,开启文件传输功能后,自身打开socket监听端口,不同的客户端使用文件传输功能的时候,通过连接此客户端ip的该端口,完成文件传输及指令交互。Client accepts the port: When the mobile phone is connected to the smart WI-FI, after the file transfer function is enabled, the socket listening port is opened by itself. When different clients use the file transfer function, the file transfer is completed by connecting the port of the client ip. And instruction interaction.
下面基于上述专业术语对不同手机基于智能uFi进行文件传输的过程进行说明。The following describes the process of file transfer based on intelligent uFi for different mobile phones based on the above-mentioned technical terms.
手机连接到智能uFi后,进行初始化操作:第一步、通过客户端(例如手机上的APP)建立与智能uFi传输记录端口的连接,并发送请求设备列表指令,获取到目前在线的用户,获取其mac地址及其分配的ip地址,目的是获取当前可实时传输文件的用户列表;第二步、根据本机ip地址为对应的客户端建立客户端接受端口,以监听是否存在发送文件的请求,使得可以实时接受其他在线用户实时发送文件的请求;第三步、发送查询指令到智能uFi,查询涉及到本设备的异常状态记录,包括作为发送方需要发送文件到uFi存储空间情况,以及作为接收方未完成下载的情况,使得发送方或接收方异常断开情况下可以进行文件异步续传。After the mobile phone is connected to the smart uFi, the initialization operation is performed: the first step is to establish a connection with the intelligent uFi transmission record port through the client (for example, the APP on the mobile phone), and send a request device list instruction to obtain the current online user and obtain The mac address and its assigned IP address are used to obtain a list of users who can currently transfer files in real time. The second step is to establish a client accepting port for the corresponding client according to the local IP address to monitor whether there is a request to send a file. So that the online user can receive the request for sending the file in real time in the real time; the third step is to send the query command to the intelligent uFi, and the query relates to the abnormal state record of the device, including the situation that the sender needs to send the file to the uFi storage space, and If the receiver does not complete the download, the file can be resumed asynchronously if the sender or receiver is abnormally disconnected.
双方用户均在线的情况下的正常流程:当手机A启用发送文件给手机B时,手机A发送数据(发送方mac地址,发送文件路径,接收方mac地址,以及传输状态为待确认)到智能uFi,智能uFi通过文件传输端口接受到数据后,插入一条传输记录;当手机B收到接受文件请求时,如果手机B不同意接受,则发送消息给智能uFi,删除该条记录,此次传输结束;当手机B确定接受后,手机B发送数据(接受文件路径,接受状态为传输中)到智能uFi,智能uFi更新此条传输记录,如果正常传输完成,当文件传输结束时,发送命令到智能uFi把该条传输记录的状态该为已完成。 The normal process when both users are online: When mobile phone A enables sending files to mobile phone B, mobile phone A sends data (sender mac address, send file path, recipient mac address, and transmission status to be confirmed) to smart uFi, after the smart uFi receives the data through the file transfer port, inserts a transfer record; when the mobile phone B receives the request for accepting the file, if the mobile phone B does not agree to accept, the message is sent to the smart uFi, and the record is deleted, the transmission is deleted. End; when the mobile phone B determines to accept, the mobile phone B sends data (accepts the file path, accepts the status as transmission) to the smart uFi, and the smart uFi updates the transmission record. If the normal transmission is completed, when the file transmission ends, the command is sent to The smart uFi will record the status of the transmission record as completed.
手机A异常断开情况下的流程:如果中间手机A断开且文件还未传输完成,手机B无法接受到手机A文件时,此时如果手机B选择等下次手机A连接到该uFi时把未完成下载的文件上传到智能uFi存储空间时,则发送数据指令到智能uFi,把传输状态改为未完成待上传,这样的目的是为了下次发送方连接到该uFi后,可以把未完成的文件上到到智能uFi的存储空间,以便后续该接收方下载,否则发送指令到智能uFi删除此条传输记录,手机B并删除此次未完成下载的文件。The process of the abnormal disconnection of the mobile phone A: If the intermediate mobile phone A is disconnected and the file has not been transferred yet, the mobile phone B cannot accept the mobile phone A file, at this time, if the mobile phone B selects and waits for the next mobile phone A to connect to the uFi, When the unfinished file is uploaded to the smart uFi storage space, the data command is sent to the smart uFi, and the transfer status is changed to the uncompleted upload. The purpose is to make the unfinished after the next sender connects to the uFi. The file is sent to the storage space of the smart uFi, so that the recipient can download it later, otherwise the command is sent to the smart uFi to delete the transmission record, and the mobile phone B deletes the file that has not been downloaded.
手机B异常断开的情况的流程::如果中间手机B断开,手机A可以选择是否把未完成传输的文件上传到智能uFi存储空间,如果选择是,上传文件到uFi,当上传完成后,发送数据指令到智能uFi,并把状态改为已上传待下载,同样更新uFi文件地址为智能uFi中的地址,目的是为了接收方下次连接到该uFi时,可以从uFi的存储空间内完成下载未完成的文件。如果选择否,发送数据指令到智能uFi,并把此条记录的状态为已取消上传。The process of abnormally disconnecting the mobile phone B: If the intermediate mobile phone B is disconnected, the mobile phone A can select whether to upload the uncompleted transferred file to the smart uFi storage space, and if yes, upload the file to the uFi, when the upload is completed, Send the data command to the smart uFi, and change the status to the uploaded to be downloaded. Also update the uFi file address to the address in the smart uFi. The purpose is to complete the uFi storage space when the receiver connects to the uFi next time. Download unfinished files. If you select No, send a data command to the smart uFi, and the status of this record is canceled.
异常断开后文件异步续传的流程:当发送发A(手机A)或者接收方B(手机B)异常断开发生后,且当下次该设备连接到该智能uFi是,通过初始化第三步骤,读取该智能uFi的文件传输列表,分为两种情况:第一,如果该设备的mac地址在发送方且如果该状态为未完成待上传,如果该设备选择上传未完成情况,则需要根据传输列表的发送方地址读取文件并上传到智能uFi的存储空间内,上传完毕后,发送数据指令,更新uFi文件地址,并把传输状态更新为已上传待下载;如果该设备选择不上传文件,则发送数据指令,把此条记录的传输状态更新为已取消上传。第二,如果客户端mac地址在接收方,如果查询到该条记录状态为已上传待下载,则客户端根据存储的uFi文件地址,读取文件并完成下载,当下载完成后,发送数据指令到智能uFi,更新传输状态为已完成,uFi自身删除存储的文件;如果查询到该条记录为已取消上传,则该设备发送指令,uFi删除此条记录,并且删除自身上次未完成下载的文件。The process of asynchronously resuming the file after the abnormal disconnection: After the sending A (mobile phone A) or the receiving party B (mobile phone B) abnormal disconnection occurs, and the next time the device is connected to the smart uFi, the third step is initialized. The file transfer list of the smart uFi is read, and is divided into two cases: first, if the mac address of the device is on the sender and if the status is uncompleted to be uploaded, if the device selects that the upload is not completed, then Read the file according to the sender address of the transmission list and upload it to the storage space of the smart uFi. After the upload is completed, send the data command, update the uFi file address, and update the transmission status to uploaded for download; if the device chooses not to upload The file sends a data command to update the transmission status of this record to canceled upload. Second, if the client mac address is on the receiving side, if the status of the record is logged to be downloaded, the client reads the file according to the stored uFi file address and completes the download. When the download is completed, the data command is sent. To the smart uFi, the update transmission status is completed, uFi deletes the stored file itself; if the record is logged as canceled, the device sends an instruction, uFi deletes the record, and deletes the last time the download was not completed. file.
为了方便理解,下面以流程图的形式对上述实施例进行说明。图3是 根据本发明实施例的基于智能uFi的文件传输方法的流程图,如图3所示,该流程包括:连接到智能uFi的不同客户端,通过传输记录端口获取到当前的用户列表信息。For ease of understanding, the above embodiments will be described below in the form of a flowchart. Figure 3 is A flowchart of an intelligent uFi-based file transmission method according to an embodiment of the present invention, as shown in FIG. 3, the process includes: connecting to different clients of the smart uFi, and acquiring current user list information through the transmission record port.
步骤S302:发送方A(同上述手机A)请求发送文件给当前在线用户接收方B;Step S302: The sender A (same as the above mobile phone A) requests to send a file to the current online user receiver B;
步骤S304:把发送方A的mac地址,文件路径,接收方B(同上述手机B)的mac地址、传输状态(待确认)等数据发送给智能uFi文件传输端口,智能uFi接收到后产生一条新纪录;Step S304: Send the MAC address of the sender A, the file path, the MAC address of the receiver B (the same mobile phone B), and the transmission status (to be confirmed) to the intelligent uFi file transmission port, and the smart uFi receives a data. new record;
步骤S306:接受方B接受到发送方A的发送文件请求,进而选择是否要接受文件,如果接收方B不接受文件,则转到步骤S308,如果接收方B选择接受文件,则转到步骤S310;Step S306: The accepting party B accepts the sending file request of the sender A, and further selects whether to accept the file. If the receiving party B does not accept the file, the process goes to step S308, and if the receiving party B chooses to accept the file, the process goes to step S310. ;
步骤S308:接收方B发送删除指令到智能uFi,uFi删掉该条传输记录,此次文件传输结束;Step S308: The receiving party B sends a delete command to the smart uFi, and the uFi deletes the transmission record, and the file transmission ends;
步骤S310:接收方把接受路径给智能uFi,智能uFi收到数据后更新此条记录的接受地址,传输状态为传输中;Step S310: The receiving party sends the receiving path to the smart uFi, and the smart uFi updates the accepted address of the record after receiving the data, and the transmission state is in the transmission;
步骤S312:在传输过程中,是否存在发送方A退出的情况,即发送方A断开的情况,如果发生发送方A断开的情况,则转到步骤S314,如果没有发生发送方A断开的情况,则转到步骤S320;Step S312: In the transmission process, whether there is a case where the sender A exits, that is, the case where the sender A disconnects, if the sender A disconnects, the process goes to step S314, if the sender A disconnects If yes, go to step S320;
步骤S314:接受方B可以选择是否让发送方A发送文件到智能uFi的存储空间,如果接收方B选择是的情况下,则转到步骤S316,如果接收方B选择否的情况下,则转到步骤S318;Step S314: The accepting party B can select whether to let the sender A send the file to the storage space of the smart uFi, if the receiving party B selects yes, then go to step S316, if the receiving party B selects no, then turn Go to step S318;
步骤316:接收方B发送修改指令,智能uFi修改该条传输记录为未完成待上传,目的是为了下次发送方上线后,可以此条传输记录的状态为未完成待上传,进而选择把未完成的文件上传到智能uFi的存储空间,以便上传完成后以供该条记录的接收方完成文件的异步下载;Step 316: The receiving party B sends a modification command, and the smart uFi modifies the transmission record to be uncompleted for uploading. The purpose is that after the next sender goes online, the status of the transmission record can be uncompleted to be uploaded, and then the selection is not The completed file is uploaded to the storage space of the smart uFi, so that the uploading is completed for the recipient of the record to complete the asynchronous download of the file;
步骤S318:发送删除指令,智能uFi删除该条传输记录,接收方B删除本地已下载的未完成的文件; Step S318: Send a delete instruction, the smart uFi deletes the transmission record, and the receiver B deletes the locally downloaded unfinished file;
步骤S320:判断是否存在接收方B断开的情况,如果存在接受方B断开的情况,则转到步骤S322,如果不存在接受方B断开的情况,则转到步骤S328;Step S320: determining whether there is a disconnection of the receiver B, if there is a case where the receiver B is disconnected, then go to step S322, if there is no case where the receiver B is disconnected, then go to step S328;
步骤S322:发送方A选择是否上传到智能uFi存储空间,如果发送方A选择是的情况下,则转到步骤S324,如果发送方A选择否的情况下,则转到步骤S326;Step S322: The sender A selects whether to upload to the smart uFi storage space, if the sender A selects yes, then go to step S324, if the sender A chooses no, then go to step S326;
步骤S324:发送方A上传文件到智能uFi的存储空间,上传完成后更新该列表的uFi文件地址,并更新状态为已上传待下载,目的是为了下次接收方B可根据此条记录的状态已上传待下载,可以从此条记录的uFi文件地址,可以选择从uFi的存储空间内下载未完成的文件,完成文件异步的传输;Step S324: The sender A uploads the file to the storage space of the smart uFi. After the upload is completed, the uFi file address of the list is updated, and the update status is uploaded and to be downloaded, so that the next time the receiver B can record according to the status of the record. Uploaded to be downloaded, you can select the uFi file address from this record, you can choose to download the unfinished file from the uFi storage space, and complete the asynchronous transfer of the file;
步骤S326:发送数据指令,uFi更新该条传输记录未已取消上传;Step S326: Send a data command, and uFi updates the transmission record to cancel the upload;
步骤S328:发送完成后,修改传输状态为已完成。Step S328: After the sending is completed, the modified transmission state is completed.
下面针对异常断开后进行文件异步续传进行说明,图4是根据本发明实施例的基于智能uFi的文件异步续传的流程图,如图4所示,包括发送方断开和接收方断开。当下次发送方或接受方连接到智能uFi中,发送指令到uFi,获取该智能uFi的文件传输列表,该流程包括:The following is a description of the asynchronous retransmission of the file after the abnormal disconnection. FIG. 4 is a flowchart of the asynchronous retransmission of the file based on the intelligent uFi according to the embodiment of the present invention. As shown in FIG. 4, the sender disconnects and receives the disconnection. open. When the next sender or receiver connects to the smart uFi, send an instruction to uFi to obtain a file transfer list of the smart uFi, the process includes:
步骤S402:当下次设备(同上述手机)连接到uFi时,发送指令到uFi,获取该设备相关的传输记录列表;Step S402: When the next device (same mobile phone) is connected to the uFi, send an instruction to the uFi to obtain a list of transmission records related to the device;
步骤S404:判断当前用户Mac地址存在该条传输记录的发送方还是接收方,如果是接收方,则转到步骤S406,如果是发送方,则转到步骤S418;Step S404: determining whether the current user's Mac address exists in the sender or receiver of the transmission record, if it is the recipient, then go to step S406, if it is the sender, go to step S418;
步骤S406:判断状态是否已上传待下载且判断uFi文件地址是否存在,如果判断为uFi文件地址存在,则转到步骤S408,如果判断为uFi文件地址不存在,则转到步骤S414,;Step S406: determining whether the status has been uploaded for download and determining whether the uFi file address exists, if it is determined that the uFi file address exists, then go to step S408, if it is determined that the uFi file address does not exist, go to step S414;
步骤S408:用户选择是否要下载文件,如果用户选择下载文件,则转到步骤S410,如果用户选择不下载文件,则转到步骤S412; Step S408: the user selects whether to download the file, if the user chooses to download the file, then go to step S410, if the user chooses not to download the file, then go to step S412;
步骤S410:下载文件,完成后修改该条记录为已完成,删除该条记录及其存储文件;Step S410: Download the file, and after the completion, modify the record to be completed, delete the record and the storage file thereof;
步骤S412:发送数据指令,智能uFi上删除该条记录及其存储文件;Step S412: Send a data instruction, and delete the record and its storage file on the smart uFi;
步骤S414:判断该条记录状态是否为已取消上传,如果判断该条传输记录为已取消上传,则转到步骤S416;Step S414: determining whether the record status is canceled uploading, if it is determined that the record record is canceled upload, then go to step S416;
步骤S416:发送数据指令,智能uFi上删除此条记录以及自身的存储的未完成下载的文件;Step S416: Send a data command, delete the record on the smart uFi and its stored uncompleted downloaded file;
步骤S418:在状态为未完成待上传,用户选择是否上传文件到智能uFi的存储空间,如果用户选择上传文件,则转到步骤S420,如果用户不选择上传文件,则转到步骤S422;Step S418: In the state is not completed to upload, the user selects whether to upload the file to the storage space of the smart uFi, if the user chooses to upload the file, then go to step S420, if the user does not choose to upload the file, then go to step S422;
步骤S420:上传文件,上传完成后更新该列表的服务器地址,并更新状态为已上传待下载,以便该条记录的接收方完成文件异步传输;Step S420: uploading a file, updating the server address of the list after the upload is completed, and updating the status to the uploaded to be downloaded, so that the receiver of the record completes the asynchronous transmission of the file;
步骤S422:发送数据指令,智能uFi上修改为该条记录状态为已取消上传。Step S422: Sending a data command, and modifying the status on the smart uFi to the record status is canceled.
结合上述实施例,基于WI-FI终端(例如,智能uFi)的文件传输的时候,存在发送方或接收方断开的情况,出现上述情况时,可以采用如下处理方式:当发送方异常断开的情况下,接收方可以选择请求下次发送方连接到WI-FI终端的时候上传未完成发送的文件到WI-FI终端的存储空间;同样,当接收方异常断开的情况发生时,发送方可以选择的发送未完成发送的文件给WI-FI终端的存储空间,以便接收方下次连接到WI-FI终端时,完成文件的下载。当下次作为发送方连接到该WI-FI终端时,查询需要上传的文件,并把要传输的文件存储到智能WI-FI终端的存储空间内;同样作为接收方下次连接到该WI-FI终端的时候,查询未完成下载的文件状态,如果所需的文件已被发送方暂存在智能WI-FI终端的存储空间时,那么接收方可以从智能WI-FI终端上直接完成下载。In combination with the foregoing embodiment, when a file is transmitted based on a WI-FI terminal (for example, smart uFi), there is a case where the sender or the receiver is disconnected. When the above situation occurs, the following processing manner may be adopted: when the sender is abnormally disconnected In the case of the receiver, the receiver may choose to request the next time the sender connects to the WI-FI terminal to upload the unsent file to the storage space of the WI-FI terminal; similarly, when the receiver is abnormally disconnected, the sender sends The party can select to send the unfinished file to the storage space of the WI-FI terminal, so that the receiver can complete the download of the file the next time the receiver connects to the WI-FI terminal. When connecting to the WI-FI terminal as the sender next time, query the file that needs to be uploaded, and store the file to be transferred into the storage space of the smart WI-FI terminal; also as the receiving party next time to connect to the WI-FI At the time of the terminal, the status of the file that has not been downloaded is queried. If the required file has been temporarily stored in the storage space of the smart WI-FI terminal, the recipient can complete the download directly from the smart WI-FI terminal.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当 然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform. However, hardware can also be used, but in many cases the former is a better implementation. Based on such understanding, the technical solution of the present invention in essence or the contribution to the related art can be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM). The instructions include a number of instructions for causing a terminal device (which may be a cell phone, computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention.
实施例2Example 2
在本实施例中还提供了一种文件传输装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。A file transmission device is also provided in this embodiment, and the device is used to implement the foregoing embodiments and preferred embodiments, and details are not described herein. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图5是根据本发明实施例的文件传输装置的结构框图,如图5所示,该装置包括:FIG. 5 is a structural block diagram of a file transfer apparatus according to an embodiment of the present invention. As shown in FIG. 5, the apparatus includes:
存储模块52,设置为存储来自第一终端的第一终端传输给第二终端的文件;The storage module 52 is configured to store a file transmitted by the first terminal from the first terminal to the second terminal;
判断模块54,连接至上述存储模块52,设置为判断第二终端是否支持文件传输;The determining module 54 is connected to the storage module 52, and configured to determine whether the second terminal supports file transmission;
第一发送模块56,连接至上述判断模块54,设置为在判断结果为是的情况下,将存储的文件发送给第二终端。The first sending module 56 is connected to the determining module 54 and configured to send the stored file to the second terminal if the determination result is yes.
图6是根据本发明实施例的文件传输装置中存储模块52的结构框图,如图6所示,该存储模块52包括:第一检测单元62,第一判断单元64和下载单元66,下面分别进行说明。FIG. 6 is a structural block diagram of a storage module 52 in a file transfer apparatus according to an embodiment of the present invention. As shown in FIG. 6, the storage module 52 includes: a first detecting unit 62, a first determining unit 64, and a downloading unit 66. Be explained.
第一检测单元62,设置为在将从第一终端下载的文件向第二终端传输的过程中,检测到第二终端异常断开;The first detecting unit 62 is configured to detect that the second terminal is abnormally disconnected during the process of transmitting the file downloaded from the first terminal to the second terminal;
第一判断单元64,连接至上述第一检测单元62,设置为判断是否继续从第一终端下载未下载完的待下载文件; The first determining unit 64 is connected to the first detecting unit 62, and is configured to determine whether to continue downloading the undownloaded file to be downloaded from the first terminal;
下载单元66,连接至第一判断单元64,设置为在判断结果为是的情况下,将从第一终端下载待下载文件进行存储。The download unit 66 is connected to the first determining unit 64, and is configured to download the file to be downloaded from the first terminal for storage if the determination result is YES.
图7是根据本发明实施例的文件传输装置的优选结构框图一,如图7所示,该装置除包括图5所示的所有模块外,还包括:第二发送模块72,设置为向第二终端发送第一指示消息,其中,第一指示消息用于指示第一终端传输给第二终端的文件的状态为已下载待传输。FIG. 7 is a block diagram of a preferred structure of a file transmission apparatus according to an embodiment of the present invention. As shown in FIG. 7, the apparatus includes, in addition to all the modules shown in FIG. 5, a second sending module 72, which is configured to be The second terminal sends a first indication message, where the first indication message is used to indicate that the status of the file transmitted by the first terminal to the second terminal is downloaded to be transmitted.
图8是根据本发明实施例的文件传输装置的优选结构框图二,如图8所示,该装置除包括图5和图7所示的所有模块外,还包括:第三发送模块82,设置为向第二终端发送第二指示消息,其中,第二指示消息用于指示第一终端传输给第二终端的文件的状态为已传输完成。FIG. 8 is a block diagram of a preferred structure of a file transfer apparatus according to an embodiment of the present invention. As shown in FIG. 8, the apparatus includes: a third sending module 82, in addition to all the modules shown in FIG. 5 and FIG. The second indication message is sent to the second terminal, where the second indication message is used to indicate that the status of the file transmitted by the first terminal to the second terminal is that the transmission is completed.
图9是根据本发明实施例的文件传输装置中存储模块52的优选结构框图,如图9所示,该存储模块52除包括图6所示的所有单元外,还包括:FIG. 9 is a block diagram of a preferred structure of a storage module 52 in a file transfer apparatus according to an embodiment of the present invention. As shown in FIG. 9, the storage module 52 includes, in addition to all the units shown in FIG.
第二检测单元92,设置为在将从第一终端下载的文件向第二终端传输的过程中,检测到第一终端异常断开;The second detecting unit 92 is configured to detect that the first terminal is abnormally disconnected during the process of transmitting the file downloaded from the first terminal to the second terminal;
第二判断单元94,连接至上述第二检测单元92,设置为判断从第一终端下载的文件是否完整;The second determining unit 94 is connected to the second detecting unit 92, and is configured to determine whether the file downloaded from the first terminal is complete;
标记单元96,连接至上述第二判断单元94,设置为在判断结果为否的情况下,对从第一终端下载的部分文件进行标记,用于后续在检测到第一终端支持文件传输时,继续从第一终端下载剩余部分文件。The marking unit 96 is connected to the second determining unit 94, and is configured to mark a partial file downloaded from the first terminal when the determination result is negative, for subsequent detection of the first terminal supporting file transmission. Continue to download the remaining files from the first terminal.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are in any combination. The forms are located in different processors.
实施例3Example 3
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码: Embodiments of the present invention also provide a storage medium. Optionally, in the embodiment, the foregoing storage medium may be configured to store program code for performing the following steps:
S1,存储来自第一终端的第一终端传输给第二终端的文件;S1. Store a file transmitted by the first terminal from the first terminal to the second terminal.
S2,判断第二终端是否支持文件传输;S2, determining whether the second terminal supports file transmission;
S3,在判断结果为是的情况下,将存储的文件发送给第二终端。S3. If the determination result is yes, the stored file is sent to the second terminal.
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:存储来自第一终端的第一终端传输给第二终端的文件包括:Optionally, the storage medium is further configured to store program code for performing the following steps: storing the file transmitted by the first terminal from the first terminal to the second terminal comprises:
S1,在将从第一终端下载的文件向第二终端传输的过程中,检测到第二终端异常断开;S1. In the process of transmitting the file downloaded from the first terminal to the second terminal, detecting that the second terminal is abnormally disconnected;
S2,判断是否继续从第一终端下载未下载完的待下载文件;S2, determining whether to continue downloading the undownloaded file to be downloaded from the first terminal;
S3,在判断结果为是的情况下,将从第一终端下载待下载文件进行存储。S3. If the determination result is yes, the file to be downloaded is downloaded from the first terminal and stored.
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:在将存储的文件发送给第二终端之前,还包括:Optionally, the storage medium is further configured to store program code for performing the following steps: before sending the stored file to the second terminal, the method further includes:
S1,向第二终端发送第一指示消息,其中,第一指示消息用于指示第一终端传输给第二终端的文件的状态为已下载待传输。S1. The first indication message is sent to the second terminal, where the first indication message is used to indicate that the status of the file transmitted by the first terminal to the second terminal is downloaded to be transmitted.
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:在将存储的文件发送给第二终端之后,还包括:Optionally, the storage medium is further configured to store program code for performing the following steps: after the stored file is sent to the second terminal, the method further includes:
S1,向第二终端发送第二指示消息,其中,第二指示消息用于指示第一终端传输给第二终端的文件的状态为已传输完成。S1. The second indication message is sent to the second terminal, where the second indication message is used to indicate that the status of the file transmitted by the first terminal to the second terminal is that the transmission is completed.
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:存储来自第一终端的第一终端传输给第二终端的文件包括:Optionally, the storage medium is further configured to store program code for performing the following steps: storing the file transmitted by the first terminal from the first terminal to the second terminal comprises:
S1,在将从第一终端下载的文件向第二终端传输的过程中,检测到第一终端异常断开;S1. In the process of transmitting the file downloaded from the first terminal to the second terminal, detecting that the first terminal is abnormally disconnected;
S2,判断从第一终端下载的文件是否完整;S2, determining whether the file downloaded from the first terminal is complete;
S3,在判断结果为否的情况下,对从第一终端下载的部分文件进行标记,用于后续在检测到第一终端支持文件传输时,继续从第一终端下载剩余部分文件。 S3. If the determination result is no, the partial file downloaded from the first terminal is marked for subsequent downloading of the remaining partial files from the first terminal when detecting that the first terminal supports file transmission.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory. A variety of media that can store program code, such as a disc or a disc.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:存储来自第一终端的第一终端传输给第二终端的文件;判断第二终端是否支持文件传输;在判断结果为是的情况下,将存储的文件发送给第二终端。Optionally, in this embodiment, the processor performs: storing, according to the stored program code in the storage medium, a file that is transmitted from the first terminal of the first terminal to the second terminal; determining whether the second terminal supports file transmission; When the result of the determination is YES, the stored file is transmitted to the second terminal.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:存储来自第一终端的第一终端传输给第二终端的文件包括:在将从第一终端下载的文件向第二终端传输的过程中,检测到第二终端异常断开;判断是否继续从第一终端下载未下载完的待下载文件;在判断结果为是的情况下,将从第一终端下载待下载文件进行存储。Optionally, in this embodiment, the processor is executed according to the stored program code in the storage medium: storing the file transmitted by the first terminal from the first terminal to the second terminal includes: downloading the file to be downloaded from the first terminal In the process of transmitting to the second terminal, detecting that the second terminal is abnormally disconnected; determining whether to continue downloading the undownloaded file to be downloaded from the first terminal; if the determination result is yes, downloading from the first terminal Download the file for storage.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:在将存储的文件发送给第二终端之前,还包括:向第二终端发送第一指示消息,其中,第一指示消息用于指示第一终端传输给第二终端的文件的状态为已下载待传输。Optionally, in this embodiment, the processor is configured to: according to the stored program code in the storage medium, before the sending the stored file to the second terminal, the method further includes: sending, by the second terminal, a first indication message, where The first indication message is used to indicate that the status of the file transmitted by the first terminal to the second terminal is downloaded to be transmitted.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:在将存储的文件发送给第二终端之后,还包括:向第二终端发送第二指示消息,其中,第二指示消息用于指示第一终端传输给第二终端的文件的状态为已传输完成。Optionally, in this embodiment, the processor is configured to: according to the stored program code in the storage medium, after the sending the file to the second terminal, the method further includes: sending a second indication message to the second terminal, where The second indication message is used to indicate that the status of the file transmitted by the first terminal to the second terminal is that the transmission is completed.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:存储来自第一终端的第一终端传输给第二终端的文件包括:在将从第一终端下载的文件向第二终端传输的过程中,检测到第一终端异常断开;判断从第一终端下载的文件是否完整;在判断结果为否的情况下,对从第一终端下载的部分文件进行标记,用于后续在检测到第一终端支持文件传输时,继续从第一终端下载剩余部分文件。 Optionally, in this embodiment, the processor is executed according to the stored program code in the storage medium: storing the file transmitted by the first terminal from the first terminal to the second terminal includes: downloading the file to be downloaded from the first terminal In the process of transmitting to the second terminal, detecting that the first terminal is abnormally disconnected; determining whether the file downloaded from the first terminal is complete; and if the determination result is negative, marking a part of the file downloaded from the first terminal, And for continuing to download the remaining part of the file from the first terminal when detecting that the first terminal supports file transmission.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
在本发明实施例中,存储来自第一终端的第一终端传输给第二终端的文件;判断第二终端是否支持文件传输;在判断结果为是的情况下,将存储的文件发送给第二终端。由于将第一终端将要发送给第二终端的文件进行了存储,使得第二终端可以在有能力接收该文件的时候再接收该文件,因此,即使在第一终端传输文件时,第二终端并不在线,也不会影响文件的传输,因此,可以解决相关技术中基于WI-FI终端进行文件传输时,发送方和接收方中一方不在线则无法进行文件传输的问题。 In the embodiment of the present invention, the file transmitted from the first terminal of the first terminal to the second terminal is stored; determining whether the second terminal supports file transmission; and if the determination result is yes, sending the stored file to the second file terminal. Since the file to be sent by the first terminal to the second terminal is stored, the second terminal can receive the file when it is capable of receiving the file, so even when the file is transmitted by the first terminal, the second terminal If it is not online, it will not affect the file transmission. Therefore, it can solve the problem that the file transmission cannot be performed when one of the sender and the receiver is not online when the file is transmitted based on the WI-FI terminal in the related art.

Claims (10)

  1. 一种文件传输方法,包括:A file transfer method includes:
    存储来自第一终端的所述第一终端传输给第二终端的文件;Storing a file transmitted by the first terminal from the first terminal to the second terminal;
    判断所述第二终端是否支持文件传输;Determining whether the second terminal supports file transmission;
    在判断结果为是的情况下,将存储的所述文件发送给所述第二终端。In the case where the determination result is YES, the stored file is transmitted to the second terminal.
  2. 根据权利要求1所述的方法,其中,存储来自所述第一终端的所述第一终端传输给所述第二终端的所述文件包括:The method of claim 1, wherein storing the file transmitted by the first terminal from the first terminal to the second terminal comprises:
    在将从所述第一终端下载的文件向所述第二终端传输的过程中,检测到所述第二终端异常断开;In the process of transmitting the file downloaded from the first terminal to the second terminal, detecting that the second terminal is abnormally disconnected;
    判断是否继续从所述第一终端下载未下载完的待下载文件;Determining whether to continue downloading the undownloaded file to be downloaded from the first terminal;
    在判断结果为是的情况下,将从所述第一终端下载所述待下载文件进行存储。If the result of the determination is yes, the file to be downloaded is downloaded from the first terminal and stored.
  3. 根据权利要求2所述的方法,其中,在将存储的所述文件发送给所述第二终端之前,还包括:The method of claim 2, wherein before the storing the file to the second terminal, the method further comprises:
    向所述第二终端发送第一指示消息,其中,所述第一指示消息用于指示所述第一终端传输给所述第二终端的所述文件的状态为已下载待传输。Sending a first indication message to the second terminal, where the first indication message is used to indicate that the status of the file that is transmitted by the first terminal to the second terminal is downloaded to be transmitted.
  4. 根据权利要求2所述的方法,其中,在将存储的所述文件发送给所述第二终端之后,还包括:The method of claim 2, after the sending the stored file to the second terminal, further comprising:
    向所述第二终端发送第二指示消息,其中,所述第二指示消息用于指示所述第一终端传输给所述第二终端的所述文件的状态为已传输完成。Sending a second indication message to the second terminal, where the second indication message is used to indicate that the status of the file that is transmitted by the first terminal to the second terminal is that the transmission is completed.
  5. 根据权利要求1所述的方法,其中,存储来自所述第一终端 的所述第一终端传输给所述第二终端的所述文件包括:The method of claim 1 wherein storing from said first terminal The file transmitted by the first terminal to the second terminal includes:
    在将从所述第一终端下载的文件向所述第二终端传输的过程中,检测到所述第一终端异常断开;In the process of transmitting the file downloaded from the first terminal to the second terminal, detecting that the first terminal is abnormally disconnected;
    判断从所述第一终端下载的所述文件是否完整;Determining whether the file downloaded from the first terminal is complete;
    在判断结果为否的情况下,对从所述第一终端下载的部分文件进行标记,用于后续在检测到所述第一终端支持文件传输时,继续从所述第一终端下载剩余部分文件。If the result of the determination is no, the partial file downloaded from the first terminal is marked for subsequent downloading of the remaining part of the file from the first terminal when detecting that the first terminal supports file transmission. .
  6. 一种文件传输装置,包括:A file transfer device comprising:
    存储模块,设置为存储来自第一终端的所述第一终端传输给第二终端的文件;a storage module, configured to store a file transmitted by the first terminal from the first terminal to the second terminal;
    判断模块,设置为判断所述第二终端是否支持文件传输;a determining module, configured to determine whether the second terminal supports file transmission;
    第一发送模块,设置为在判断结果为是的情况下,将存储的所述文件发送给所述第二终端。The first sending module is configured to send the stored file to the second terminal if the determination result is yes.
  7. 根据权利要求6所述的装置,其中,所述存储模块包括:The apparatus of claim 6, wherein the storage module comprises:
    第一检测单元,设置为在将从所述第一终端下载的文件向所述第二终端传输的过程中,检测到所述第二终端异常断开;The first detecting unit is configured to detect that the second terminal is abnormally disconnected during the process of transmitting the file downloaded from the first terminal to the second terminal;
    第一判断单元,设置为判断是否继续从所述第一终端下载未下载完的待下载文件;The first determining unit is configured to determine whether to continue downloading the undownloaded file to be downloaded from the first terminal;
    下载单元,设置为在判断结果为是的情况下,将从所述第一终端下载所述待下载文件进行存储。The download unit is configured to download the file to be downloaded from the first terminal for storage if the determination result is YES.
  8. 根据权利要求7所述的装置,其中,还包括:The apparatus according to claim 7, further comprising:
    第二发送模块,设置为向所述第二终端发送第一指示消息,其中,所述第一指示消息用于指示所述第一终端传输给所述第二终端的所述文件的状态为已下载待传输。 a second sending module, configured to send a first indication message to the second terminal, where the first indication message is used to indicate that the status of the file that is sent by the first terminal to the second terminal is Download to be transferred.
  9. 根据权利要求7所述的装置,其中,还包括:The apparatus according to claim 7, further comprising:
    第三发送模块,设置为向所述第二终端发送第二指示消息,其中,所述第二指示消息用于指示所述第一终端传输给所述第二终端的所述文件的状态为已传输完成。a third sending module, configured to send a second indication message to the second terminal, where the second indication message is used to indicate that the status of the file that is sent by the first terminal to the second terminal is The transfer is complete.
  10. 根据权利要求6所述的装置,其中,所述存储模块包括:The apparatus of claim 6, wherein the storage module comprises:
    第二检测单元,设置为在将从所述第一终端下载的文件向所述第二终端传输的过程中,检测到所述第一终端异常断开;The second detecting unit is configured to detect that the first terminal is abnormally disconnected during the process of transmitting the file downloaded from the first terminal to the second terminal;
    第二判断单元,设置为判断从所述第一终端下载的所述文件是否完整;a second determining unit, configured to determine whether the file downloaded from the first terminal is complete;
    标记单元,设置为在判断结果为否的情况下,对从所述第一终端下载的部分文件进行标记,用于后续在检测到所述第一终端支持文件传输时,继续从所述第一终端下载剩余部分文件。 a marking unit, configured to mark, in the case of a negative determination result, a partial file downloaded from the first terminal, for continuing to continue from the first when detecting that the first terminal supports file transmission The terminal downloads the remaining files.
PCT/CN2017/077724 2016-07-13 2017-03-22 File transmission method and apparatus WO2018010448A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610555909.2 2016-07-13
CN201610555909.2A CN107623706A (en) 2016-07-13 2016-07-13 Document transmission method and device

Publications (1)

Publication Number Publication Date
WO2018010448A1 true WO2018010448A1 (en) 2018-01-18

Family

ID=60952526

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/077724 WO2018010448A1 (en) 2016-07-13 2017-03-22 File transmission method and apparatus

Country Status (2)

Country Link
CN (1) CN107623706A (en)
WO (1) WO2018010448A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111294396A (en) * 2020-01-20 2020-06-16 咪咕数字传媒有限公司 File transmission method and device, electronic equipment and storage medium
CN113590565B (en) * 2021-08-12 2023-12-22 湖南智领通信科技有限公司 Series multi-terminal data transmission method, system, equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104796460A (en) * 2015-03-26 2015-07-22 小米科技有限责任公司 File transmission method and device
CN104980399A (en) * 2014-04-08 2015-10-14 腾讯科技(深圳)有限公司 File transfer method, client and proxy server
US20150350299A1 (en) * 2014-06-03 2015-12-03 Verizon Patent And Licensing Inc. Method and apparatus for providing secure file transmission

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102217283A (en) * 2011-05-25 2011-10-12 华为技术有限公司 Method and apparatus for pp file transmission
CN102646117B (en) * 2012-02-20 2015-07-08 华为技术有限公司 Method and device for transmitting file data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104980399A (en) * 2014-04-08 2015-10-14 腾讯科技(深圳)有限公司 File transfer method, client and proxy server
US20150350299A1 (en) * 2014-06-03 2015-12-03 Verizon Patent And Licensing Inc. Method and apparatus for providing secure file transmission
CN104796460A (en) * 2015-03-26 2015-07-22 小米科技有限责任公司 File transmission method and device

Also Published As

Publication number Publication date
CN107623706A (en) 2018-01-23

Similar Documents

Publication Publication Date Title
JP5426499B2 (en) Terminal device settings
US9774642B2 (en) Method and device for pushing multimedia resource and display terminal
US20180227214A1 (en) Method and apparatus for controlling and managing a field device using an industry internet operating system
TWI393464B (en) Apparatus and methods for network identification of open market wireless devices
EP4161034A1 (en) Mobile terminal and computer program product for widget sharing
CN117793952A (en) Communication method and device
US9853929B2 (en) Service compatibility check for messages
US8935803B2 (en) System and apparatus for transferring data between communication elements
CN104106303A (en) Methods and apparatus for establishing tunneled direct link setup (TDLS) session between devices in wireless network
WO2018107593A1 (en) Method and device for sharing file between different terminals
CN104954394A (en) Software differential packet production and update method, server, terminal and update system
KR20140020179A (en) Apparatus and method for connecting service reflected in user intent
KR20160044565A (en) Method and system for dual role handling in a wireless environment
CN104023055A (en) Video sharing method and system, and terminal device
CN106506717A (en) A kind of automatic discovering method and equipment
CN106611001A (en) Method, device and system for checking consistency of data in database tables in virtual machines
WO2017163645A1 (en) Communication control device, wireless machine, communication control system, communication control method and program
WO2018010448A1 (en) File transmission method and apparatus
CN112737847A (en) Node upgrading method and device, storage medium and electronic device
CN108462984A (en) A kind of method and terminal carrying out access network management
CN110071950B (en) Information transmission method, transfer device, terminal, controlled device and storage medium
WO2020068412A1 (en) Advanced resource link binding management
US20160100021A1 (en) Information processing device, destination information updating method, and record medium
JP2012105213A (en) Wireless lan access point and method for maintaining connection of radio terminal
WO2017128727A1 (en) Interaction method for edge computing node and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17826787

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17826787

Country of ref document: EP

Kind code of ref document: A1