CN104796460B - Document transmission method and device - Google Patents
Document transmission method and device Download PDFInfo
- Publication number
- CN104796460B CN104796460B CN201510137040.5A CN201510137040A CN104796460B CN 104796460 B CN104796460 B CN 104796460B CN 201510137040 A CN201510137040 A CN 201510137040A CN 104796460 B CN104796460 B CN 104796460B
- Authority
- CN
- China
- Prior art keywords
- file
- router
- receiving
- sending
- equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 128
- 238000000034 method Methods 0.000 title claims abstract description 70
- 238000012546 transfer Methods 0.000 claims description 45
- 230000015654 memory Effects 0.000 claims description 41
- 230000004044 response Effects 0.000 claims description 22
- 238000005516 engineering process Methods 0.000 abstract description 33
- 238000010586 diagram Methods 0.000 description 18
- 238000004891 communication Methods 0.000 description 17
- 238000012545 processing Methods 0.000 description 16
- 230000006870 function Effects 0.000 description 11
- 230000008569 process Effects 0.000 description 11
- 230000003287 optical effect Effects 0.000 description 8
- 230000005291 magnetic effect Effects 0.000 description 7
- 230000005236 sound signal Effects 0.000 description 4
- 230000003993 interaction Effects 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Computer And Data Communications (AREA)
Abstract
The disclosure is directed to a kind of document transmission method and devices, belong to technical field of information transmission.The described method includes: receiving the file that receiving device of the sending device into Intranet in Intranet is sent;Store this document;When receiving device accesses Intranet, this document is sent to receiving device.The disclosure solves that when equipment and equipment room transmit file by bluetooth, this kind of point-to-point short range wireless transmission technology of NFC, ZigBee in the related technology, existing transmission efficiency is low, stability difference and does not support the problem of transmitting offline;On the one hand, compared to above-mentioned several wireless network connections, the transmission speed and stability of the cable network connection or Wi-Fi connection established between equipment and router are all promoted;On the other hand, since router has the function of storage this document, which supports offline transmission, it is not necessary to which file could be transmitted by limiting sending device and receiving device while connecting router.
Description
Technical Field
The present disclosure relates to the field of information transmission technologies, and in particular, to a file transmission method and apparatus.
Background
With the development of Communication technology, point-to-point short-range wireless transmission technologies such as bluetooth, NFC (Near Field Communication), ZigBee (ZigBee) and the like have appeared.
The point-to-point wireless network connection can be directly established between the devices through the short-distance wireless transmission technology. The file transmission can be carried out between the devices through the wireless network connection. However, the above-mentioned point-to-point short-distance wireless transmission technology has the following disadvantages when transmitting a file: on one hand, the method is influenced by the inherent performance of point-to-point short-distance wireless transmission technologies such as Bluetooth, NFC and ZigBee, the transmission speed of the file is quite limited, and the stability of wireless network connection established between the equipment is poor; on the other hand, the wireless network connection between the two devices must be established under the condition that the two devices exist at the same time, and then the file is transmitted through the wireless network connection. Therefore, when the file is transmitted between the devices by the related technology, the problems of low transmission efficiency, poor stability and no support for offline transmission exist.
Disclosure of Invention
The embodiment of the disclosure provides a file transmission method and device. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a file transfer method, including:
receiving a file sent by sending equipment in an intranet to receiving equipment in the intranet;
storing the file;
and when the receiving equipment is accessed to the intranet, the file is sent to the receiving equipment.
Optionally, the receiving a file sent by a sending device in an intranet to a receiving device in the intranet includes:
receiving a file slice sent by sending equipment in the intranet in parallel through at least two receiving threads, wherein the file slice is a file slice corresponding to the file sent to receiving equipment in the intranet by the sending equipment;
wherein each receiving thread is configured to receive a file slice.
Optionally, the method further comprises:
receiving a receiving query request which is sent by the sending equipment and carries a file identifier;
inquiring the position information of the file slice which is completely received in the file corresponding to the file identification;
transmitting the location information to the transmitting device;
and receiving the file slices which are not completely received in the file and are sent by the sending equipment according to the position information.
Optionally, when the receiving device accesses the intranet, sending the file to the receiving device includes:
when the receiving equipment is accessed to the intranet, sending a file receiving notice to the receiving equipment;
receiving a file receiving response corresponding to the file receiving notification sent by the receiving equipment;
and sending the file to the receiving equipment according to the file receiving response.
Optionally, the method further comprises:
sending a device list containing at least one device identifier to the sending device, wherein the at least one device identifier comprises at least one of a device identifier corresponding to a device currently connected with the router and a device identifier corresponding to a device connected with the router;
receiving a target device identifier sent by the sending device, and determining a device corresponding to the target device identifier as the receiving device;
wherein the target device identity is selected from the at least one device identity.
According to a second aspect of the embodiments of the present disclosure, there is provided a file transfer method, the method including:
after the router is accessed into an intranet, a file is sent to the router through the intranet;
and indicating receiving equipment corresponding to the file to the router, wherein the router is used for sending the file to the receiving equipment when the receiving equipment is accessed to the intranet.
Optionally, after the access to the intranet by the router, sending the file to the router via the intranet includes:
slicing the file to obtain at least two file slices;
sending the at least two file slices to the router in parallel through at least two sending threads;
wherein each send thread is used to send one file slice.
Optionally, the method further comprises:
sending a receiving query request carrying a file identifier corresponding to the file to the router;
receiving position information sent by the router, wherein the position information is position information of a file slice in the file which is completely received by the router;
and sending the file slices which are not completely received by the router in the file to the router according to the position information.
Optionally, indicating, to the router, a receiving device to which the file corresponds, including:
receiving a device list which is sent by the router and contains at least one device identifier, wherein the at least one device identifier comprises at least one of a device identifier corresponding to a device which is currently connected with the router and a device identifier corresponding to a device which is connected with the router;
displaying the equipment list;
acquiring a selection signal corresponding to a target device identifier in the device list;
and sending the target equipment identification to the router, wherein the target equipment identification is used for indicating receiving equipment corresponding to the file.
According to a third aspect of the embodiments of the present disclosure, there is provided a file transfer apparatus for use in a router, the apparatus including:
the file receiving module is configured to receive a file sent by sending equipment in an intranet to receiving equipment in the intranet;
a file storage module configured to store the file;
and the file sending module is configured to send the file to the receiving equipment when the receiving equipment accesses the intranet.
Optionally, the file receiving module is further configured to receive, in parallel, a file slice sent by a sending device in the intranet through at least two receiving threads, where the file slice is a file slice corresponding to the file sent by the sending device to a receiving device in the intranet; wherein each receiving thread is configured to receive a file slice.
Optionally, the apparatus further comprises:
a request receiving module configured to receive a receiving query request carrying a file identifier sent by the sending device;
the information query module is configured to query the position information of the file slice which is completely received in the file corresponding to the file identification;
an information transmitting module configured to transmit the location information to the transmitting device;
a slice receiving module configured to receive a file slice that is not completely received in the file transmitted by the transmitting device according to the location information.
Optionally, the file sending module includes: the system comprises a notification sending submodule, a response receiving submodule and a file sending submodule;
the notification sending submodule is configured to send a file receiving notification to the receiving device when the receiving device accesses the intranet;
the response receiving submodule is configured to receive a file receiving response corresponding to the file receiving notification sent by the receiving device;
the file sending submodule is configured to send the file to the receiving device according to the file receiving response.
Optionally, the apparatus further comprises:
a list sending module configured to send, to the sending device, a device list including at least one device identifier, where the at least one device identifier includes at least one of a device identifier corresponding to a device currently connected to the router and a device identifier corresponding to a device already connected to the router;
the identification receiving module is configured to receive the target equipment identification sent by the sending equipment and determine the equipment corresponding to the target equipment identification as the receiving equipment;
wherein the target device identity is selected from the at least one device identity.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a file transfer apparatus for use in a sending device, the apparatus including:
the system comprises a sending module, a receiving module and a sending module, wherein the sending module is configured to send a file to a router through an intranet after the router is accessed into the intranet;
and the indicating module is configured to indicate receiving equipment corresponding to the file to the router, and the router is used for sending the file to the receiving equipment when the receiving equipment accesses the intranet.
Optionally, the sending module includes: a slicing submodule and a sending submodule;
the slicing submodule is configured to slice the file to obtain at least two file slices;
the sending submodule is configured to send the at least two file slices to the router in parallel through at least two sending threads;
wherein each send thread is used to send one file slice.
Optionally, the apparatus further comprises:
a request sending module configured to send a query receiving request carrying a file identifier corresponding to the file to the router;
an information receiving module configured to receive location information sent by the router, where the location information is location information of a file slice of the file that has been completely received by the router;
and the slice sending module is configured to send the file slices which are not completely received by the router in the files to the router according to the position information.
Optionally, the indication module includes: the device comprises a list receiving submodule, a list displaying submodule, a signal acquiring submodule and an identification sending submodule;
the list receiving submodule is configured to receive a device list which is sent by the router and contains at least one device identifier, where the at least one device identifier includes at least one of a device identifier corresponding to a device currently connected with the router and a device identifier corresponding to a device already connected with the router;
the list display submodule is configured to display the device list;
the signal acquisition submodule is configured to acquire a selection signal corresponding to a target device identifier in the device list;
the identifier sending submodule is configured to send the target device identifier to the router, where the target device identifier is used to indicate a receiving device corresponding to the file.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a file transfer apparatus, used in a router, including:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to:
receiving a file sent by sending equipment in an intranet to receiving equipment in the intranet;
storing the file;
and when the receiving equipment is accessed to the intranet, the file is sent to the receiving equipment.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a file transfer apparatus, used in a sending device, including:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to:
after the router is accessed into an intranet, a file is sent to the router through the intranet;
and indicating receiving equipment corresponding to the file to the router, wherein the router is used for sending the file to the receiving equipment when the receiving equipment is accessed to the intranet.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
receiving and storing a file sent by sending equipment in an intranet to receiving equipment in the intranet through a router, and sending the file to the receiving equipment when the receiving equipment is accessed to the intranet; the problems of low transmission efficiency, poor stability and no support for off-line transmission when the files are transmitted between the devices by point-to-point short-distance wireless transmission technologies such as Bluetooth, NFC and ZigBee in the related technology are solved; on one hand, compared with the wireless network connections, the transmission speed and the stability of the wired network connection or the Wi-Fi connection established between the equipment and the router are improved; on the other hand, in the process of forwarding the file sent by the sending device in the intranet to the receiving device in the intranet by the router, because the router has the function of storing the file, the transmission process supports offline transmission, and the transmission of the file can be realized without limiting the simultaneous connection of the sending device and the receiving device to the router.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a schematic diagram of an implementation environment to which various embodiments of the present disclosure are directed;
FIG. 2 is a flow diagram illustrating a file transfer method in accordance with an exemplary embodiment;
FIG. 3 is a flow chart illustrating a method of file transfer according to another exemplary embodiment;
FIG. 4A is a flow diagram illustrating a method of file transfer according to another exemplary embodiment;
FIG. 4B is a flowchart illustrating a step 403 in a file transfer method in accordance with another illustrative embodiment;
FIG. 4C is a flowchart illustrating a step 404 of a file transfer method in accordance with another illustrative embodiment;
FIG. 5 is a flow chart illustrating a method of file transfer according to another exemplary embodiment;
FIG. 6 is a block diagram illustrating a file transfer device in accordance with an exemplary embodiment;
FIG. 7 is a block diagram illustrating a file transfer device in accordance with another exemplary embodiment;
FIG. 8 is a block diagram illustrating a file transfer device in accordance with another exemplary embodiment;
FIG. 9 is a block diagram illustrating a file transfer device in accordance with another exemplary embodiment;
FIG. 10 is a block diagram illustrating an apparatus in accordance with an exemplary embodiment;
FIG. 11 is a block diagram illustrating an apparatus in accordance with another exemplary embodiment;
FIG. 12 is a block diagram illustrating a file transfer system in accordance with an exemplary embodiment.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a schematic diagram of an implementation environment according to various embodiments of the present disclosure, the implementation environment including: router 120, sending device 140, and receiving device 160. Wherein:
an external memory for storing files may be provided in the router 120. The external memory may be a hard disk, a floppy disk, an optical disk, a U disk, etc.
The router 120 is connected to the transmitting device 140 through a wireless network or a wired network. The Wireless network is a Wi-Fi (Wireless Fidelity) network. The sending device 140 may be an electronic device such as a cell phone, a tablet computer, an e-book reader, a personal digital assistant, a laptop portable computer, a desktop computer, a smart television, a smart bracelet, a smart watch, and so on.
The router 120 is connected to the receiving device 160 through a wireless network or a wired network. Wherein, the wireless network is a Wi-Fi network. Similarly, the receiving device 160 may be an electronic device such as a cell phone, a tablet, an e-book reader, a personal digital assistant, a laptop, a desktop, a smart television, a smart band, a smart watch, and so on.
Fig. 2 is a flowchart illustrating a file transfer method according to an exemplary embodiment, which is illustrated in the application of the file transfer method to the router 120 in the implementation environment shown in fig. 1. The file transmission method can comprise the following steps:
in step 202, a file transmitted from a transmitting device in the intranet to a receiving device in the intranet is received.
In step 204, the file is stored.
In step 206, when the receiving device accesses the intranet, the file is transmitted to the receiving device.
Optionally, receiving a file sent by a sending device in the intranet to a receiving device in the intranet includes: receiving a file slice sent by sending equipment in an intranet in parallel through at least two receiving threads, wherein the file slice is a file slice corresponding to a file sent by the sending equipment to receiving equipment in the intranet; wherein each receiving thread is configured to receive a file slice.
Optionally, the method further comprises:
receiving a receiving query request which is sent by sending equipment and carries a file identifier;
inquiring the position information of the file slice which is completely received in the file corresponding to the file identification;
transmitting the location information to a transmitting device;
and the receiving and sending equipment receives the file slices which are not completely received in the file sent according to the position information.
Optionally, when the receiving device accesses the intranet, the file is sent to the receiving device, where the file includes:
when the receiving equipment is accessed to the intranet, sending a file receiving notice to the receiving equipment;
receiving a file receiving response corresponding to the file receiving notification sent by the receiving equipment;
and sending the file to the receiving equipment according to the file receiving response.
Optionally, the method further comprises:
sending a device list containing at least one device identifier to a sending device, wherein the at least one device identifier comprises at least one of a device identifier corresponding to a device currently connected with a router and a device identifier corresponding to a device connected with the router; receiving a target device identification sent by a sending device, and determining a device corresponding to the target device identification as a receiving device; wherein the target device identity is selected from at least one device identity.
In summary, in the file transmission method provided in this embodiment, a router receives and stores a file sent by a sending device in an intranet to a receiving device in the intranet, and when the receiving device accesses the intranet, the file is sent to the receiving device; the problems of low transmission efficiency, poor stability and no support for off-line transmission when the files are transmitted between the devices by point-to-point short-distance wireless transmission technologies such as Bluetooth, NFC and ZigBee in the related technology are solved; on one hand, compared with the wireless network connections, the transmission speed and the stability of the wired network connection or the Wi-Fi connection established between the equipment and the router are improved; on the other hand, in the process of forwarding the file sent by the sending device in the intranet to the receiving device in the intranet by the router, because the router has the function of storing the file, the transmission process supports offline transmission, and the transmission of the file can be realized without limiting the simultaneous connection of the sending device and the receiving device to the router.
Fig. 3 is a flowchart illustrating a file transfer method according to another exemplary embodiment, which is illustrated in the embodiment of the sending device 140 in the implementation environment shown in fig. 1. The file transmission method can comprise the following steps:
in step 302, the file is transmitted to the router via the intranet after being accessed to the intranet by the router.
In step 304, the receiving device corresponding to the file is indicated to a router, and the router is configured to send the file to the receiving device when the receiving device accesses the intranet.
Optionally, after accessing the intranet through the router, sending the file to the router via the intranet includes:
slicing the file to obtain at least two file slices;
sending at least two file slices to a router in parallel through at least two sending threads;
wherein each send thread is used to send one file slice.
Optionally, the method further comprises:
sending a receiving query request carrying a file identifier corresponding to the file to a router;
receiving position information sent by a router, wherein the position information is the position information of a file slice which is completely received by the router in the file;
and sending the file slices which are not completely received by the router in the files to the router according to the position information.
Optionally, indicating, to the router, a receiving device to which the file corresponds, including:
receiving an equipment list which is sent by a router and contains at least one equipment identifier, wherein the at least one equipment identifier comprises at least one of the equipment identifier corresponding to the equipment which is currently connected with the router and the equipment identifier corresponding to the equipment which is connected with the router;
displaying the equipment list;
acquiring a selection signal corresponding to a target device identifier in a device list;
and sending a target device identification to the router, wherein the target device identification is used for indicating the receiving device corresponding to the file.
In summary, in the file transmission method provided in this embodiment, when a sending device transmits a file to a receiving device in an intranet, the sending device sends the file to a router, and sends the file to the receiving device through the router when the receiving device accesses the intranet; the problems of low transmission efficiency, poor stability and no support for off-line transmission when the files are transmitted between the devices by point-to-point short-distance wireless transmission technologies such as Bluetooth, NFC and ZigBee in the related technology are solved; on one hand, compared with the wireless network connections, the transmission speed and the stability of the wired network connection or the Wi-Fi connection established between the equipment and the router are improved; on the other hand, in the process of forwarding the file sent by the sending device in the intranet to the receiving device in the intranet by the router, because the router has the function of storing the file, the transmission process supports offline transmission, and the transmission of the file can be realized without limiting the simultaneous connection of the sending device and the receiving device to the router.
Fig. 4A is a flowchart illustrating a file transfer method according to another exemplary embodiment, which is illustrated in the implementation environment shown in fig. 1. The file transmission method can comprise the following steps:
in step 401, a sending device sends a file to a router, and the sending device accesses to an intranet through the router.
The sending device is connected with the router through a wireless network or a wired network. In this embodiment, a wireless network connection is established between the sending device and the router through the Wi-Fi network. When the sending equipment needs to transmit the file to the receiving equipment in the intranet, the sending equipment sends the file needing to be transmitted to the router through the Wi-Fi network connection.
Compared with point-to-point short-distance wireless transmission technologies such as Bluetooth, NFC and ZigBee, the transmission speed of Wi-Fi network connection can reach 54Mbps or even higher, and therefore the transmission speed of files can be greatly improved. In addition, the stability of Wi-Fi network connections is also better than the stability of several wireless network connections described above. Therefore, the file transmission method provided by the embodiment can realize efficient and stable file transmission in the intranet.
Optionally, a client corresponding to the router may be operated in the sending device. After the network connection is established between the sending equipment and the router, the sending party can log in the router through the client side, and sends files to the router through the client side after the logging is successful.
Accordingly, the router receives the file transmitted from the transmitting device in the intranet to the receiving device in the intranet.
In step 402, the router stores the file.
The router is provided with an external memory, and the external memory is used for storing files. Alternatively, the type of external memory includes, but is not limited to, hard disks, floppy disks, optical disks, U-disks, and the like. Taking the router as an example in which a hard disk is disposed, the type of the hard disk includes, but is not limited to, a solid state disk, a mechanical hard disk, a hybrid hard disk, and the like.
And after receiving the file sent by the sending equipment in the intranet to the receiving equipment in the intranet, the router stores the file in the external memory. Since the router stores the file in the external memory, the file can be saved in the router without being lost even if the router is powered off.
In addition, in addition to the above-mentioned several types of memories, the router may be provided with other types of memories, and this embodiment is not limited thereto.
In step 403, the sending device indicates to the router the receiving device to which the file corresponds.
As shown in fig. 4B, in one possible embodiment, this step may include the following sub-steps:
in step 403a, the router sends a device list containing at least one device identification to the sending device.
Wherein the at least one device identifier includes at least one of a device identifier corresponding to a device currently connected to the router and a device identifier corresponding to a device already connected to the router. That is, the router sends the device identifier of the online device and/or the offline device to the sending device. The device identification is used to distinguish between different devices. Alternatively, the device identification may be a MAC (Media Access Control) address.
Of course, in other possible embodiments, the device identifier may also be represented by one or more combinations of MAC address, user account corresponding to the device, user nickname corresponding to the device, and the like. This embodiment is not limited to this.
Accordingly, the transmitting device receives the device list transmitted by the router.
In step 403b, the transmitting device displays a list of devices.
The sending device displays the list of devices so that the user can select one or more devices from the list of devices as the receiving device of the file.
In step 403c, the transmitting device acquires a selection signal corresponding to the identification of the target device in the device list.
The number of the target device identifiers may be one, or may be two or more, which is not limited in this embodiment. The target device identifier is used for indicating the receiving device corresponding to the file.
In step 403d, the sending device sends the destination device identification to the router.
Correspondingly, the router receives the target device identifier sent by the sending device, and determines the device corresponding to the target device identifier as the receiving device.
Of course, the manner provided above for the sending device to indicate the receiving device corresponding to the file to the router is only exemplary, and the sending device may also adopt other possible embodiments to indicate the receiving device corresponding to the file to the router. For example, when sending a file to a router, a sending device sends the device identifier of a receiving device corresponding to the file at the same time. This embodiment is not limited to this.
The step 403 may be performed before the steps 401 and 402, after the steps 401 and 402, or simultaneously with the steps 401 and 402. This embodiment is not limited to this.
In addition, optionally, the router may further store file information corresponding to each file, where the file information includes a file path of the file in the router and a transmission path corresponding to the file. The transmission path includes a correspondence between the device identification of the transmitting device and the device identification of the receiving device.
In step 404, the router sends the file to the receiving device when the receiving device accesses the intranet.
And the router sends the file to the receiving equipment when the receiving equipment establishes wired network connection or Wi-Fi network connection with the router according to the receiving equipment indicated by the sending equipment.
As shown in fig. 4C, in one possible embodiment, this step may include the following sub-steps:
in step 404a, the router transmits a file reception notification to the receiving device when the receiving device accesses the intranet.
Alternatively, the file reception notification may carry information such as a file name of the file, a device identifier of the transmission device, and the like. After checking the file receiving notice, the receiver can decide whether to receive the file.
Accordingly, the reception apparatus receives the file reception notification transmitted by the router.
In step 404b, the reception apparatus transmits a file reception response corresponding to the file reception notification to the router.
When the receiving side decides to receive the file, the receiving device sends a file receiving response to the router, and the file receiving response is used for indicating the router to send the file to the receiving device.
Accordingly, the router receives a file reception response corresponding to the file reception notification sent by the reception device.
In step 404c, the router sends the file to the receiving device according to the file reception response.
And after receiving the file receiving response, the router indicates that the receiving party user agrees to receive the file, and the router sends the file to the receiving equipment through the wired network connection or the Wi-Fi network connection established between the router and the receiving equipment.
Of course, in other possible embodiments, when the receiving device accesses the intranet, the router may also directly send the file to the receiving device. This embodiment is not limited to this.
Optionally, a client corresponding to the router may also be operated in the receiving device, and after the network connection is established between the receiving device and the router, the receiving party may log in to the router through the client. Correspondingly, the router sends the file to the client after the client in the receiving device successfully logs in the router.
In this embodiment, when sending a file to a router, the sending device only needs to ensure that a network connection is established between the sending device and the router, and the receiving device corresponding to the file may be online or offline; similarly, when the router forwards a file to a receiving device in the intranet, it is only necessary to ensure that a network connection is established between the receiving device and the router, and a sending device corresponding to the file may be online or offline. Therefore, the file transmission method provided by this embodiment supports offline transmission, and it is not necessary to limit the sending device and the receiving device to be connected to the router at the same time to transmit the file.
In summary, in the file transmission method provided in this embodiment, a router receives and stores a file sent by a sending device in an intranet to a receiving device in the intranet, and when the receiving device accesses the intranet, the file is sent to the receiving device; the problems of low transmission efficiency, poor stability and no support for off-line transmission when the files are transmitted between the devices by point-to-point short-distance wireless transmission technologies such as Bluetooth, NFC and ZigBee in the related technology are solved; on one hand, compared with the wireless network connections, the transmission speed and the stability of the wired network connection or the Wi-Fi connection established between the equipment and the router are improved; on the other hand, in the process of forwarding the file sent by the sending device in the intranet to the receiving device in the intranet by the router, because the router has the function of storing the file, the transmission process supports offline transmission, and the transmission of the file can be realized without limiting the simultaneous connection of the sending device and the receiving device to the router.
In addition, the file transfer method provided by the embodiment can support a one-to-one transfer mode and can also support a one-to-many transfer mode. When a sender user needs to transmit the same file to a plurality of receiver users, the sender user only needs to upload the file to the router once without executing repeated operations such as equipment pairing, file transmission and the like, and the user experience is fully improved.
Fig. 5 is a flowchart illustrating a file transfer method according to another exemplary embodiment, which is illustrated in the embodiment of fig. 1. The file transmission method can comprise the following steps:
in step 501, a sending device slices a file to obtain at least two file slices.
In this embodiment, the sending device may slice the file for transmission to the receiving device in the intranet before transmitting the file to the router. The sending equipment slices the file to be sent to obtain at least two file slices. The sending device may equally divide the file into a number of file slices of the same size, or may non-equally divide the file. For example, when the size of a file is 120KB, the transmitting device may divide the file into one file slice of 50KB and another file slice of 70 KB.
In step 502, the sending device sends the at least two file slices to the router in parallel by at least two sending threads.
Wherein each send thread is used to send one file slice. Compared with the single-thread mode for transmitting the whole file, the multi-thread mode for transmitting the multiple file slices in parallel is adopted by the sending equipment, and the file transmission efficiency can be improved. For example, taking the above-described two file slices of 50KB and 70KB in size, respectively, as an example, the sending device sends the two file slices to the router in parallel by two threads.
In addition, for each file slice, the sending device sends the file identifier corresponding to the file to which the file slice belongs to the router at the same time. Alternatively, the file identification may be a hash value of the file.
Correspondingly, the router receives the file slices sent by the sending equipment in the intranet in parallel through at least two receiving threads; wherein each receiving thread is configured to receive a file slice.
In step 503, the router stores the file slice transmitted by the transmitting device in the intranet.
The router stores the received file slices in an external memory such as a hard disk.
In this embodiment, the sending device slices the file and transmits the sliced file to the router, so that the transmission process supports breakpoint resuming. In the process of transmitting the file slice to the router by the sending device, the midway transmission may be interrupted due to poor network conditions or interruption of the transmission by a user. And the router end records the corresponding relation between the position information of each completely received file slice and the file identification corresponding to the file to which the file slice belongs. The next time the same file is transmitted, the sending device performs the following step 504:
in step 504, the sending device sends a query receiving request carrying a file identifier corresponding to the file to the router.
The received query request is used for querying the position information of the file slice which is completely received by the router in the file.
Correspondingly, the router receives a receiving query request which is sent by the sending equipment and carries the file identifier.
In step 505, the router queries the file corresponding to the file identification for location information of the file slice that has been completely received.
And the router inquires and acquires the position information of the file slice which is completely received in the file corresponding to the file identification according to the pre-stored corresponding relation.
In step 506, the router transmits the location information to the transmitting device.
Accordingly, the transmitting device receives the location information transmitted by the router.
In step 507, the sending device sends the file slice that is not completely received by the router in the file to the router according to the location information.
And after receiving the position information fed back by the router, the sending equipment resends the file slices which are not received by the router in the file to the router according to the position information. For the file slice completely received by the router in the file, the sending device does not need to retransmit the part of the file slice.
Accordingly, the router receives the file slices which are not completely received in the file transmitted by the transmitting device according to the position information.
For example, it is assumed that the transmitting device has a transmission interruption in transmitting the above-described two file slices of 50KB and 70KB in size, respectively, to the router, wherein the file slice of 50KB in size has completed transmission and the file slice of 70KB in size has not completed transmission. The router feeds back the location information corresponding to the file slice of 50KB to the sending device according to the received query request. Accordingly, the transmitting device retransmits the above file slice of size 70KB to the router according to the position information, without retransmitting the file slice of size 50 KB.
In step 508, the router stores the file slices not completely received in the file.
When the router receives the file slice which is not completely received in the file, the router stores the part of the file slice and the file slice which is completely received before.
In other possible embodiments, the router may also feed back, to the sending device, location information of file slices that are not completely received in the file corresponding to the file identifier, and the sending device may also be capable of sending, to the router, file slices that are not completely received by the router in the file according to the location information. This embodiment is not limited to this.
In step 509, the sending device indicates to the router the receiving device to which the file corresponds.
In step 510, the router sends the file to the receiving device when the receiving device accesses the intranet.
Step 509 and step 510 are the same as step 403 and step 404 in the embodiment shown in fig. 4A, and refer to the description and illustration in the embodiment shown in fig. 4A, which is not repeated herein.
Optionally, in the process of sending the file to the receiving device, the router may also send a plurality of file slices to the receiving device in parallel in a multithreading manner, so as to improve the file transmission efficiency between the router and the receiving device. This part is a matter that can be easily understood by those skilled in the art based on the present embodiment, and this embodiment will not be described in detail.
In practical application, the sending device may decide whether to transmit by multithreading according to actual conditions. For example, the sending device may decide whether to transmit using multiple threads based on the size of the file to be sent. When the size of a file to be sent is larger than a preset threshold value, a sending device slices the file to obtain a plurality of file slices, and transmits the file slices to a router in a multithreading parallel mode; and when the size of the file to be sent is smaller than a preset threshold value, the sending equipment directly sends the whole file to the router.
In summary, in the file transmission method provided in this embodiment, a router receives and stores a file sent by a sending device in an intranet to a receiving device in the intranet, and when the receiving device accesses the intranet, the file is sent to the receiving device; the problems of low transmission efficiency, poor stability and no support for off-line transmission when the files are transmitted between the devices by point-to-point short-distance wireless transmission technologies such as Bluetooth, NFC and ZigBee in the related technology are solved; on one hand, compared with the wireless network connections, the transmission speed and the stability of the wired network connection or the Wi-Fi connection established between the equipment and the router are improved; on the other hand, in the process of forwarding the file sent by the sending device in the intranet to the receiving device in the intranet by the router, because the router has the function of storing the file, the transmission process supports offline transmission, and the transmission of the file can be realized without limiting the simultaneous connection of the sending device and the receiving device to the router.
In addition, in the file transmission method provided in this embodiment, the sending device slices the file to obtain a plurality of file slices, and transmits the plurality of file slices to the router in parallel by using multiple threads, so that the file transmission efficiency between the sending device and the router is improved. In addition, when the file transmission is interrupted in the midway, the sending equipment only needs to retransmit the file slices which are not completely received by the router next time, and the intermittent continuous transmission is realized.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
Fig. 6 is a block diagram illustrating a file transfer device that may be implemented as part or all of a router in software, hardware, or a combination of both, according to an example embodiment. The file transfer apparatus may include: a file receiving module 610, a file storing module 620 and a file sending module 630.
The file receiving module 610 is configured to receive a file sent by a sending device in an intranet to a receiving device in the intranet.
A file storage module 620 configured to store the file.
A file sending module 630, configured to send the file to the receiving device when the receiving device accesses the intranet.
To sum up, the file transmission apparatus provided in this embodiment receives and stores, through the router, the file that is sent by the sending device in the intranet to the receiving device in the intranet, and sends the file to the receiving device when the receiving device accesses the intranet; the problems of low transmission efficiency, poor stability and no support for off-line transmission when the files are transmitted between the devices by point-to-point short-distance wireless transmission technologies such as Bluetooth, NFC and ZigBee in the related technology are solved; on one hand, compared with the wireless network connections, the transmission speed and the stability of the wired network connection or the Wi-Fi connection established between the equipment and the router are improved; on the other hand, in the process of forwarding the file sent by the sending device in the intranet to the receiving device in the intranet by the router, because the router has the function of storing the file, the transmission process supports offline transmission, and the transmission of the file can be realized without limiting the simultaneous connection of the sending device and the receiving device to the router.
Fig. 7 is a block diagram illustrating a file transfer apparatus, which may be implemented as part or all of a router by software, hardware, or a combination of both, according to another example embodiment. The file transfer apparatus may include: a file receiving module 610, a file storing module 620 and a file sending module 630.
The file receiving module 610 is configured to receive a file sent by a sending device in an intranet to a receiving device in the intranet.
A file storage module 620 configured to store the file.
A file sending module 630, configured to send the file to the receiving device when the receiving device accesses the intranet.
Optionally, the file receiving module 610 is further configured to receive, in parallel, a file slice sent by a sending device in the intranet through at least two receiving threads, where the file slice is a file slice corresponding to the file sent by the sending device to a receiving device in the intranet; wherein each receiving thread is configured to receive a file slice.
Optionally, the apparatus further comprises: a request receiving module 642, an information query module 644, an information sending module 646, and a slice receiving module 648.
The request receiving module 642 is configured to receive a receiving query request with a file identifier sent by the sending device.
An information query module 644 configured to query location information of file slices that have been completely received in the file corresponding to the file identification.
An information sending module 646 configured to send the location information to the sending device.
A slice receiving module 648 configured to receive a file slice that is not completely received in the file transmitted by the transmitting device according to the location information.
Optionally, the file sending module 630 includes: a notification transmission sub-module 630a, a response reception sub-module 630b, and a file transmission sub-module 630 c.
The notification sending sub-module 630a is configured to send a file receiving notification to the receiving device when the receiving device accesses the intranet.
The answer receiving sub-module 630b is configured to receive a file receiving answer corresponding to the file receiving notification sent by the receiving device.
The file sending sub-module 630c is configured to send the file to the receiving device according to the file receiving response.
Optionally, the apparatus further comprises: a list sending module 652 and an identity receiving module 654.
A list sending module 652 configured to send, to the sending device, a device list including at least one device identifier, where the at least one device identifier includes at least one of a device identifier corresponding to a device currently connected to the router and a device identifier corresponding to a device already connected to the router.
An identifier receiving module 654, configured to receive a target device identifier sent by the sending device, and determine a device corresponding to the target device identifier as the receiving device;
wherein the target device identity is selected from the at least one device identity.
To sum up, the file transmission apparatus provided in this embodiment receives and stores, through the router, the file that is sent by the sending device in the intranet to the receiving device in the intranet, and sends the file to the receiving device when the receiving device accesses the intranet; the problems of low transmission efficiency, poor stability and no support for off-line transmission when the files are transmitted between the devices by point-to-point short-distance wireless transmission technologies such as Bluetooth, NFC and ZigBee in the related technology are solved; on one hand, compared with the wireless network connections, the transmission speed and the stability of the wired network connection or the Wi-Fi connection established between the equipment and the router are improved; on the other hand, in the process of forwarding the file sent by the sending device in the intranet to the receiving device in the intranet by the router, because the router has the function of storing the file, the transmission process supports offline transmission, and the transmission of the file can be realized without limiting the simultaneous connection of the sending device and the receiving device to the router.
In addition, the file transfer apparatus provided in this embodiment further receives, by the router, the multiple file slices transmitted by the sending device in parallel by using multiple threads, so that the file transfer efficiency between the sending device and the router is improved. In addition, the function of intermittent continuous transmission is realized.
Fig. 8 is a block diagram illustrating a file transfer apparatus, which may be implemented as part or all of a transmitting device by software, hardware, or a combination of both, according to another exemplary embodiment. The file transfer apparatus may include: a sending module 810 and an indicating module 820.
A sending module 810 configured to send a file to a router, where the sending device accesses the intranet through the router.
An indicating module 820 configured to indicate the receiving device corresponding to the file to the router, where the router is configured to send the file to the receiving device when the receiving device accesses the intranet.
To sum up, in the file transmission apparatus provided in this embodiment, when the sending device transmits a file to the receiving device in the intranet, the sending device sends the file to the router, and when the receiving device accesses the intranet, the router sends the file to the receiving device; the problems of low transmission efficiency, poor stability and no support for off-line transmission when the files are transmitted between the devices by point-to-point short-distance wireless transmission technologies such as Bluetooth, NFC and ZigBee in the related technology are solved; on one hand, compared with the wireless network connections, the transmission speed and the stability of the wired network connection or the Wi-Fi connection established between the equipment and the router are improved; on the other hand, in the process of forwarding the file sent by the sending device in the intranet to the receiving device in the intranet by the router, because the router has the function of storing the file, the transmission process supports offline transmission, and the transmission of the file can be realized without limiting the simultaneous connection of the sending device and the receiving device to the router.
Fig. 9 is a block diagram illustrating a file transfer apparatus, which may be implemented as part or all of a transmitting device by software, hardware, or a combination of both, according to another exemplary embodiment. The file transfer apparatus may include: a sending module 810 and an indicating module 820.
A sending module 810 configured to send a file to a router, where the sending device accesses the intranet through the router.
An indicating module 820 configured to indicate the receiving device corresponding to the file to the router, where the router is configured to send the file to the receiving device when the receiving device accesses the intranet.
Optionally, the sending module 810 includes: a slicing submodule 810a and a sending submodule 810 b.
The slicing submodule 810a is configured to slice the file into at least two file slices.
The sending submodule 810b configured to send the at least two file slices to the router in parallel through at least two sending threads;
wherein each send thread is used to send one file slice.
Optionally, the apparatus further comprises: a request sending module 832, an information receiving module 834, and a slice sending module 836.
A request sending module 832, configured to send a receiving query request carrying the file identifier corresponding to the file to the router.
An information receiving module 834 configured to receive the location information sent by the router, where the location information is location information of a file slice of the file that has been completely received by the router.
A slice sending module 836 configured to send, to the router, a file slice of the file that is not completely received by the router according to the location information.
Optionally, the indicating module 820 includes: a list receiving sub-module 820a, a list displaying sub-module 820b, a signal acquiring sub-module 820c and an identification transmitting sub-module 820 d.
The list receiving sub-module 820a is configured to receive a device list sent by the router and containing at least one device identifier, where the at least one device identifier includes at least one of a device identifier corresponding to a device currently connected to the router and a device identifier corresponding to a device already connected to the router.
The list display sub-module 820b is configured to display the device list.
The signal obtaining sub-module 820c is configured to obtain a selection signal corresponding to the target device identifier in the device list.
The identifier sending sub-module 820d is configured to send the target device identifier to the router, where the target device identifier is used to indicate a receiving device corresponding to the file.
To sum up, in the file transmission apparatus provided in this embodiment, when the sending device transmits a file to the receiving device in the intranet, the sending device sends the file to the router, and when the receiving device accesses the intranet, the router sends the file to the receiving device; the problems of low transmission efficiency, poor stability and no support for off-line transmission when the files are transmitted between the devices by point-to-point short-distance wireless transmission technologies such as Bluetooth, NFC and ZigBee in the related technology are solved; on one hand, compared with the wireless network connections, the transmission speed and the stability of the wired network connection or the Wi-Fi connection established between the equipment and the router are improved; on the other hand, in the process of forwarding the file sent by the sending device in the intranet to the receiving device in the intranet by the router, because the router has the function of storing the file, the transmission process supports offline transmission, and the transmission of the file can be realized without limiting the simultaneous connection of the sending device and the receiving device to the router.
In addition, in the file transmission apparatus provided in this embodiment, the sending device further slices the file to obtain a plurality of file slices, and transmits the plurality of file slices to the router in parallel by using multiple threads, so that the file transmission efficiency between the sending device and the router is improved. In addition, the function of intermittent continuous transmission is realized.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
FIG. 10 is a block diagram illustrating an apparatus in accordance with an example embodiment. For example, the apparatus 1000 may be a router.
Referring to fig. 10, the apparatus 1000 may include one or more of the following components: processing component 1002, memory 1004, power component 1006, input/output (I/O) interface 1008, and communications component 1016.
The processing component 1002 generally controls the overall operation of the apparatus 1000, such as address resolution, data transmission and reception, and flow control. The processing components 1002 may include one or more processors 1018 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 1002 may include one or more modules that facilitate interaction between processing component 1002 and other components.
The memory 1004 is configured to store various types of data to support operations at the apparatus 1000. Examples of such data include instructions for any application or method operating on device 1000, user data, and so forth. The memory 1004 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 1006 provides power to the various components of the device 1000. The power components 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 1000.
I/O interface 1008 provides an interface between processing component 1002 and peripheral interface modules.
The communication component 1016 is configured to facilitate communications between the apparatus 1000 and other devices in a wired or wireless manner. Device 1000 may establish a wireless network based on a communication standard, such as a WiFi network. In an exemplary embodiment, the communication component 1016 transmits the broadcast signal or broadcast associated information to the outside via a broadcast channel.
In an exemplary embodiment, the apparatus 1000 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 1004 comprising instructions, executable by the processor 1018 of the apparatus 1000 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein which, when executed by a processor 1018 of the apparatus 1000, enable the apparatus 1000 to perform the router-side file transfer method of the embodiments of fig. 2, 4A or 5 described above.
FIG. 11 is a block diagram illustrating an apparatus in accordance with another example embodiment. For example, the apparatus 1100 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 11, apparatus 1100 may include one or more of the following components: processing component 1102, memory 1104, power component 1106, multimedia component 1108, audio component 1110, input/output (I/O) interface 1112, sensor component 1114, and communications component 1116.
The processing component 1102 generally controls the overall operation of the device 1100, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 1102 may include one or more processors 1120 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 1102 may include one or more modules that facilitate interaction between the processing component 1102 and other components. For example, the processing component 1102 may include a multimedia module to facilitate interaction between the multimedia component 1108 and the processing component 1102.
The memory 1104 is configured to store various types of data to support operations at the apparatus 1100. Examples of such data include instructions for any application or method operating on device 1100, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1104 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A power component 1106 provides power to the various components of the device 1100. The power components 1106 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 1100.
The multimedia component 1108 includes a screen that provides an output interface between the device 1100 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1108 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 1100 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1110 is configured to output and/or input audio signals. For example, the audio component 1110 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 1100 is in operating modes, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1104 or transmitted via the communication component 1116. In some embodiments, the audio assembly 1110 further includes a speaker for outputting audio signals.
The I/O interface 1112 provides an interface between the processing component 1102 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 1114 includes one or more sensors for providing various aspects of state assessment for the apparatus 1100. For example, the sensor assembly 1114 may detect an open/closed state of the apparatus 1100, the relative positioning of components, such as a display and keypad of the apparatus 1100, the sensor assembly 1114 may also detect a change in position of the apparatus 1100 or a component of the apparatus 1100, the presence or absence of user contact with the apparatus 1100, orientation or acceleration/deceleration of the apparatus 1100, and a change in temperature of the apparatus 1100. The sensor assembly 1114 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1114 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1114 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1116 is configured to facilitate wired or wireless communication between the apparatus 1100 and other devices. The apparatus 1100 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1116 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1116 also includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 1100 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 1104 comprising instructions, executable by the processor 1120 of the apparatus 1100 to perform the method described above is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions, when executed by a processor of the apparatus 1100, enable the apparatus 1100 to perform a file transfer method on the sending device side as in the embodiments of fig. 3, 4A or 5 described above.
FIG. 12 is a block diagram illustrating a file transfer system in accordance with an exemplary embodiment. The file transfer system may include a router 1220, a transmitting device 1240, and a receiving device 1260. The router 1220 is connected to the transmitting device 1240 and the receiving device 1260 through a wireless network or a wired network, respectively. Wherein, the wireless network is a Wi-Fi network.
Router 1220 may include a file transfer device as provided in the embodiments shown in fig. 6 or 7; the transmitting apparatus 1240 may include a file transfer device as provided in the embodiments shown in fig. 8 or fig. 9. Or,
router 1220 may include the apparatus provided in the embodiment shown in fig. 10; the transmitting apparatus 1240 may include the devices provided in the embodiment shown in fig. 11.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (12)
1. A file transmission method is applied to a router provided with an external memory, and comprises the following steps:
receiving a file slice sent by sending equipment in an intranet where the router is located in parallel through at least two receiving threads, wherein the file slice is a file slice corresponding to a file sent to receiving equipment in the intranet by a client running on the sending equipment and corresponding to the router, and each receiving thread is used for receiving one file slice;
storing the file;
when the receiving equipment is accessed to the intranet, the file is sent to the receiving equipment through a client running on the receiving equipment and corresponding to the router;
the method further comprises the following steps: sending a device list containing at least one device identifier to the sending device, wherein the at least one device identifier comprises a device identifier corresponding to a device currently connected with the router and a device identifier corresponding to a device which is connected but not currently connected with the router;
receiving a target device identifier sent by the sending device, and determining a device corresponding to the target device identifier as the receiving device;
wherein the target device identity is selected from the at least one device identity.
2. The method of claim 1, further comprising:
receiving a receiving query request which is sent by the sending equipment and carries a file identifier;
inquiring the position information of the file slice which is completely received in the file corresponding to the file identification;
transmitting the location information to the transmitting device;
and receiving the file slices which are not completely received in the file and are sent by the sending equipment according to the position information.
3. The method according to claim 1, wherein transmitting the file to the receiving device when the receiving device accesses the intranet comprises:
when the receiving equipment is accessed to the intranet, sending a file receiving notice to the receiving equipment;
receiving a file receiving response corresponding to the file receiving notification sent by the receiving equipment;
and sending the file to the receiving equipment according to the file receiving response.
4. A file transmission method is applied to a sending device, and comprises the following steps:
slicing the file to obtain at least two file slices;
after accessing an intranet through a router provided with an external memory, sending at least two file slices to the router in parallel through at least two sending threads on an operating client corresponding to the router, wherein each sending thread is used for sending one file slice;
indicating receiving equipment corresponding to the file to the router, wherein the router is used for sending the file to the receiving equipment through a client running on the receiving equipment and corresponding to the router when the receiving equipment is accessed to the intranet;
the indicating, to the router, the receiving device to which the file corresponds includes:
receiving a device list which is sent by the router and contains at least one device identifier, wherein the at least one device identifier comprises a device identifier corresponding to a device which is currently connected with the router and a device identifier corresponding to a device which is connected but not currently connected with the router;
displaying the equipment list;
acquiring a selection signal corresponding to a target device identifier in the device list;
and sending the target equipment identification to the router, wherein the target equipment identification is used for indicating receiving equipment corresponding to the file.
5. The method of claim 4, further comprising:
sending a receiving query request carrying a file identifier corresponding to the file to the router;
receiving position information sent by the router, wherein the position information is position information of a file slice in the file which is completely received by the router;
and sending the file slices which are not completely received by the router in the file to the router according to the position information.
6. A file transfer apparatus for use in a router provided with an external memory, the apparatus comprising:
the file receiving module is configured to receive a file slice sent by sending equipment in an intranet where the router is located in parallel through at least two receiving threads, the file slice is a file slice corresponding to a file sent to the receiving equipment in the intranet by a client running on the sending equipment and corresponding to the router, and each receiving thread is used for receiving one file slice;
a file storage module configured to store the file;
the file sending module is configured to send the file to the receiving device through a client running on the receiving device and corresponding to the router when the receiving device accesses the intranet;
the device further comprises:
a list sending module configured to send, to the sending device, a device list including at least one device identifier, where the at least one device identifier includes a device identifier corresponding to a device currently connected to the router and a device identifier corresponding to a device that is connected but not currently connected to the router;
the identification receiving module is configured to receive the target equipment identification sent by the sending equipment and determine the equipment corresponding to the target equipment identification as the receiving equipment;
wherein the target device identity is selected from the at least one device identity.
7. The apparatus of claim 6, further comprising:
a request receiving module configured to receive a receiving query request carrying a file identifier sent by the sending device;
the information query module is configured to query the position information of the file slice which is completely received in the file corresponding to the file identification;
an information transmitting module configured to transmit the location information to the transmitting device;
a slice receiving module configured to receive a file slice that is not completely received in the file transmitted by the transmitting device according to the location information.
8. The apparatus of claim 6, wherein the file sending module comprises: the system comprises a notification sending submodule, a response receiving submodule and a file sending submodule;
the notification sending submodule is configured to send a file receiving notification to the receiving device when the receiving device accesses the intranet;
the response receiving submodule is configured to receive a file receiving response corresponding to the file receiving notification sent by the receiving device;
the file sending submodule is configured to send the file to the receiving device according to the file receiving response.
9. A file transfer apparatus used in a transmission device, the apparatus comprising:
the slicing submodule is configured to slice the file to obtain at least two file slices;
the sending submodule is configured to send the at least two file slices to the router in parallel through at least two sending threads on an operating client corresponding to the router after the router provided with an external memory is accessed into an internal network, wherein each sending thread is used for sending one file slice;
an indicating module configured to indicate receiving equipment corresponding to the file to the router, where the router is used to send the file to the receiving equipment when the receiving equipment accesses the intranet, and the receiving equipment runs a client corresponding to the router;
the indication module comprises: the device comprises a list receiving submodule, a list displaying submodule, a signal acquiring submodule and an identification sending submodule;
the list receiving submodule is configured to receive a device list which is sent by the router and contains at least one device identifier, wherein the at least one device identifier comprises a device identifier corresponding to a device which is currently connected with the router and a device identifier corresponding to a device which is connected but not currently connected with the router;
the list display submodule is configured to display the device list;
the signal acquisition submodule is configured to acquire a selection signal corresponding to a target device identifier in the device list;
the identifier sending submodule is configured to send the target device identifier to the router, where the target device identifier is used to indicate a receiving device corresponding to the file.
10. The apparatus of claim 9, further comprising:
a request sending module configured to send a query receiving request carrying a file identifier corresponding to the file to the router;
an information receiving module configured to receive location information sent by the router, where the location information is location information of a file slice of the file that has been completely received by the router;
and the slice sending module is configured to send the file slices which are not completely received by the router in the files to the router according to the position information.
11. A file transfer apparatus used in a router provided with an external memory, comprising:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to:
receiving a file slice sent by sending equipment in an intranet where the router is located in parallel through at least two receiving threads, wherein the file slice is a file slice corresponding to a file sent to receiving equipment in the intranet by a client running on the sending equipment and corresponding to the router, and each receiving thread is used for receiving one file slice;
storing the file;
when the receiving equipment is accessed to the intranet, the file is sent to the receiving equipment through a client running on the receiving equipment and corresponding to the router;
the processor is further configured to: sending a device list containing at least one device identifier to the sending device, wherein the at least one device identifier comprises a device identifier corresponding to a device currently connected with the router and a device identifier corresponding to a device which is connected but not currently connected with the router;
receiving a target device identifier sent by the sending device, and determining a device corresponding to the target device identifier as the receiving device;
wherein the target device identity is selected from the at least one device identity.
12. A file transfer apparatus, for use in a transmitting device, comprising:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to:
slicing the file to obtain at least two file slices;
after accessing an intranet through a router provided with an external memory, sending at least two file slices to the router in parallel through at least two sending threads on an operating client corresponding to the router, wherein each sending thread is used for sending one file slice;
indicating receiving equipment corresponding to the file to the router, wherein the router is used for sending the file to the receiving equipment when the receiving equipment is accessed to the intranet, and the receiving equipment runs a client corresponding to the router;
the processor is further configured to:
receiving a device list which is sent by the router and contains at least one device identifier, wherein the at least one device identifier comprises a device identifier corresponding to a device which is currently connected with the router and a device identifier corresponding to a device which is connected but not currently connected with the router;
displaying the equipment list;
acquiring a selection signal corresponding to a target device identifier in the device list;
and sending the target equipment identification to the router, wherein the target equipment identification is used for indicating receiving equipment corresponding to the file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510137040.5A CN104796460B (en) | 2015-03-26 | 2015-03-26 | Document transmission method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510137040.5A CN104796460B (en) | 2015-03-26 | 2015-03-26 | Document transmission method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104796460A CN104796460A (en) | 2015-07-22 |
CN104796460B true CN104796460B (en) | 2019-03-22 |
Family
ID=53560968
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510137040.5A Active CN104796460B (en) | 2015-03-26 | 2015-03-26 | Document transmission method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104796460B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107623706A (en) * | 2016-07-13 | 2018-01-23 | 中兴通讯股份有限公司 | Document transmission method and device |
CN106412001A (en) * | 2016-07-26 | 2017-02-15 | 北京小米移动软件有限公司 | Method and device for transmitting file |
CN107528926A (en) * | 2017-10-11 | 2017-12-29 | 郑州云海信息技术有限公司 | A kind of file uploading method and system |
CN108429799B (en) * | 2018-03-01 | 2021-11-16 | 北京天融信网络安全技术有限公司 | Parallel transmission method and device for batch files and storage medium |
CN112491990B (en) * | 2020-11-17 | 2021-08-10 | 中科三清科技有限公司 | Hybrid cloud network data transmission method and device, electronic equipment and storage medium |
CN116192816B (en) * | 2022-06-01 | 2024-08-13 | 中兴通讯股份有限公司 | Data transmission method, transmission server, reception server, and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6085251A (en) * | 1998-04-02 | 2000-07-04 | The United States Of America As Represented By The Secretary Of The Air Force | Implementing a parallel file transfer protocol |
CN101656756A (en) * | 2009-09-17 | 2010-02-24 | 中国科学院声学研究所 | File transferring method with self-adaptive control of transmission speed and system thereof |
CN102035720A (en) * | 2009-09-24 | 2011-04-27 | 华为技术有限公司 | Data transmission method and system |
CN102088394A (en) * | 2009-12-08 | 2011-06-08 | 北京大学 | Method and device for transmission of message file |
CN102945131A (en) * | 2012-09-29 | 2013-02-27 | 华为技术有限公司 | Azimuth-based data transmission method and device |
CN103475568A (en) * | 2013-08-21 | 2013-12-25 | 黄松辉 | Network visible dialogue method and system |
CN103532854A (en) * | 2013-10-22 | 2014-01-22 | 迈普通信技术股份有限公司 | Storage and forwarding method and device of message |
-
2015
- 2015-03-26 CN CN201510137040.5A patent/CN104796460B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6085251A (en) * | 1998-04-02 | 2000-07-04 | The United States Of America As Represented By The Secretary Of The Air Force | Implementing a parallel file transfer protocol |
CN101656756A (en) * | 2009-09-17 | 2010-02-24 | 中国科学院声学研究所 | File transferring method with self-adaptive control of transmission speed and system thereof |
CN102035720A (en) * | 2009-09-24 | 2011-04-27 | 华为技术有限公司 | Data transmission method and system |
CN102088394A (en) * | 2009-12-08 | 2011-06-08 | 北京大学 | Method and device for transmission of message file |
CN102945131A (en) * | 2012-09-29 | 2013-02-27 | 华为技术有限公司 | Azimuth-based data transmission method and device |
CN103475568A (en) * | 2013-08-21 | 2013-12-25 | 黄松辉 | Network visible dialogue method and system |
CN103532854A (en) * | 2013-10-22 | 2014-01-22 | 迈普通信技术股份有限公司 | Storage and forwarding method and device of message |
Also Published As
Publication number | Publication date |
---|---|
CN104796460A (en) | 2015-07-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10237901B2 (en) | Method and apparatus for connecting with controlled smart device, and storage medium | |
EP3029889B1 (en) | Method for instant messaging and device thereof | |
CN104796460B (en) | Document transmission method and device | |
JP6383109B2 (en) | Network connection method, network connection device, terminal, communication device, network connection system, program, and recording medium | |
US11792659B2 (en) | Method and device for using network slice | |
CN104602112A (en) | Configuration method and device | |
CN104660685A (en) | Method and device for obtaining equipment information | |
CN109451877B (en) | Unmanned aerial vehicle control method and device, unmanned aerial vehicle and remote control equipment | |
CN107071862B (en) | Account number binding method and device and intelligent equipment | |
CN108476446B (en) | Method, device, equipment and base station for realizing full duplex transmission in cellular network | |
US20150119011A1 (en) | Information processing method and device | |
US11503642B2 (en) | Method and device for determining an uplink-downlink switching point | |
JP2017514428A (en) | Network connection method, apparatus, program, and recording medium | |
CN111654354B (en) | Method and device for detecting maximum transmission unit MTU and storage medium | |
US20220116808A1 (en) | Measurement reporting method and apparatus | |
CN104301308A (en) | Communication control method and device | |
US11178699B2 (en) | Random access method and apparatus, user equipment, and computer readable storage medium | |
CN105517078A (en) | Network connection switching method and device | |
CN109040651B (en) | Video communication method and device | |
US11856571B2 (en) | Information feedback method and apparatus | |
CN106454916B (en) | Wireless local area network connection method and device | |
CN105376318A (en) | File transmission method, device and system | |
US20230269031A1 (en) | Method and device for hybrid automatic repeat request (harq) transmission, and storage medium | |
CN110933773B (en) | Link monitoring method and device | |
WO2017024739A1 (en) | Method of transmitting file and device utilizing same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |