CN105472038B - File transmission control method, device and system - Google Patents

File transmission control method, device and system Download PDF

Info

Publication number
CN105472038B
CN105472038B CN201610011272.0A CN201610011272A CN105472038B CN 105472038 B CN105472038 B CN 105472038B CN 201610011272 A CN201610011272 A CN 201610011272A CN 105472038 B CN105472038 B CN 105472038B
Authority
CN
China
Prior art keywords
data
equipment
data receiving
file
data sending
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
Application number
CN201610011272.0A
Other languages
Chinese (zh)
Other versions
CN105472038A (en
Inventor
李政威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610011272.0A priority Critical patent/CN105472038B/en
Publication of CN105472038A publication Critical patent/CN105472038A/en
Application granted granted Critical
Publication of CN105472038B publication Critical patent/CN105472038B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method, a device and a system for controlling file transmission. Wherein, the method comprises the following steps: the data sending equipment establishes a first connection with the data receiving equipment through a first communication device, sends a pairing request through the first connection and receives response information returned by the data receiving equipment; the data sending equipment starts a second communication device to establish a second connection with the data receiving equipment according to the response information, and sends the file to be transmitted to the data receiving equipment through the second connection; and after the data transmission equipment successfully transmits the file to be transmitted, closing the second communication device. The invention solves the technical problem that the power consumption of the mobile equipment is larger because the transmission device for realizing the file transmission in the mobile equipment consumes larger power consumption when the files are transmitted between the mobile equipment in a short distance in the related technology.

Description

File transmission control method, device and system
Technical Field
The present invention relates to the field of communications, and in particular, to a method, an apparatus, and a system for controlling file transfer.
Background
With the rapid development of communication technology, the mobile devices can realize the short-distance wireless file transmission. In the prior art, file transmission between mobile devices can be performed through various network protocols, for example, bluetooth, WiFi, and the like. When files are transmitted between mobile devices through bluetooth, the file transmission speed is too slow, which is not particularly suitable for transmission of larger files. When files are transmitted between the mobile devices through WiFi, the mobile devices need to be always started with WiFi functions, although file transmission speed is improved, WiFi power consumption is large, power consumption of the mobile devices is increased, standby time of the mobile devices is shortened, especially when no files are transmitted, the mobile devices consume large power consumption of the WiFi, standby time of the mobile devices is greatly shortened, and use experience of users is seriously reduced.
Aiming at the problem that in the prior art, when files are transmitted between mobile devices in a short distance, a transmission device for transmitting the files in the mobile devices consumes large power consumption, so that the power consumption of the mobile devices is large, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the invention provides a method, a device and a system for controlling file transmission, which are used for at least solving the technical problem that when files are transmitted between mobile devices in a short distance in the related art, the transmission device used for transmitting the files in the mobile devices consumes larger power consumption, so that the power consumption of the mobile devices is larger.
According to an aspect of an embodiment of the present invention, a method for controlling file transfer is provided, including: the data sending equipment establishes a first connection with the data receiving equipment through a first communication device, sends a pairing request through the first connection and receives response information returned by the data receiving equipment; the data sending equipment starts a second communication device to establish a second connection with the data receiving equipment according to the response information, and sends the file to be transmitted to the data receiving equipment through the second connection; and after the data transmission equipment successfully transmits the file to be transmitted, closing the second communication device.
According to another aspect of the embodiments of the present invention, there is also provided a method for controlling file transfer, including: the data receiving equipment establishes a first connection with the data sending equipment through a first communication device, receives a pairing request sent by the data sending equipment through the first connection and returns response information to the pairing request; the data receiving equipment starts a second communication device to establish a second connection with the data sending equipment, and receives the file transmitted by the data sending equipment through the second connection; after the data receiving device successfully receives the file, the second communication means is closed.
According to another aspect of the embodiments of the present invention, there is also provided a file transfer control system, including: a data transmission apparatus comprising: the first sending device and the second sending device are used for initiating a connection request through the first sending device; a data receiving apparatus comprising: first receiving means and second receiving means for receiving a connection request through the first receiving means; after the first connection between the data sending equipment and the data receiving equipment is successfully established, the data sending equipment starts a second sending device, the data receiving equipment starts a second receiving device, a second connection is established between the data sending equipment and the data receiving equipment, the second sending device is closed after the data sending equipment successfully sends the file to be transmitted to the data receiving equipment through the second connection, and the second receiving device is closed after the data receiving equipment successfully receives the file through the second connection.
According to another aspect of the embodiments of the present invention, there is also provided a file transfer control apparatus, including: the establishing module is used for establishing a first connection between the data sending equipment and the data receiving equipment through the first communication device, sending a pairing request through the first connection and receiving response information returned by the data receiving equipment; the sending module is used for starting the second communication device by the data sending equipment according to the response information to establish second connection with the data receiving equipment, and the data sending equipment sends the file to be transmitted to the data receiving equipment through the second connection; and the first closing module is used for closing the second communication device after the data sending equipment successfully sends the file to be transmitted.
According to another aspect of the embodiments of the present invention, there is also provided a file transfer control apparatus, including: the establishing module is used for establishing a first connection between the data receiving equipment and the data sending equipment through the first communication device, receiving a pairing request sent by the data sending equipment through the first connection and returning response information to the pairing request; the starting module is used for starting a second communication device at the data receiving equipment to establish a second connection with the data sending equipment and receiving the file transmitted by the data sending equipment through the second connection; and the first closing module is used for closing the second communication device after the data receiving equipment successfully receives the file.
In the embodiment of the invention, a data sending device is adopted to establish a first connection with a data receiving device through a first communication device, and a pairing request is sent through the first connection and response information returned by the data receiving device is received; the data sending equipment starts a second communication device to establish a second connection with the data receiving equipment according to the response information, and sends the file to be transmitted to the data receiving equipment through the second connection; after the data sending equipment successfully sends the file to be transmitted, the second communication device is closed, the second communication device is effectively controlled to be opened and closed in the file transmission process, the second communication device is opened only after the data sending equipment and the data receiving equipment are successfully connected, and the second communication equipment is immediately closed after the data sending equipment successfully sends the file to be transmitted, so that the purpose that only the first communication device consumes energy in the data sending equipment in a non-transmission scene is achieved, the technical effect of reducing the power consumption of the data sending equipment is achieved, and the technical problem that the power consumption of the mobile equipment is large due to the fact that a transmission device used for achieving file transmission in the mobile equipment consumes large power when the file is transmitted between the mobile equipment in a short distance in the related technology is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a computer terminal of a file transfer control method according to an embodiment of the present invention;
fig. 2 is a flowchart of a file transfer control method according to a first embodiment of the present invention;
FIG. 3 is a flowchart of an alternative file transfer control method according to a first embodiment of the present invention;
FIG. 4 is a flowchart of another alternative file transfer control method according to the first embodiment of the present invention;
fig. 5 is a flowchart of a file transfer control method according to a second embodiment of the present invention;
FIG. 6 is a flowchart of an alternative file transfer control method according to the second embodiment of the present invention;
fig. 7 is a schematic view of a control device of file transfer according to a third embodiment of the present invention;
FIG. 8 is a schematic diagram of an alternative file transfer control apparatus according to a third embodiment of the present invention;
FIG. 9 is a schematic diagram of another alternative file transfer control apparatus according to a third embodiment of the present invention;
FIG. 10 is a schematic diagram of another alternative file transfer control apparatus according to a third embodiment of the present invention;
FIG. 11 is a schematic diagram of another alternative file transfer control apparatus according to a third embodiment of the present invention;
fig. 12 is a schematic view of a control apparatus of file transfer according to a fourth embodiment of the present invention;
FIG. 13 is a schematic diagram of an alternative file transfer control apparatus according to a fourth embodiment of the present invention;
FIG. 14 is a schematic view of another alternative file transfer control apparatus according to a fourth embodiment of the present invention;
FIG. 15 is a schematic diagram of a control system for file transfer according to an embodiment of the present invention;
FIG. 16 is a schematic diagram of an alternative file transfer control system according to an embodiment of the present invention; and
fig. 17 is a block diagram of a computer terminal according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
First, some terms or terms appearing in the description of the embodiments of the present invention are applicable to the following explanations:
bluetooth is a wireless technology standard, and can realize short-distance data exchange among fixed equipment, mobile equipment and a building personal area network.
Near Field Communication (NFC) is an integration of non-contact radio frequency identification and interconnection technologies, and an inductive card reader, an inductive card and a point-to-point function are combined on a single chip, so that identification and data exchange can be performed with compatible devices in a short distance.
The first communication device is mainly used for establishing a connection relation between the data sending equipment and the data receiving equipment.
And the second communication device is mainly used for transmitting files between the data sending equipment and the data receiving equipment.
The third communication device may be configured to establish a connection relationship between the data sending device and the data receiving device, or may be configured to transmit a file between the data sending device and the data receiving device.
Example 1
There is also provided, in accordance with an embodiment of the present invention, a method embodiment of a method for controlling file transfer, it being noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
The method provided by the first embodiment of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking an example of the operation on a computer terminal, fig. 1 is a hardware structure block diagram of a computer terminal of a file transmission control method according to an embodiment of the present invention. As shown in fig. 1, the computer terminal 10 may include one or more (only one shown) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the electronic device. For example, the computer terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store software programs and modules of application software, such as program instructions/modules corresponding to the file transfer control method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, implementing the file transfer control method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 can be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
Under the above operating environment, the present application provides a method for controlling file transfer as shown in fig. 2. Fig. 2 is a flowchart of a file transfer control method according to a first embodiment of the present invention.
As shown in fig. 2, the file transfer control method of this embodiment may include the steps of:
step S12, the data sending device establishes a first connection with the data receiving device through the first communication means, sends a pairing request through the first connection and receives response information returned by the data receiving device;
step S14, the data sending device starts a second communication device to establish a second connection with the data receiving device according to the response information, and sends the file to be transmitted to the data receiving device through the second connection;
step S16, after the data sending device successfully sends the file to be transmitted, the second communication device is closed.
Through the steps S12 to S16, the second communication device is turned on only after the connection between the data sending device and the data receiving device is successfully established by effectively controlling the turning on and off of the second communication device during the file transmission process, and the second communication device is turned off immediately after the data sending device successfully sends the file to be transmitted, so that the purpose that only the first communication device consumes energy in the data sending device in a non-transmission scene is achieved, thereby achieving the technical effect of reducing the power consumption of the data sending device, and further solving the technical problem that the power consumption of the mobile device is large because the transmission device for transmitting the file in the mobile device consumes large power when the file is transmitted between the mobile devices at a short distance in the related art.
In the technical solution provided in step S12, the data sending device and the data receiving device may be a smart phone, a tablet computer, or other mobile devices. The type or model of the data sending device and the data receiving device may be the same or different. The data sending equipment and the data receiving equipment both comprise first communication devices, and the first communication devices are mainly used for establishing the connection relationship between the data sending equipment and the data receiving equipment. When the data sending device detects a data sending request, a first connection can be established with the data receiving device through the first communication device, the data sending device can send a pairing request to the data receiving device through the first connection, and the data receiving device responds to the pairing request sent by the data sending device after receiving the pairing request and feeds back response information to the data sending device. The first communication device may be a bluetooth chip, an NFC chip, or a WIFI chip, or the like. Bluetooth is a wireless technology standard that enables short-range data exchange between fixed devices, mobile devices, and building personal area networks. Near Field Communication (NFC) is integrated by non-contact radio frequency identification and interconnection technologies, and combines functions of an inductive card reader, an inductive card and a point-to-point on a single chip, so as to perform identification and data exchange with compatible devices in a short distance. The communication distance and the transmission rate of the Bluetooth and the NFC are different, the communication distance of the Bluetooth is about 10 meters, the transmission rate is 721kbps, the Bluetooth works on a frequency band of 2.4GHz, and one-to-many data transmission and voice communication are supported; the communication distance of NFC is about 20 cm, the transmission rate is 106kbps, 212kbps or 424kbps, and the NFC works on a frequency band of 13.56 MHz. The transmission rate and the communication distance of the WIFI chip are far higher than those of the Bluetooth chip and the NFC chip, but the power consumption of the WIFI chip is larger than those of the Bluetooth chip and the NFC chip. In order to reduce the power consumption of the data sending device, the data sending device preferably initiates the establishment of the first connection with the data receiving device using a low-speed, low-power consumption communication module, such as a bluetooth chip or an NFC chip.
Optionally, in this embodiment, the data sending device may establish the first connection with one or more data receiving devices at the same time, and when the data sending device establishes the first connection with multiple data receiving devices at the same time, the data sending device stores the identifiers of the multiple data receiving devices, so that the data sending device can distinguish different data receiving devices quickly and accurately.
The data sending device establishes a first connection with the data receiving device through the first communication device, the data sending device can send a pairing request to the data receiving device through the first connection, the data receiving device responds to the pairing request, and the specific response process can be matching of the pairing password. Optionally, if the connection relationship between the data sending device and the data receiving device is successfully established, the data sending device stores the connection relationship between the data sending device and the data receiving device, so that the connection relationship between the data sending device and the data receiving device does not need to be repeatedly established when subsequent file transmission is performed between the data sending device and the data receiving device, thereby effectively saving the file transmission time and improving the file transmission efficiency.
Taking the first communication device as a bluetooth chip as an example, a process of establishing a connection between the smart phone 1 and the smart phone 2 is described, where the smart phone 1 is used as a data sending device, and the smart phone 2 is used as a data receiving device, specifically: the smart phone 1 and the smart phone 2 both have bluetooth modules, and when the smart phone 1 detects a data transmission request, the bluetooth modules are turned on to search for nearby mobile devices and transmit pairing requests to the mobile devices. The smart phone 2 also starts the bluetooth module when detecting the pairing request sent by the smart phone 1. When the connection between the smart phone 1 and the smart phone 2 is established through the respective bluetooth modules, the smart phone 1 sends verification information to the smart phone 2, the verification information may be a pairing password, and when the pairing password of the smart phone 2 is matched with the pairing password of the smart phone 1, the establishment of the connection relationship between the smart phone 1 and the smart phone 2 is successful.
In the scheme provided in step S14, after the data sending device receives the response information returned by the data receiving device according to the pairing request, that is, after the data sending device and the data receiving device establish the first connection successfully, the first communication apparatus generates a trigger signal, where the trigger signal is a signal for triggering the data sending device to turn on the second communication apparatus. The data sending equipment can trigger the data sending equipment to start the second communication device according to the trigger signal. The data sending equipment can establish a second connection with the data receiving equipment by starting the second communication device, wherein the second connection can realize that the data sending equipment sends the file to be transmitted to the data receiving equipment.
The data sending equipment and the data receiving equipment are both provided with second communication devices, and the second communication devices are mainly used for establishing second connection between the data sending equipment and the data receiving equipment so as to facilitate file transmission. The second communication device in this embodiment may be a bluetooth chip, an NFC chip, or a WIFI chip, and since the transmission rate of the WIFI chip is much greater than that of the bluetooth chip or the NFC chip, the file transmission control method in this embodiment preferentially selects the second communication device as a high-speed and high-power-consumption communication module, for example, the WIFI chip, so as to achieve the technical effect of improving the file transmission efficiency.
In the file transfer control method of this embodiment, when the first communication device is used to establish the first connection between the data transmission apparatus and the data reception apparatus, the data transmission apparatus and the data reception apparatus only turn on the first communication device, and the second communication device is in a turned-off state. Only after the data sending device and the data receiving device establish the first connection successfully, the data sending device and the data receiving device start the second communication device to establish a second connection by using the second communication device, and files are transmitted between the data sending device and the data receiving device through the second connection. In the file transfer control method of the embodiment, only the first communication device is turned on and the second communication device is turned off in a non-file transfer scenario, and the second communication device is turned on in a file transfer scenario, so that the file transfer rate can be increased, and the power consumption of the data sending device and the data receiving device can be reduced.
The file to be transmitted sent by the data sending device can be a data file, a voice file or a video file, and the file to be transmitted is stored in a memory of the data sending device in the form of a data packet. Optionally, the data sending device sends the file to be transmitted to the data receiving device by copying the file to be transmitted in the memory, sending the copied file of the file to be transmitted to the data receiving device, and after the file to be transmitted is sent to the data receiving device, the file to be transmitted still exists in the data sending device, so that it can be ensured that the file to be transmitted can be sent to the data receiving device again once under the condition that the file to be transmitted fails to be sent.
Optionally, the data sending device may send the file to be transmitted to the data receiving device through the second connection, where one or more data receiving devices that establish the second connection relationship with the data sending device may be used. When the data sending device sends the file to be transmitted to the plurality of data receiving devices, the data sending device may adopt a serial transmission mode or a concurrent mode. The serial transmission mode is that the data sending equipment repeatedly sends files to be transmitted to the plurality of data receiving equipment one by one, and the concurrent transmission mode is that the data sending equipment simultaneously sends the files to be transmitted to the plurality of data receiving equipment. The file to be transmitted is transmitted to the data receiving equipment in a serial transmission mode, so that network resources are saved, but the transmission rate is low; the transmission rate of the file to be transmitted to the data receiving equipment is high by adopting a concurrent mode, but the occupied network resource is large.
In the file transfer control method of this embodiment, a first communication device is used to establish a first connection between a data sending device and a data receiving device, a second communication device is used to establish a second connection between the data sending device and the data receiving device, and a file is transferred between the data sending device and the data receiving device through the second connection.
In the scheme provided in step S16, the data sending apparatus will close the second communication device immediately after detecting that all the files to be transmitted have been sent to the data receiving apparatus. Optionally, the data sending device sends the file to be transmitted to the data receiving device by dividing the data packet of the file to be transmitted into a plurality of sub data packets, labeling each sub data packet in sequence, and storing the labels into a label set. The data sending equipment sends the plurality of sub data packets to the data receiving equipment in sequence according to the label sequence, in the sending process, the label of each sub data packet is deleted from the label set when the data sending equipment sends one sub data packet, and when the data sending equipment detects that the label set is an empty set, the file to be transmitted is completely sent to the data receiving equipment.
After the data sending device sends the file to be transmitted to the data receiving device, it cannot be said that the file received by the data receiving device is necessarily complete and effective, and the data receiving device is required to detect the received file. Optionally, the data receiving device may detect whether the file to be transmitted is successfully transmitted from the data transmitting device to the data receiving device by determining whether the labels of the sub data packets form a complete label set, and whether the sequence of the sub data packets is correct. And if the data receiving equipment detects that the received file is complete and effective, feeding back a confirmation message to the data sending equipment, wherein the confirmation message is used for notifying the data sending equipment that the file to be transmitted is successfully sent. If the data receiving device detects that the received file is not complete and effective, a failure message is fed back to the data sending device, the failure message is used for notifying the data sending device that the file to be transmitted fails to be sent, and at the moment, the data sending device resends the file to be transmitted to the data receiving device through the second connection.
After the data sending equipment receives the confirmation message fed back by the data receiving equipment, the data sending equipment immediately closes the second communication device, and the purpose of reducing the power consumption of the data sending equipment in a non-file transmission scene is achieved, so that the standby time of the data sending equipment is prolonged, and the technical effect of user experience is improved.
Through the above steps S12 to S16, when initiating the connection with the data receiving apparatus, the data sending apparatus only turns on the first communication device and turns off the second communication device, so that the power consumption of the data sending apparatus is only the first communication device, thereby reducing the power consumption of the data sending apparatus (since the power consumption of the first communication device is less than the power consumption of the second communication device). When the data sending device sends the file to be transmitted to the data receiving device, the data sending device starts the second communication device, so that the file transmission rate can be increased (because the transmission rate of the second communication device is greater than that of the first communication device). Through the embodiment, the technical problem that the power consumption of the mobile equipment is high due to the fact that a transmission device used for achieving file transmission in the mobile equipment consumes high power consumption when files are transmitted between the mobile equipment in a close range in the related technology is solved, and therefore the technical effects of reducing the power consumption of data sending equipment and improving the use experience of a user are achieved.
As an optional embodiment, after the step S12, that the data sending device establishes the first connection with the data receiving device successfully, the method for controlling file transfer of this embodiment may further include: the data transmission apparatus turns off the first communication device until the first communication device is turned back on after receiving the data transmission request next time.
The file transfer control method according to this embodiment may open the first communication device only when the data transmission apparatus detects a data transmission request, and immediately close the first communication device after establishing the first connection between the data transmission apparatus and the data reception apparatus using the first communication device. According to the file transmission control method, the second communication device is controlled to be started when the file to be transmitted is transmitted between the data sending device and the data receiving device, and then on the basis of reducing the power consumption of the device, the first communication device is controlled to be started only when the data sending device detects the data sending request, so that the power consumption of the data sending device can be further reduced, the standby time of the data sending device is prolonged, and the technical effect of using experience of a user is improved.
As an optional embodiment, the data sending device and the data receiving device may further include a third communication device, where the third communication device may serve as a replacement device for the first communication device and the second communication device when a failure occurs, and the third communication device in this embodiment may be used to establish a connection relationship between the data sending device and the data receiving device, or may be used to transfer a file between the data sending device and the data receiving device. Alternatively, the third communication device may be an NFC chip, a WIFI chip, or the like.
Before the step S12, where the data sending apparatus establishes the first connection with the data receiving apparatus through the first communication device, the method for controlling file transfer of this embodiment may further include: and if the first communication device is detected to be in failure, the data sending equipment is switched to use the second communication device or the third communication device to establish the first connection with the data receiving equipment. The second communication device in this embodiment may be used to establish a first connection relationship between the data transmitting apparatus and the data receiving apparatus, in addition to establishing the second connection between the data transmitting apparatus and the data receiving apparatus, so that the second communication device may also be used as a replacement device for the first communication device when a failure occurs.
After the data sending apparatus starts the second communication device to establish the second connection with the data receiving apparatus in step S14, the method for controlling file transfer in this embodiment may further include: and if the second communication device is detected to be in fault, the data sending equipment is switched to use a third communication device to establish second connection with the data receiving equipment.
According to the file transmission control method, the replacement scheme of the first connection establishment process and the second connection establishment process of the data sending device and the data receiving device is added, the first connection establishment process and/or the second connection establishment process between the data sending device and the data receiving device are/is prevented from being influenced when the first communication device and/or the second communication device break down, and the reliability of file transmission is fully guaranteed. Meanwhile, the file transmission control method of the embodiment selects the communication device used in the process of establishing the first connection and the second connection between the data sending device and the data receiving device in an alternative mode, so that the power consumption of the data sending device and the power consumption of the data receiving device can be effectively reduced, the standby time is prolonged, and the use experience of a user is improved.
As an optional embodiment, in this embodiment, the first communication device is a low-speed low-power consumption communication module, and the second communication device is a high-speed high-power consumption communication module, where the first communication device may include any one of the following devices: bluetooth chip, NFC chip, second communication device can include any one of following device: NFC chip and WIFI chip, the third communication device can include any one of the following devices: NFC chip and WIFI chip.
The parameters of the Bluetooth chip, the NFC chip and the WIFI chip are compared to obtain the parameters, the Bluetooth chip is low in power consumption and low in transmission rate, and the Bluetooth chip is suitable for being used when connection is established between data sending equipment and booknote sending equipment; the WIFI chip has the advantages that the transmission rate is high, but the power consumption is high, and the WIFI chip is suitable for being used when files are transmitted between data sending equipment and data receiving equipment; the transmission rate and the power consumption of the NFC chip are between the Bluetooth chip and the WIFI chip, and the NFC chip can be used as a replacement device when the Bluetooth chip and the WIFI chip break down. The file transmission control method of the embodiment reasonably selects the communication device used when the first connection and the second connection are established between the data sending device and the data receiving device according to the transmission rate and the power consumption, and can reduce the power consumption of the mobile device on the basis of ensuring the data transmission rate.
As an optional embodiment, fig. 3 is a flowchart of a control method for optional file transfer according to an embodiment of the present invention, and as shown in fig. 3, after the data sending device and the data receiving device successfully establish the first connection in step S12, the control method for file transfer according to this embodiment may further include the following steps:
in step S132, the data transmission apparatus identifies the distance to the data reception apparatus.
In the scheme provided in step S132, signal transmitting/receiving means may be provided in the data transmitting apparatus and the data receiving apparatus, and the distance between the data transmitting apparatus and the data receiving apparatus may be identified by the signal transmitting/receiving means, specifically: the signal transmitting device in the data transmitting equipment transmits a first signal to the data receiving equipment and records the time as a first time, when the signal receiving device in the data receiving equipment receives the first signal, a second signal is transmitted to the data transmitting equipment through the signal transmitting device in the data receiving equipment, the signal receiving device in the data transmitting equipment receives the second signal and records the time as a second time, and the distance between the data transmitting equipment and the data receiving equipment can be calculated by utilizing the time difference between the first time and the second time and the signal transmission rate. It should be noted that the distance between the data sending device and the data receiving device may be identified in other manners, and the present invention is not limited thereto.
Step S134, in a case that a distance between the data sending device and the data receiving device is within a preset distance, the data sending device receives a touch signal input by a user, where the touch signal is a signal generated when a touch interface of the data sending device receives a predetermined gesture operation, and the touch signal is used to trigger the data sending device to send a file to be transmitted to the data receiving device.
In the scheme provided in step S134, the preset distance may be adjusted according to actual requirements, for example, the preset distance may be 1 meter or 2 meters. After the distance between the data transmission device and the data reception device is recognized through step S132, it is determined whether the distance is within a preset distance. If the distance is within the preset distance, the data sending equipment can send the file to be transmitted to the data receiving equipment in a first mode; if the distance is not within the preset distance, the data sending device can send the file to be transmitted to the data receiving device in a second mode. Specifically, the method comprises the following steps:
the first way may be: the data sending equipment receives a touch signal input by a user, the touch signal is a signal generated when a touch interface of the data sending equipment receives a preset gesture operation, and the touch signal is used for triggering the data sending equipment to send a file to be transmitted to the data receiving equipment, namely when the data sending equipment receives the touch signal, the file to be transmitted is immediately sent to the data receiving equipment. The preset gesture operation can be set according to the operation habit of the user. Optionally, the predetermined operation gesture may include at least any one of the following operations: dragging the file to be transmitted according to a preset track, pressing the file to be transmitted for more than a preset time, clicking the file to be transmitted according to a preset number of times, zooming the file to be transmitted, and the like.
The second way may be: and executing preset operation according to the prompt message in the display interface of the data sending device, such as clicking a sharing button or a file sending button.
In an actual application scenario, when the two mobile devices are within a preset distance (for example, 2 meters), after the two mobile devices are successfully paired, a predetermined gesture operation (for example, two fingers are stroked up) may be directly performed in the sending device, that is, file transmission between the mobile devices may be implemented. When the two mobile devices exceed a preset distance (such as 2 meters), the files are transmitted in a traditional sharing mode.
According to the file transmission control method, the specific file transmission mode is set according to the distance between the data sending device and the data receiving device, when the distance between the devices is within the preset distance, the user gesture operation is additionally carried out to trigger the file to be transmitted, through the interactive design between the devices and the user, the file transmission dynamics is enhanced, and the user experience is improved.
As an alternative embodiment, fig. 4 is a flowchart of another alternative file transmission control method according to the first embodiment of the present invention, and as shown in fig. 4, step S12 may include the following steps:
step S122, the data sending device searches through the first communication device to obtain at least one terminal device within a preset range.
In the scheme provided in step S122, the preset range may be set according to actual situations, for example, the preset range may be a room, or may be within 5 meters of a square circle. The data sending equipment searches for the terminal equipment within the preset range through the first communication device, and the searched terminal equipment is the terminal equipment with the first communication device in the open state. The number of terminal devices searched by the data transmission device may be one or more. When the number of the terminal devices searched by the data transmission device is multiple, the data transmission device allocates identification IDs to the multiple terminal devices, so as to quickly and accurately distinguish different terminal devices.
Step S124, the data sending device initiates a pairing request to the searched terminal device through the first communication device, where the pairing request includes: corresponding to the pairing password of the terminal device.
In the scheme provided in step S124, the pairing request initiated by the data sending device to the searched terminal device through the first communication device may include a pairing password corresponding to the terminal device, and may also include authentication information corresponding to the terminal device, where the authentication information may be a specific keyword, or an answer to a certain question, and the like. The pairing password included in the pairing request may be set by the end user of the data transmission device. The embodiment can avoid the invasion of illegal files by setting the pairing password, and is favorable for ensuring the safety of data sending equipment.
Step S126, the data sending device determines one or more data receiving devices from at least one terminal device within a preset range according to the pairing request, wherein the data receiving device is the terminal device which responds to the pairing request and verifies the successful pairing password.
In the scheme provided in step S126, the determination of the data receiving device needs to meet the matching requirement of the pairing password in the pairing request, that is, the terminal device that can respond to the pairing request and successfully verify the pairing password among the plurality of terminal devices can be used as the data receiving device. The successful verification of the pairing password means that the password corresponding to the terminal device is matched with the pairing password set by the data transmission device. The file transfer control method of this embodiment may be implemented by one or more data receiving devices determined from a preset range.
Step S128, the data sending device establishes a communication link with the successfully paired data receiving device, where the data receiving device stores the trust information of the successfully paired data sending device.
In the scheme provided in step S128, after determining the data receiving device matching with the data sending device, the data sending device establishes a communication link with the data receiving device, where the communication link is used to transmit a file to be sent in the data sending device and an interactive message between the data sending device and the data receiving device. After the communication link between the data sending device and the data receiving device is successfully established for the first time, the trust information of the data sending device successfully paired with the data receiving device can be stored in the data receiving device, so that the data sending device directly passes verification according to the trust information when initiating the pairing request again. Optionally, the data sending device may also store information of the data receiving device successfully paired with the data sending device, and when the connection relationship between the data sending device and the data receiving device is established again, repeated verification is not required, so that the purpose of improving the file transmission efficiency is achieved.
Through the above steps S122 to S128, when the connection between the data sending device and the data receiving device is established, the embodiment improves the reliability and the security of establishing the connection relationship between the data sending device and the data receiving device by setting the pairing password, so as to avoid the intrusion of illegal files in the data sending device and the data receiving device, and be beneficial to ensuring the security of file transmission.
The file transfer control method of the embodiment can be applied to a scene of performing close-range file transfer between mobile devices under an android or IOS operating system. By using the file transfer control method of the embodiment, an application program can be designed, and the application program can be installed in a mobile device with an android or IOS operating system. In a practical application scenario, the first communication device is preferably a bluetooth 4.0, and the second communication device is preferably a WiFi module. The mobile device adopts Bluetooth 4.0 when pairing, and does not turn on the WiFi module, and the Bluetooth 4.0 low power consumption mode leads to 1/100 that the standby power consumption is reduced by normal Bluetooth. The WiFi module is opened only when a user initiates file transmission, file transmission is carried out by using the WiFi Direct, the transmission rate can reach 802.11kbps on a working frequency band of 5GHz according to a communication protocol theory, and the file transmission rate is greatly increased. After the file is successfully transmitted, the WiFi module is immediately closed, so that the standby power consumption is reduced, and the standby time is prolonged.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
According to the embodiment of the present invention, another method embodiment of a file transfer control method is also provided, and it should be noted that the method embodiment provided in the second embodiment of the present application may also be executed in a mobile terminal, a computer terminal, or a similar computing device. In the operating environment shown in fig. 1 of the present application, a second embodiment of the present application provides a method for controlling file transfer as shown in fig. 5, where fig. 5 is a flowchart of the method for controlling file transfer according to the second embodiment of the present invention.
As shown in fig. 5, the file transfer control method of this embodiment may include the steps of:
step S22, the data receiving device establishes a first connection with the data sending device through the first communication device, receives the pairing request sent by the data sending device through the first connection and returns the response information to the pairing request;
step S24, the data receiving device starts the second communication device to establish the second connection with the data sending device, and receives the file transmitted by the data sending device through the second connection;
in step S26, after the data receiving apparatus successfully receives the file, the second communication device is closed.
Through the above steps S22 to S26, the data receiving apparatus only turns on the first communication means and turns off the second communication means when establishing the first connection with the data transmitting apparatus, so that the power consumption of the data receiving apparatus is only the first communication means, thereby reducing the power consumption of the data receiving apparatus. When the data receiving equipment receives the file transmitted by the data transmitting equipment, the data receiving equipment starts the second communication device, so that the file transmission rate can be improved. Through the embodiment, the technical problem that the power consumption of the mobile equipment is high due to the fact that a transmission device used for achieving file transmission in the mobile equipment consumes high power consumption when files are transmitted between the mobile equipment in a close range in the related technology is solved, and therefore the technical effects of reducing the power consumption of data receiving equipment and improving the use experience of a user are achieved.
In the technical solution provided in step S22, the data sending device and the data receiving device may be a smart phone, a tablet computer, or other mobile devices. The type or model of the data sending device and the data receiving device may be the same or different. The data sending equipment and the data receiving equipment respectively comprise a first communication device, the first communication device is mainly used for establishing first connection between the data sending equipment and the data receiving equipment, the data receiving equipment can receive a pairing request sent by the data sending equipment through the first connection, and response information of the pairing request is fed back to the data sending equipment. When the data sending equipment detects a data sending request, a first connection with the data receiving equipment can be established through the first communication device of the data sending equipment, and after the data receiving equipment receives a pairing request sent by the data sending equipment, the first communication device of the data receiving equipment can be started, and the first connection with the data sending equipment is established by utilizing the first communication device of the data receiving equipment.
Alternatively, the first communication device may be a bluetooth chip, an NFC chip, or a WIFI chip, or the like. Bluetooth is a wireless technology standard that enables short-range data exchange between fixed devices, mobile devices, and building personal area networks. Near Field Communication (NFC) is integrated by non-contact radio frequency identification and interconnection technologies, and combines functions of an inductive card reader, an inductive card and a point-to-point on a single chip, so as to perform identification and data exchange with compatible devices in a short distance. The communication distance and the transmission rate of the Bluetooth and the NFC are different, the communication distance of the Bluetooth is about 10 meters, the transmission rate is 721kbps, the Bluetooth works on a frequency band of 2.4GHz, and one-to-many data transmission and voice communication are supported; the communication distance of NFC is about 20 cm, the transmission rate is 106kbps, 212kbps or 424kbps, and the NFC works on a frequency band of 13.56 MHz. The transmission rate and the communication distance of the WIFI chip are far higher than those of the Bluetooth chip and the NFC chip, but the power consumption of the WIFI chip is larger than those of the Bluetooth chip and the NFC chip. In order to reduce power consumption of the data receiving device, the data receiving device preferably establishes a connection with the data transmitting device using a low-speed low-power communication module, such as a bluetooth chip or an NFC chip.
Optionally, after the data receiving device receives the pairing request initiated by the data sending device, the process that the data receiving device responds to the pairing request may include: and matching verification information, wherein the verification information can be a pairing password, a keyword or an answer of a specific question and the like. By matching the authentication information between the data transmission device and the data reception device, the reliability and security of establishing a connection relationship between the data transmission device and the data reception device can be increased.
Optionally, if the data receiving device successfully establishes the first connection with the data sending device through the first communication device, the data receiving device stores the connection relationship with the data sending device and the verification information required when establishing the connection relationship, so that when the data sending device initiates the connection establishment with the data receiving device again, the matching process of the verification information and the establishment process of the connection do not need to be repeated, thereby effectively saving the transmission time of the file and improving the transmission efficiency of the file.
Taking the first communication device as a bluetooth chip as an example, a process of establishing a connection between the smart phone 1 and the smart phone 2 is described, where the smart phone 1 is used as a data sending device, and the smart phone 2 is used as a data receiving device, specifically: the smart phone 1 and the smart phone 2 both have bluetooth modules, and when the smart phone 1 detects a data transmission request, the bluetooth modules are turned on to search for nearby mobile devices and transmit pairing requests to the mobile devices. The smart phone 2 also starts the bluetooth module when detecting the pairing request sent by the smart phone 1. When the connection between the smart phone 1 and the smart phone 2 is established through the respective bluetooth modules, the smart phone 1 sends verification information to the smart phone 2, the verification information may be a pairing password, and when the pairing password of the smart phone 2 is matched with the pairing password of the smart phone 1, the establishment of the connection relationship between the smart phone 1 and the smart phone 2 is successful.
In the scheme provided in step S24, when the first connection between the data receiving device and the data sending device is successfully established, the data receiving device returns response information to the data sending device to notify the data sending device that the connection relationship is successfully established. Meanwhile, a first communication device in the data receiving device generates a trigger signal, wherein the trigger signal is a signal for triggering the data receiving device to turn on a second communication device. And the data receiving equipment starts a second trigger device to establish a second connection with the data sending equipment, and the file to be transmitted sent by the data sending equipment is received through the second connection.
The data sending equipment and the data receiving equipment are both provided with second communication devices, the second communication devices are mainly used for establishing second connection between the data sending equipment and the data receiving equipment, and files can be transmitted between the data sending equipment and the data receiving equipment through the second connection. The second communication device in this embodiment may be a bluetooth chip, an NFC chip, or a WIFI chip, and since the transmission rate of the WIFI chip is much greater than that of the bluetooth chip or the NFC chip, the file transmission control method in this embodiment selects the second communication device as a high-speed high-power consumption communication module, such as a WIFI chip, so as to achieve the technical effect of improving the file transmission efficiency.
In the file transfer control method of this embodiment, when the data receiving apparatus establishes the first connection with the data transmitting apparatus by using the first communication device, the data receiving apparatus and the data transmitting apparatus only turn on the first communication device, and the second communication device is in a turned-off state. Only after the data receiving device and the data sending device successfully establish the first connection, the data sending device and the data receiving device start the second communication device so as to establish a second connection between the data sending device and the data receiving device by using the second communication device, and files are transmitted between the data sending device and the data receiving device through the second connection. In the file transfer control method of the embodiment, only the first communication device is turned on and the second communication device is turned off in a non-file transfer scenario, and the second communication device is turned on in a file transfer scenario, so that the file transfer rate can be increased, and the power consumption of the data sending device and the data receiving device can be reduced.
The file transmitted by the data transmitting apparatus received by the data receiving apparatus may be a data file, a voice file, a video file, or the like. Optionally, the file to be transmitted may be stored in a memory of the data sending device in the form of a data package, and the data sending device may copy the file to be transmitted in the memory to send the copied file of the file to be transmitted to the data receiving device. After the file to be transmitted is sent to the data receiving equipment, the file to be transmitted also exists in the data sending equipment, so that the file to be transmitted can be sent to the data receiving equipment again once under the condition that the file to be transmitted is failed to be sent by the data sending equipment.
Alternatively, the data sending device may transmit the file to the data receiving device by dividing the data packet of the file to be transmitted into a plurality of sub data packets, and assigning a sequential label to each sub data packet, and the data sending device sends the plurality of sub data packets to the data receiving device one by one according to the label sequence. When the data receiving equipment receives the sub data packets, the data receiving equipment sequences the sub data packets according to the labels of the sub data packets so as to achieve the purpose of restoring the source file. The embodiment adopts the form of dividing the file data packet into the sub-data packets, so that the consumption of network bandwidth in the file transmission process can be reduced, and the effect of improving the file transmission rate is further achieved.
In the file transfer control method of this embodiment, a first communication device is used to establish a first connection between a data sending device and a data receiving device, a second communication device is used to establish a second connection between the data sending device and the data receiving device, and a file is transferred between the data sending device and the data receiving device through the second connection.
In the scheme provided in step S26, the second communication means is turned off immediately after the data receiving apparatus detects that the file is successfully received. Optionally, the data receiving device may detect whether the file is successfully received by the following method: judging whether the labels of the received sub data packets form a complete label set, wherein the label set is a set of labels of a plurality of sub data packets which are sent to a data receiving device by a data sending device and are divided into files to be transmitted before the files are transmitted; or judging whether the sequence of the sub-packets is correct, wherein the data sending device sends the label set to the data receiving device and simultaneously informs the data receiving device of the sequence of the labels of the plurality of sub-packets. When the data receiving equipment detects that the label sequence of the received multiple sub-data packets is correct and the multiple labels can form a complete label set, the data receiving equipment successfully receives the file; otherwise the data receiving device fails to successfully receive the file.
Optionally, in a case that the data receiving device detects that the file is successfully received, the data receiving device may feed back an acknowledgement message to the data sending device, where the acknowledgement message is used to notify the data sending device that the file is successfully transmitted. And under the condition that the data receiving equipment detects that the file cannot be successfully received, feeding back a failure message to the data sending equipment, wherein the failure message is used for notifying the data sending equipment that the file transmission fails, at the moment, the data sending equipment retransmits the file to the data receiving equipment by using the second connection, and the data sending equipment and the data receiving equipment do not close the second communication device until the data sending equipment receives a confirmation message fed back by the data receiving equipment.
After the data receiving device successfully receives the file, that is, after the data receiving device feeds back the confirmation message to the data sending device, the data receiving device will immediately close the second communication device of itself, and the data sending device will also immediately close the second communication device of itself after receiving the confirmation message, so as to achieve the purpose of reducing the power consumption of the data receiving device and the data sending device in a non-file transmission scene, thereby realizing the purpose of prolonging the standby time of the data receiving device and the data sending device, and improving the technical effect of user experience.
Through the above steps S22 to S26, the data receiving apparatus only turns on the first communication device and turns off the second communication device when receiving the pairing request initiated by the data sending apparatus, so that the power consumption of the data receiving apparatus is only the first communication device, thereby reducing the power consumption of the data receiving apparatus (since the power consumption of the first communication device is less than the power consumption of the second communication device). When the data receiving equipment receives the file transmitted by the data sending equipment, the data receiving equipment starts the second communication device, so that the file transmission rate can be increased (because the transmission rate of the second communication device is greater than that of the first communication device). Through the embodiment, the technical problem that the power consumption of the mobile equipment is high due to the fact that a transmission device used for achieving file transmission in the mobile equipment consumes high power consumption when files are transmitted between the mobile equipment in a close range in the related technology is solved, and therefore the technical effects of reducing the power consumption of data receiving equipment and improving the use experience of a user are achieved.
As an optional embodiment, after the step S22, that the data receiving apparatus establishes the first connection successfully with the data sending apparatus through the first communication device, the method for controlling file transfer of this embodiment may further include: the data receiving equipment closes the first communication device until the first communication device is restarted after a pairing request of the data sending equipment is received next time.
The data receiving device of this embodiment may turn on the first communication apparatus only when receiving the pairing request initiated by the data sending device, and turn off the first communication apparatus immediately after the first communication apparatus successfully establishes the first connection with the data sending device. According to the file transmission control method, the second communication device is controlled to be started when the data receiving equipment receives the file transmitted by the data sending equipment, so that the power consumption of the data receiving equipment is reduced, and the first communication device is controlled to be started only when the pairing request initiated by the data sending equipment is received, so that the power consumption of the data receiving equipment can be further reduced, the standby time of the data receiving equipment is prolonged, and the technical effect of user experience is improved.
As an optional embodiment, fig. 6 is a flowchart of a control method of optional file transfer according to a second embodiment of the present invention, and as shown in fig. 6, after the data receiving device receives the file transferred by the data sending device through the second connection in step S24, the control method of file transfer according to this embodiment may further include the following steps:
step S252, the data receiving device detects whether the received file is complete;
in step S254, when the file is detected to be complete, the data receiving device feeds back a confirmation message to the data sending device, where the confirmation message is a message used to indicate that the file received by the data receiving device is a complete file.
In the scheme provided in step S252, the data receiving device may determine whether the labels of the received sub data packets can form a complete label set, where the label set is a set of labels of a plurality of sub data packets that are divided into the data packets of the file to be transmitted and sent to the data receiving device by the data sending device before the file is transmitted; or judging whether the sequence of the sub-data packets is correct, wherein the data sending device sends the label set to the data receiving device and simultaneously informs the data receiving device of the sequence of the labels of the plurality of sub-data packets so as to detect whether the received file is complete. When the data receiving device detects that the label sequence of the received multiple sub-data packets is correct and the multiple labels can form a complete label set, it indicates that the file received by the data receiving device is complete.
In the scheme provided in step S254, in a case that it is detected that the file is complete, the data receiving device feeds back a confirmation message to the data sending device, where the confirmation message is a message used for indicating that the file received by the data receiving device is a complete file; and under the condition that the file is detected to be incomplete, the data receiving equipment feeds back failure to the data sending equipment, wherein the failure message is used for indicating that the file received by the data receiving equipment is an incomplete file. The data sending equipment closes the second communication device after receiving the confirmation message, retransmits the file through the second connection after receiving the failure message, and closes the second communication device until receiving the confirmation message.
The data receiving device in this embodiment notifies the data sending device whether the file is successfully transmitted or not by detecting whether the received file is complete and feeding back an acknowledgement message or a failure message to the data sending device, which is beneficial to accurately controlling the closing time of the second communication device in the data sending device and the data receiving device, thereby achieving the purpose of reducing the power consumption of the data sending device and the data receiving device.
The file transfer control method of the embodiment can also be applied to a scene of performing close-range file transfer between mobile devices under an android or IOS operating system. An application program can be designed by using the file transfer control method of the embodiment, and the application program can be installed in a mobile device with an android or IOS operating system. In a practical application scenario, the first communication device is preferably a bluetooth 4.0, and the second communication device is preferably a WiFi module. The mobile device adopts Bluetooth 4.0 when pairing, and does not turn on the WiFi module, and the Bluetooth 4.0 low power consumption mode leads to 1/100 that the standby power consumption is reduced by normal Bluetooth. The WiFi module is opened only when a user initiates file transmission, file transmission is carried out by using the WiFi Direct, the transmission rate can reach 802.11kbps on a working frequency band of 5GHz according to a communication protocol theory, and the file transmission rate is greatly increased. After the file is successfully transmitted, the WiFi module is immediately closed, so that the standby power consumption is reduced, and the standby time is prolonged.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 3
According to the embodiment of the invention, the file transmission control device is also provided for implementing the file transmission control method in the first embodiment. Fig. 7 is a schematic diagram of a control device for file transfer according to a third embodiment of the present invention, as shown in fig. 7, the device includes:
the establishing module 72 is configured to establish a first connection between the data sending device and the data receiving device through the first communication apparatus, send a pairing request through the first connection, and receive response information returned by the data receiving device; a sending module 74, configured to start, by the data sending device, the second communication apparatus to establish a second connection with the data receiving device according to the response information, and send the file to be transmitted to the data receiving device through the second connection; and a first closing module 76, configured to close the second communication device after the data sending apparatus successfully sends the file to be transmitted.
It should be noted that the establishing module 72 in this embodiment may be configured to execute the step S12 in the first embodiment of the present application, the sending module 74 in this embodiment may be configured to execute the step S14 in the first embodiment of the present application, and the first closing module 76 in this embodiment may be configured to execute the step S16 in the first embodiment of the present application. The modules are the same as the corresponding steps in the implementation example and application scenarios, but are not limited to the disclosure of the first embodiment. It should be noted that the modules described above as a part of the apparatus may be run in the computer terminal 10 provided in the first embodiment, and may be implemented by software or hardware.
Through the above-mentioned modules 72 to 76, the data sending apparatus only turns on the first communication device and turns off the second communication device when initiating the connection establishment with the data receiving apparatus, so that the power consumption of the data sending apparatus is only the first communication device, thereby reducing the power consumption of the data sending apparatus (since the power consumption of the first communication device is less than the power consumption of the second communication device). When the data sending device sends the file to be transmitted to the data receiving device, the data sending device starts the second communication device, so that the file transmission rate can be increased (because the transmission rate of the second communication device is greater than that of the first communication device). Through the embodiment, the technical problem that the power consumption of the mobile equipment is high due to the fact that a transmission device used for achieving file transmission in the mobile equipment consumes high power consumption when files are transmitted between the mobile equipment in a close range in the related technology is solved, and therefore the technical effects of reducing the power consumption of data sending equipment and improving the use experience of a user are achieved.
As an optional embodiment, fig. 8 is a schematic diagram of a control apparatus for optional file transfer according to a third embodiment of the present invention, and as shown in fig. 8, the control apparatus for file transfer of this embodiment may further include: the second closing module 731 is configured to close the first communication device by the data sending apparatus until the first communication device is turned back on after the data sending request is received next time.
The control device for file transfer according to this embodiment may open the first communication device only when the data transmission apparatus detects a data transmission request, and immediately close the first communication device after establishing the first connection between the data transmission apparatus and the data reception apparatus using the first communication device. According to the embodiment, the second communication device is controlled to be started when the file to be transmitted is transmitted between the data sending device and the data receiving device, and then on the basis of reducing the power consumption of the device, the first communication device is controlled to be started only when the data sending device detects a data sending request, so that the power consumption of the data sending device can be further reduced, the standby time of the data sending device is prolonged, and the technical effect of user experience is improved.
As an optional embodiment, fig. 9 is a schematic diagram of another optional file transfer control device according to a third embodiment of the present invention, and as shown in fig. 9, the file transfer control device of this embodiment may further include: a first switching module 721, configured to, before the data sending apparatus establishes a first connection with the data receiving apparatus through the first communication device, switch the data sending apparatus to establish the first connection with the data receiving apparatus using the second communication device or the third communication device if it is detected that the first communication device is faulty; a second switching module 741, configured to switch, after the data sending apparatus starts the second communications device to establish the second connection with the data receiving apparatus, the data sending apparatus to use the third communications device to establish the second connection with the data receiving apparatus if it is detected that the second communications device fails.
The data sending device and the data receiving device may further include a third communication device, the third communication device may serve as a replacement for the first communication device and the second communication device in the event of a failure, and the third communication device in this embodiment may be used to establish the first connection and the second connection between the data sending device and the data receiving device. Alternatively, the third communication device may be an NFC chip, a WIFI chip, or the like. The control device for file transfer of this embodiment sufficiently ensures the reliability of file transfer by adding the third communication device. Meanwhile, the control device for file transmission in the embodiment selects the communication device used in establishing the first connection and the second connection between the data sending device and the data receiving device in an alternative mode, so that the power consumption of the data sending device and the data receiving device can be effectively reduced, the standby time is prolonged, and the use experience of a user is further improved.
As an optional embodiment, in this embodiment, the first communication device is a low-speed low-power consumption communication module, and the second communication device is a high-speed high-power consumption communication module, where the first communication device may include any one of the following devices: bluetooth chip, NFC chip, second communication device can include any one of following device: NFC chip and WIFI chip, the third communication device can include any one of the following devices: NFC chip and WIFI chip.
The file transmission control device of the embodiment reasonably selects the communication device used when the first connection and the second connection are established between the data sending device and the data receiving device according to the transmission rate and the power consumption, and can reduce the power consumption of the mobile device on the basis of ensuring the data transmission rate.
As an optional embodiment, fig. 10 is a schematic diagram of another optional file transfer control device according to a third embodiment of the present invention, and as shown in fig. 10, the file transfer control device of this embodiment may further include: an identification module 732 for identifying a distance between the data transmitting apparatus and the data receiving apparatus; the receiving module 734 is configured to receive, by the data sending device, a touch signal input by a user when a distance between the data sending device and the data receiving device is within a preset distance, where the touch signal is a signal generated when a touch interface of the data sending device receives a predetermined gesture operation, and the touch signal is used to trigger the data sending device to send a file to be transmitted to the data receiving device. Optionally, the predetermined operation gesture may include at least any one of the following operations: dragging the file to be transmitted according to a preset track, pressing the file to be transmitted for more than a preset time, clicking the file to be transmitted according to a preset number of times, zooming the file to be transmitted, and the like.
The identifying module 732 corresponds to the step S132 in the first embodiment, and the receiving module 734 corresponds to the step S134 in the first embodiment. The modules are the same as the corresponding steps in the implementation example and application scenarios, but are not limited to the disclosure of the first embodiment. According to the file transmission control device, the specific file transmission mode is set according to the distance between the data sending device and the data receiving device, when the distance between the devices is within the preset distance, the user gesture operation is additionally arranged to trigger the file to be transmitted, through the interactive design between the devices and the user, the file transmission dynamics is enhanced, and the user experience is improved.
As an optional embodiment, fig. 11 is a schematic diagram of another optional file transfer control device according to a third embodiment of the present invention, and as shown in fig. 11, the creating module 72 may include: the searching module 722 is configured to search, by the data sending device through the first communication device, to obtain at least one terminal device within a preset range; a sub-initiating module 724, configured to initiate, by the data sending device, a pairing request to the searched terminal device through the first communication apparatus, where the pairing request includes: a pairing password corresponding to the terminal device; a determining module 726, configured to determine, by the data sending device, a data receiving device from at least one terminal device within a preset range according to the pairing request, where the data receiving device is a terminal device that responds to the pairing request and verifies that the pairing password is successful; the sub-establishing module 728 is configured to establish a communication link between the data sending device and the successfully paired data receiving device, where the data receiving device stores the trust information of the successfully paired data sending device.
The searching module 722 corresponds to step S122 in the first embodiment, the sub-initiating module 724 corresponds to step S124 in the first embodiment, the determining module 726 corresponds to step S126 in the first embodiment, and the establishing module 728 corresponds to step S128 in the first embodiment. The modules are the same as the corresponding steps in the implementation example and application scenarios, but are not limited to the disclosure of the first embodiment. When the control device for file transmission of the embodiment establishes connection between the data sending device and the data receiving device, the reliability and the safety of establishing a connection relationship between the data sending device and the data receiving device are improved by setting the pairing password, so that invasion of illegal files in the data sending device and the data receiving device can be avoided, and the security of file transmission is favorably ensured.
Example 4
According to the embodiment of the invention, the invention also provides a file transmission control device for implementing the file transmission control method in the second embodiment. Fig. 12 is a schematic diagram of a file transfer control apparatus according to a fourth embodiment of the present invention, as shown in fig. 12, the apparatus including:
the establishing module 82 is configured to establish a first connection between the data receiving device and the data sending device through the first communication apparatus, receive a pairing request sent by the data sending device through the first connection, and return response information to the pairing request; the starting module 84 is configured to start the second communication device at the data receiving device to establish a second connection with the data sending device, and receive the file transmitted by the data sending device through the second connection; and a first closing module 86, configured to close the second communication device after the data receiving apparatus successfully receives the file.
It should be noted that the establishing module 82 in this embodiment may be configured to execute the step S22 in the second embodiment of the present application, the opening module 84 in this embodiment may be configured to execute the step S24 in the second embodiment of the present application, and the first closing module 86 in this embodiment may be configured to execute the step S26 in the second embodiment of the present application. The modules are the same as the corresponding steps in the implementation example and application scenarios, but are not limited to the disclosure of the second embodiment. It should be noted that the modules described above as a part of the apparatus may be run in the computer terminal 10 provided in the first embodiment, and may be implemented by software or hardware.
Through the above modules 82 to 86, the data receiving device only turns on the first communication device and turns off the second communication device when receiving the pairing request initiated by the data sending device, so that the power consumption of the data receiving device is only the first communication device, thereby reducing the power consumption of the data receiving device (since the power consumption of the first communication device is less than the power consumption of the second communication device). When the data receiving equipment receives the file transmitted by the data sending equipment, the data receiving equipment starts the second communication device, so that the file transmission rate can be increased (because the transmission rate of the second communication device is greater than that of the first communication device). Through the embodiment, the technical problem that the power consumption of the mobile equipment is high due to the fact that a transmission device used for achieving file transmission in the mobile equipment consumes high power consumption when files are transmitted between the mobile equipment in a close range in the related technology is solved, and therefore the technical effects of reducing the power consumption of data receiving equipment and improving the use experience of a user are achieved.
As an optional embodiment, fig. 13 is a schematic view of a control apparatus for optional file transfer according to a fourth embodiment of the present invention, and as shown in fig. 13, the control apparatus for file transfer of this embodiment may further include: the second closing module 83 is configured to close the first communication apparatus by the data receiving device until the first communication apparatus is turned on again after the pairing request of the data sending device is received next time.
The data receiving device of this embodiment may turn on the first communication apparatus only when receiving the pairing request initiated by the data transmitting device, and turn off the first communication apparatus immediately after establishing a connection with the data transmitting device by using the first communication apparatus. The control device for file transmission of the embodiment is controlled by the second communication device to be turned on when the data receiving device receives the file transmitted by the data sending device, so that on the basis of reducing the power consumption of the data receiving device, the first communication device is controlled to be turned on only when the pairing request initiated by the data sending device is received, so that the power consumption of the data receiving device can be further reduced, the standby time of the data receiving device is further prolonged, and the technical effect of user experience is improved.
As an optional embodiment, fig. 14 is a schematic diagram of another optional file transfer control device according to a fourth embodiment of the present invention, and as shown in fig. 14, the file transfer control device of this embodiment may further include: a detection module 88, configured to detect, by the data receiving device, whether the received file is complete; and a feedback module 90, configured to, when it is detected that the file is complete, feed back, by the data receiving device, an acknowledgement message to the data sending device, where the acknowledgement message is a message used to indicate that the file received by the data receiving device is a complete file.
The detection module 88 corresponds to the step S252 in the second embodiment, and the feedback module 90 corresponds to the step S254 in the second embodiment, and the modules are the same as the corresponding steps in the example and the application, but are not limited to the disclosure in the second embodiment. The data receiving device in this embodiment notifies the data sending device whether the file is successfully transmitted or not by detecting whether the received file is complete and feeding back an acknowledgement message or a failure message to the data sending device, which is beneficial to accurately controlling the closing time of the second communication device in the data sending device and the data receiving device, thereby achieving the purpose of reducing the power consumption of the data sending device and the data receiving device.
Example 5
According to an embodiment of the present invention, there is also provided a file transfer control system for implementing the file transfer control method described above in the present application, and fig. 15 is a schematic diagram of the file transfer control system according to the embodiment of the present invention, and as shown in fig. 15, the system includes:
the data transmission apparatus 1520 includes: a first transmitting means 15201 and a second transmitting means 15203 for initiating a connection request through the first transmitting means 15201; and a data receiving apparatus 1540 including: the first receiving apparatus 15401 and the second receiving apparatus 15403 are configured to receive the connection request through the first receiving apparatus 15401, where after the first connection between the data sending device 1520 and the data receiving device 1540 is successfully established, the data sending device 1520 starts the second sending apparatus 15203, the data receiving device 1540 starts the second receiving apparatus 15403, a second connection is established between the data sending device 1520 and the data receiving device 1540, and after the data sending device 1520 successfully sends the file to be transmitted to the data receiving device 1540 through the second connection, the second sending apparatus 15203 is closed, and after the data receiving device 1540 successfully receives the file through the second connection, the second receiving apparatus 15403 is closed.
Alternatively, the data sending device 1520 and the data receiving device 1540 may be smart phones, tablets, or other mobile devices. The data transmitting apparatus 1520 and the data receiving apparatus 1540 may be the same type or model, or may be different. The first transmitting device 15201 and the first receiving device 15401 are substantially the first communication device in the embodiment of the present application, and may be low-speed and low-power communication modules, and are mainly used to establish the first connection between the data transmitting apparatus 1520 and the data receiving apparatus 1540. The data transmitting apparatus 1520 transmits a pairing request to the data receiving apparatus 1540 through the first connection, and the data receiving apparatus 1540 feeds back response information of the pairing request to the data transmitting apparatus 1520. The first transmitting device 15201 and the first receiving device 15401 may be a bluetooth chip, an NFC chip, a WIFI chip, or the like. The transmission rate and the communication distance of the WIFI chip are far higher than those of the Bluetooth chip and the NFC chip, but the power consumption of the WIFI chip is larger than those of the Bluetooth chip and the NFC chip. In order to reduce power consumption of the data transmitting apparatus 1520 and the data receiving apparatus 1540, the first transmitting device 15201 and the first receiving device 15401 each preferably employ a bluetooth chip or an NFC chip.
Optionally, after the data sending apparatus 1520 sends the connection request to the data receiving apparatus 1540 by using the first sending device 15201, the data receiving apparatus 1540 responds to the connection request by using the first receiving device 15401, and the specific response process may include: and matching verification information, wherein the verification information can be a pairing password, a keyword or an answer of a specific question and the like. By matching the authentication information between the data transmitting apparatus 1520 and the data receiving apparatus 1540, the reliability and security of establishing a connection relationship between the data transmitting apparatus 1520 and the data receiving apparatus 1540 can be increased.
Optionally, if the data sending device 1520 and the data receiving device 1540 successfully establish a connection, the data receiving device 1540 stores the connection relationship and the verification information required for establishing the connection relationship, so that when the data sending device 1520 initiates the connection establishment with the data receiving device 1540 again, the matching process of the verification information and the establishment process of the connection do not need to be repeated, thereby effectively saving the transmission time of the file and improving the transmission efficiency of the file.
After the data transmitting apparatus 1520 and the data receiving apparatus 1540 are successfully connected, the data transmitting apparatus 1520 opens the second transmitting device 15203, the data receiving apparatus 1540 opens the second receiving device 15403, and a second connection is established between the data transmitting apparatus 1520 and the data receiving apparatus 1540, by which a file can be transferred between the data transmitting apparatus 1520 and the data receiving apparatus 1540. The second transmitting device 15203 and the second receiving device 15403 are substantially the second communication device in the embodiment of the present application, and may be high-speed and high-power communication modules. Optionally, the second transmitting device 15203 and the second receiving device 15403 may be a bluetooth chip, an NFC chip, a WIFI chip, or the like, and since the transmission rate of the WIFI chip is much greater than that of the bluetooth chip or the NFC chip, the file transmission control system of this embodiment preferentially selects the second transmitting device 15203 and the second receiving device 15403 as the WIFI chip, so as to achieve the technical effect of improving the file transmission efficiency.
Alternatively, the file to be transmitted by the second transmitting device 15203 may be a data file, a voice file, a video file, or the like, and the file to be transmitted is stored in the memory of the data transmitting apparatus 1520 in the form of a data package. Optionally, the data sending device 1520 sends the file to be transmitted to the data receiving device 1540 by copying the file to be transmitted in the memory, and sending the copied file of the file to be transmitted to the data receiving device 1540, and after the file to be transmitted is sent to the data receiving device 1540, the file to be transmitted still exists in the data sending device 1520, so that it can be ensured that the file to be transmitted can be sent to the data receiving device 1540 again when the file to be transmitted fails to be sent.
The control system of file transfer of this embodiment establishes a first connection between the data transmitting apparatus 1520 and the data receiving apparatus 1540 using the first transmitting device 15201 and the first receiving device 15401, after the first connection is successfully established, the second transmitting device 15203 and the second receiving device 15403 are opened, a second connection between the data transmitting apparatus 1520 and the data receiving apparatus 1540 is established, and files are transmitted between the data transmitting apparatus 1520 and the data receiving apparatus 1540 by means of the connection, preferably, the power consumption of the first transmitting device 15201 and the first receiving device 15401 is lower than the power consumption of the second transmitting device 15203 and the second receiving device 15403, the transmission rate of the second transmitting device 15203 and the second receiving device 15403 is higher than the transmission rate of the first transmitting device 15201 and the first receiving device 15401, the embodiment can improve the file transmission rate, reduce the power consumption of the equipment and greatly improve the use experience of users.
After the data transmitting apparatus 1520 successfully transmits the file to be transmitted to the data receiving apparatus 1540 through the second connection, the second transmitting device 15203 is closed, and after the data receiving apparatus 1540 successfully receives the file, the second receiving device 15403 is closed.
Alternatively, the data transmitting apparatus 1520 may transmit the file to be transmitted to the data receiving apparatus 1540 by dividing the data packet of the file to be transmitted into a plurality of sub data packets, labeling each sub data packet in sequence, and storing the labels into a label set. The data transmitting apparatus 1520 uses the second transmitting device 15203 to sequentially transmit the plurality of sub-packets to the data receiving apparatus 1540 according to the label sequence, during the transmission, each time the data transmitting apparatus 1520 transmits one sub-packet, the label of the sub-packet is deleted from the label set, and when the data transmitting apparatus 1520 detects that the label set is an empty set, it indicates that all the files to be transmitted have been transmitted to the data receiving apparatus 1540.
Alternatively, the data receiving apparatus 1540 may detect whether the file is successfully received in the following manner: judging whether the labels of the received sub data packets form a complete label set, wherein the label set is a set of labels of a plurality of sub data packets divided by the data packets of the file to be transmitted, which are sent to the data receiving device 1540 by the data sending device 1520 before the file is transmitted; or whether the order of the sub-packets is correct is determined, wherein the data transmitting apparatus 1520 notifies the data receiving apparatus 1540 of the order of the labels of the plurality of sub-packets while transmitting the label set to the data receiving apparatus 1540. When the data receiving device 1540 detects that the label sequence of the received multiple sub-data packets is correct, and the multiple labels can form a complete label set, it indicates that the data receiving device 1540 successfully receives the file; otherwise the data receiving apparatus 1540 fails to successfully receive the file.
Alternatively, in case that the data receiving apparatus 1540 detects that the file is successfully received, the data receiving apparatus 1540 may feed back an acknowledgement message to the data transmitting apparatus 1520, where the acknowledgement message is used to notify the data transmitting apparatus 1520 that the file transmission is successful. When the data receiving apparatus 1540 detects that the file cannot be successfully received, a failure message for notifying that the file transmission of the data transmitting apparatus 1520 fails is fed back to the data receiving apparatus 1520, at this time, the data transmitting apparatus 1520 retransmits the file to the data receiving apparatus 1540 by using the second connection, until the data transmitting apparatus 1520 receives a confirmation message fed back by the data receiving apparatus 1540, the data transmitting apparatus 1520 does not close the second transmitting device 15203, and the data receiving apparatus 1540 does not close the second receiving device 15403.
With the file transfer control system according to this embodiment, only the first transmission device 15201 and the first reception device 1540 are opened when the connection between the data transmission apparatus 1520 and the data reception apparatus 1540 is established, the second transmission device 15203 and the second reception device 15403 are opened after the connection is successfully established, and the second transmission device 15203 and the second reception device 15403 are closed after the file is transferred between the data transmission apparatus 1520 and the data reception apparatus 1540 by the second transmission device 15203 and the second reception device 15403. The embodiment solves the technical problem that the power consumption of the mobile equipment is large due to the fact that a transmission device used for achieving file transmission in the mobile equipment consumes large power consumption when files are transmitted between the mobile equipment in a close range in the related art, and achieves the technical effects of improving file transmission efficiency, reducing the power consumption of data sending equipment and data receiving equipment and improving user experience.
As an alternative embodiment, the data transmitting apparatus 1520 is further configured to turn off the first transmitting device 15201 after establishing the first connection with the data receiving apparatus 1540, until the first transmitting device 15201 is turned back on after receiving the data transmission request next time; the data receiving apparatus 1540 is further configured to close the first receiving device 15401 after establishing the first connection with the data sending apparatus 1520 successfully, and to reopen the first receiving device 15401 until the next time a pairing request of the data sending apparatus 1520 is received.
The file transfer control system according to this embodiment opens the first transmitting device 15201 and the first receiving device 1540 only when the first connection between the data transmitting apparatus 1520 and the data receiving apparatus 1540 is established, and closes the first transmitting device 15201 and the first receiving device 15401 immediately after the first connection between the data transmitting apparatus 1520 and the data receiving apparatus 1540 is successfully established by using the first transmitting device 15201 and the first receiving device 1540 1. In the file transfer control system of this embodiment, the second transmitting device 15203 and the second receiving device 15403 are controlled to be turned on only during file transfer and turned off after file transfer, so as to reduce the power consumption of the apparatus, and the first transmitting device 15201 and the first receiving device 15401 are controlled to be turned on only when the connection between the data transmitting apparatus 1520 and the data receiving apparatus 1540 is established, so that the power consumption of the data transmitting apparatus 1520 and the power consumption of the data receiving apparatus 1540 can be further reduced, the standby time of the data transmitting apparatus 1520 and the data receiving apparatus 1540 can be further prolonged, and the technical effect of improving the user experience can be achieved.
As an optional embodiment, fig. 16 is a schematic diagram of a control system for optional file transfer according to an embodiment of the present invention, and as shown in fig. 16, the data transmitting apparatus 1520 may further include a third transmitting device 15205, the data receiving apparatus 1540 may further include a third receiving device 15405, the third transmitting device 15205 may serve as a replacement device for the first transmitting device 15201 and the second transmitting device 15203 when a failure occurs, and the third receiving device 15405 may serve as a replacement device for the first receiving device 15401 and the second receiving device 15403 when a failure occurs. The third transmitting device 15205 and the third receiving device 15405 in this embodiment are substantially the third communication devices in this embodiment. Alternatively, the third transmitting device 15205 and the third receiving device 15405 may be NFC chips, WIFI chips, or the like.
If it is detected that the first transmitting device 15201 is out of order, the data transmitting apparatus 1520 switches to initiate a connection request using the second transmitting device 15203 or the third transmitting device 15205, so that the data transmitting apparatus 1520 establishes a connection with the data receiving apparatus 1540. If it is detected that the second transmission means 15203 has failed, the data transmission apparatus 1520 switches to transmit the file to be transmitted to the data reception apparatus 1540 using the third transmission means 15205.
The file transmission control system according to this embodiment, by adding the third transmitting device 15205 and the third receiving device 15405, avoids the problem that the establishment of the first connection and the establishment of the second connection between the data transmitting apparatus 1520 and the data receiving apparatus 1540 are affected when the first transmitting apparatus 15201 or the second transmitting apparatus 15203 fails, and fully ensures the reliability of file transmission. Meanwhile, the file transfer control system of this embodiment selects the communication device used in establishing the first connection and the second connection between the data transmitting apparatus 1520 and the data receiving apparatus 1540 in an alternative manner, so that the power consumption of the data transmitting apparatus 1520 and the data receiving apparatus 1540 can be effectively reduced, the standby time is prolonged, and the use experience of the user is further improved.
As an optional embodiment, the data sending device 1520 of this embodiment may be further configured to, after the data receiving device 1540 is successfully connected, identify a distance between the data sending device 1520 and the successfully paired data receiving device 1540, and receive a touch signal input by the user when the identified distance is within a preset distance, where the touch signal is a signal generated when a touch interface of the data sending device 1520 receives a predetermined gesture operation, and the touch signal is used to trigger the data sending device 1520 to send a file to be transmitted to the data receiving device 1540.
Alternatively, a signal transmitting/receiving device may be provided in the data transmitting apparatus 1520 and the data receiving apparatus 1540, and the distance between the data transmitting apparatus 1520 and the data receiving apparatus 1540 may be identified by the signal transmitting/receiving device, specifically: when the signal receiving device in the data receiving device 1540 receives the first signal, the signal transmitting device in the data sending device 1520 sends a second signal to the data sending device 1520 through the signal transmitting device in the data receiving device 1540, and the signal receiving device in the data sending device 1520 receives the second signal, and records that the time is the second time, and the distance between the data sending device 1520 and the data receiving device 1540 can be calculated by using the time difference between the first time and the second time and the signal transmission rate. It should be noted that the distance between the data transmitting device 1520 and the data receiving device 1540 may be identified in other manners, and the present invention is not limited thereto.
Optionally, the preset distance may be adjusted according to actual requirements, for example, the preset distance may be 1 meter or 2 meters. If the data transmitting device 1520 recognizes that the distance between the data transmitting device and the data receiving device 1540 is within the preset distance, the file to be transmitted may be transmitted to the data receiving device 1540 in a first manner; if not, the file to be transmitted may be sent to the data receiving device 1540 in a second manner. Specifically, the method comprises the following steps:
the first way may be: the data sending device 1520 receives a touch signal input by a user, where the touch signal is a signal generated when a touch interface of the data sending device 1520 receives a predetermined gesture operation, and the touch signal is used to trigger the data sending device 1520 to send a file to be transmitted to the data receiving device 1540, that is, when the data sending device 1520 receives the touch signal, the file to be transmitted is immediately sent to the data receiving device 1540. The preset gesture operation can be set according to the operation habit of the user. Optionally, the predetermined operation gesture may include at least any one of the following operations: dragging the file to be transmitted according to a preset track, pressing the file to be transmitted for more than a preset time, clicking the file to be transmitted according to a preset number of times, zooming the file to be transmitted, and the like.
The second way may be: and executing preset operation according to the prompt information in the display interface of the data sending device 1520, such as clicking a sharing button or a file sending button.
According to the file transmission control system, a specific file transmission mode is set according to the distance between the data sending equipment 1520 and the data receiving equipment 1540, when the distance between the equipment is within the preset distance, a user gesture operation is additionally arranged to trigger the transmission of the file to be transmitted, and through the interactive design between the equipment and the user, the file transmission dynamics is enhanced, and the user experience is improved.
Example 6
The embodiment of the invention can provide a computer terminal which can be any computer terminal device in a computer terminal group. Optionally, in this embodiment, the computer terminal may also be replaced with a terminal device such as a mobile terminal.
Optionally, in this embodiment, the computer terminal may be located in at least one network device of a plurality of network devices of a computer network.
In this embodiment, the computer terminal may execute the program code of the following steps in the control method for file transmission: the data sending equipment establishes a first connection with the data receiving equipment through a first communication device, sends a pairing request through the first connection and receives response information returned by the data receiving equipment; starting a second communication device at the data sending equipment according to the response information to establish a second connection with the data receiving equipment, and sending the file to be transmitted to the data receiving equipment through the second connection; and after the data transmission equipment successfully transmits the file to be transmitted, closing the second communication device.
Alternatively, fig. 17 is a block diagram of a computer terminal according to an embodiment of the present invention. As shown in fig. 17, the computer terminal a may include: one or more processors 1701 (only one of which is shown), a memory 1703, and a transmitting device 1705.
The memory 1703 may be used to store software programs and modules, such as program instructions/modules corresponding to the file transfer control method and apparatus in the embodiments of the present invention, and the processor 1701 executes various functional applications and data processing by running the software programs and modules stored in the memory 1703, that is, implementing the file transfer control method described above. The memory 1703 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 1703 may further include memory located remotely from the processor 1701, which may be connected to terminal a through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmitting device 1705 is used for receiving or transmitting data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 1705 includes a network adapter (NIC) that can be connected to a router via a network cable and other network devices to communicate with the internet or a local area network. In one example, the transmission device 1705 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
Specifically, the memory 1703 is used to store preset action conditions, information of a preset authorized user, and an application program.
The processor 1701 may invoke information and applications stored in the memory 1703 via the transmitting device to perform the following steps: the data sending equipment establishes a first connection with the data receiving equipment through a first communication device, sends a pairing request through the first connection and receives response information returned by the data receiving equipment; the data sending equipment starts a second communication device to establish a second connection with the data receiving equipment according to the response information, and sends the file to be transmitted to the data receiving equipment through the second connection; and after the data transmission equipment successfully transmits the file to be transmitted, closing the second communication device.
Optionally, the processor 1701 may further execute the program code of the following steps: the data transmission apparatus turns off the first communication device until the first communication device is turned back on after receiving the data transmission request next time.
Optionally, the processor 1701 may further execute the program code of the following steps: if the first communication device is detected to be out of order, the data sending equipment is switched to use the second communication device or the third communication device to establish first connection with the data receiving equipment; after the data transmission device turns on the second communication device, the method further includes: and if the second communication device is detected to be in fault, the data sending equipment is switched to establish second connection with the data receiving equipment by using the third communication device.
Optionally, the processor 1701 may further execute the program code of the following steps: the data sending equipment identifies the distance between the data sending equipment and the data receiving equipment; under the condition that the distance between the data sending device and the data receiving device is within a preset distance, the data sending device receives a touch signal input by a user, wherein the touch signal is a signal generated when a touch interface of the data sending device receives a preset gesture operation, and the touch signal is used for triggering the data sending device to send a file to be transmitted to the data receiving device.
Optionally, the processor 1701 may further execute the program code of the following steps: the data sending equipment searches through the first communication device to obtain at least one terminal equipment in a preset range; the data sending equipment initiates a pairing request to the searched terminal equipment through a first communication device, wherein the pairing request comprises: a pairing password corresponding to the terminal device; the data sending equipment determines data receiving equipment from at least one terminal equipment within a preset range according to the pairing request, wherein the data receiving equipment responds to the pairing request and verifies the terminal equipment with successful pairing password; and the data sending equipment establishes a communication link with the successfully paired data receiving equipment, wherein the data receiving equipment stores the trust information of the successfully paired data sending equipment.
The embodiment of the invention provides a method, a device and a system for controlling file transmission. The second communication device is effectively controlled to be opened and closed in the file transmission process, the second communication device is opened after the connection between the data sending equipment and the data receiving equipment is successfully established, the second communication equipment is immediately closed after the data sending equipment successfully sends the file to be transmitted, and the purpose that only the first communication device consumes energy in the data sending equipment in a non-transmission scene is achieved, so that the technical effect of reducing the power consumption of the data sending equipment is achieved, and the technical problem that the power consumption of the mobile equipment is larger due to the fact that the transmission device used for achieving file transmission in the mobile equipment consumes larger power when the file is transmitted between the mobile equipment in a short distance in the related art is solved.
It can be understood by those skilled in the art that the structure shown in fig. 17 is only an illustration, and the computer terminal may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palmtop computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 17 is a diagram illustrating the structure of the electronic device. For example, computer terminal 17 may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 17, or have a different configuration than shown in FIG. 17.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
Example 7
The embodiment of the invention also provides a storage medium. Optionally, in this embodiment, the storage medium may be configured to store a program code executed by the file transfer control method provided in the first embodiment.
Optionally, in this embodiment, the storage medium may be located in any one of computer terminals in a computer terminal group in a computer network, or in any one of mobile terminals in a mobile terminal group.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: the data sending equipment establishes a first connection with the data receiving equipment through a first communication device, sends a pairing request through the first connection and receives response information returned by the data receiving equipment; the data sending equipment starts a second communication device to establish a second connection with the data receiving equipment according to the response information, and sends the file to be transmitted to the data receiving equipment through the second connection; and after the data transmission equipment successfully transmits the file to be transmitted, closing the second communication device.
It should be noted here that any one of the computer terminal groups may establish a communication relationship with the web server and the scanner, and the scanner may scan the value commands of the web application executed by the php on the computer terminal.
Optionally, in this embodiment, the storage medium may be further configured to store program code for performing the following steps: the data transmission apparatus turns off the first communication device until the first communication device is turned back on after receiving the data transmission request next time.
Optionally, in this embodiment, the storage medium may be further configured to store program code for performing the following steps: if the first communication device is detected to be out of order, the data sending equipment is switched to use the second communication device or the third communication device to establish first connection with the data receiving equipment; after the data transmission device turns on the second communication device, the method further includes: and if the second communication device is detected to be in fault, the data sending equipment is switched to establish second connection with the data receiving equipment by using the third communication device.
Optionally, in this embodiment, the storage medium may be further configured to store program code for performing the following steps: the data sending equipment identifies the distance between the data sending equipment and the data receiving equipment; under the condition that the distance between the data sending device and the data receiving device is within a preset distance, the data sending device receives a touch signal input by a user, wherein the touch signal is a signal generated when a touch interface of the data sending device receives a preset gesture operation, and the touch signal is used for triggering the data sending device to send a file to be transmitted to the data receiving device.
Optionally, in this embodiment, the storage medium may be further configured to store program code for performing the following steps: the data sending equipment searches through the first communication device to obtain at least one terminal equipment in a preset range; the data sending equipment initiates a pairing request to the searched terminal equipment through a first communication device, wherein the pairing request comprises: a pairing password corresponding to the terminal device; the data sending equipment determines data receiving equipment from at least one terminal equipment within a preset range according to the pairing request, wherein the data receiving equipment responds to the pairing request and verifies the terminal equipment with successful pairing password; and the data sending equipment establishes a communication link with the successfully paired data receiving equipment, wherein the data receiving equipment stores the trust information of the successfully paired data sending equipment.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (19)

1. A method for controlling file transfer, comprising:
the data sending equipment establishes a first connection with the data receiving equipment through a first communication device, sends a pairing request through the first connection and receives response information returned by the data receiving equipment;
the data sending equipment starts a second communication device to establish a second connection with the data receiving equipment according to the response information, and sends a file to be transmitted to the data receiving equipment through the second connection; and
after the data sending equipment successfully sends the file to be transmitted, closing the second communication device;
after the data sending device sends a pairing request through the first connection and receives response information returned by the data receiving device, the method further comprises the following steps: the data transmission equipment closes the first communication device until the first communication device is restarted after a data transmission request is received next time.
2. The method of claim 1, wherein the first communication device is a low-speed low-power communication module and the second communication device is a high-speed high-power communication module.
3. The method according to claim 1 or 2, wherein after the data sending device successfully establishes the first connection with the data receiving device, the method further comprises:
the data sending device identifies a distance to the data receiving device;
under the condition that the distance between the data sending device and the data receiving device is within a preset distance, the data sending device receives a touch signal input by a user, wherein the touch signal is a signal generated when a touch interface of the data sending device receives a preset gesture operation, and the touch signal is used for triggering the data sending device to send the file to be transmitted to the data receiving device.
4. The method according to claim 3, wherein the gesture operation comprises at least any one of: dragging the file to be transmitted according to a preset track, clicking the file to be transmitted according to a preset number of times for a period of time exceeding a preset time, and zooming the file to be transmitted.
5. The method of claim 1, wherein the data sending device establishes a first connection with the data receiving device through a first communication device, and the sending the pairing request and receiving the response information returned by the data receiving device through the first connection comprises:
the data sending equipment searches through the first communication device to obtain at least one terminal equipment in a preset range;
the data sending equipment initiates a pairing request to the searched terminal equipment through the first communication device, wherein the pairing request comprises: a pairing password corresponding to the terminal device;
the data sending equipment determines the data receiving equipment from at least one terminal equipment in the preset range according to the pairing request, wherein the data receiving equipment responds to the pairing request and verifies the terminal equipment with the successful pairing password;
and the data sending equipment establishes a communication link with the successfully paired data receiving equipment, wherein the data receiving equipment stores the trust information of the successfully paired data sending equipment.
6. The method of claim 1,
before the data sending apparatus establishes the first connection with the data receiving apparatus through the first communication device, the method further includes: if the first communication device is detected to be in failure, the data sending equipment is switched to use the second communication device or a third communication device to establish the first connection with the data receiving equipment;
after the data sending device starts the second communication device to establish the second connection with the data receiving device, the method further includes: and if the second communication device is detected to be in fault, the data sending equipment is switched to the third communication device, and the third communication device is used for establishing the second connection with the data receiving equipment.
7. A method for controlling file transfer, comprising:
the data receiving equipment establishes a first connection with the data sending equipment through a first communication device, receives a pairing request sent by the data sending equipment through the first connection and returns response information to the pairing request;
the data receiving equipment starts a second communication device to establish a second connection with the data sending equipment, and receives the file transmitted by the data sending equipment through the second connection; and
after the data receiving equipment successfully receives the file, closing the second communication device;
after the data receiving device receives the pairing request sent by the data sending device through the first connection and returns response information to the pairing request, the method further includes: and the data receiving equipment closes the first communication device until the first communication device is restarted after a pairing request of the data sending equipment is received next time.
8. The method according to claim 7, wherein after the data receiving device receives the file transmitted by the data sending device through the second connection, the method further comprises:
the data receiving equipment detects whether the received file is complete;
and under the condition that the file is detected to be complete, the data receiving equipment feeds back a confirmation message to the data sending equipment, wherein the confirmation message is used for indicating that the file received by the data receiving equipment is a complete file.
9. A control system for file transfer, comprising:
a data transmission apparatus comprising: a first sending device and a second sending device, which are used for initiating a connection request through the first sending device; and
a data receiving apparatus comprising: first receiving means and second receiving means for receiving the connection request through the first receiving means;
after the first connection between the data sending equipment and the data receiving equipment is successfully established, the data sending equipment starts the second sending device, the data receiving equipment starts the second receiving device, a second connection is established between the data sending equipment and the data receiving equipment, the second sending device is closed after the data sending equipment successfully sends a file to be transmitted to the data receiving equipment through the second connection, and the second receiving device is closed after the data receiving equipment successfully receives the file through the second connection;
the data sending equipment is further used for closing the first sending device after establishing first connection with the data receiving equipment, and restarting the first sending device until receiving a data sending request next time; the data receiving device is further configured to close the first receiving apparatus after establishing the first connection with the data sending device successfully, and to re-open the first receiving apparatus until a pairing request of the data sending device is received next time.
10. A control apparatus for file transfer, comprising:
the system comprises an establishing module, a sending module and a receiving module, wherein the establishing module is used for establishing a first connection between a data sending device and a data receiving device through a first communication device, sending a pairing request through the first connection and receiving response information returned by the data receiving device;
the sending module is used for the data sending equipment to start a second communication device to establish a second connection with the data receiving equipment according to the response information and send a file to be transmitted to the data receiving equipment through the second connection; and
the first closing module is used for closing the second communication device after the data sending equipment successfully sends the file to be transmitted;
wherein the apparatus further comprises: and the second closing module is used for closing the first communication device by the data sending equipment until the first communication device is restarted after a data sending request is received next time.
11. The apparatus of claim 10, wherein the first communication apparatus is a low-speed low-power communication module, and wherein the second communication apparatus is a high-speed high-power communication module.
12. The apparatus of claim 10 or 11, further comprising:
the identification module is used for identifying the distance between the data sending equipment and the data receiving equipment;
the receiving module is used for receiving a touch signal input by a user through the data sending equipment under the condition that the distance between the data sending equipment and the data receiving equipment is within a preset distance, wherein the touch signal is a signal generated when a touch interface of the data sending equipment receives a preset gesture operation, and the touch signal is used for triggering the data sending equipment to send the file to be transmitted to the data receiving equipment.
13. The apparatus according to claim 12, wherein the gesture operation comprises at least any one of: dragging the file to be transmitted according to a preset track, clicking the file to be transmitted according to a preset number of times for a period of time exceeding a preset time, and zooming the file to be transmitted.
14. The apparatus of claim 10, wherein the establishing module comprises:
the searching module is used for searching the data sending equipment through the first communication device to obtain at least one terminal equipment in a preset range;
a sub-initiating module, configured to initiate, by the data sending device, a pairing request to the searched terminal device through the first communication apparatus, where the pairing request includes: a pairing password corresponding to the terminal device;
a determining module, configured to determine, by the data sending device, the data receiving device from at least one terminal device within the preset range according to the pairing request, where the data receiving device is a terminal device that responds to the pairing request and verifies that the pairing password is successful;
and the sub-establishing module is used for establishing a communication link between the data sending equipment and the successfully paired data receiving equipment, wherein the data receiving equipment stores the trust information of the successfully paired data sending equipment.
15. The apparatus of claim 10, further comprising:
the first switching module is used for switching the data sending equipment to use the second communication device or a third communication device to establish first connection with the data receiving equipment if the first communication device is detected to have a fault before the data sending equipment establishes the first connection with the data receiving equipment through the first communication device;
and the second switching module is used for switching the data sending equipment to use the third communication device to establish second connection with the data receiving equipment if the second communication device is detected to have a fault after the data sending equipment starts the second communication device to establish second connection with the data receiving equipment.
16. A control apparatus for file transfer, comprising:
the system comprises an establishing module, a sending module and a receiving module, wherein the establishing module is used for establishing a first connection between a data receiving device and a data sending device through a first communication device, receiving a pairing request sent by the data sending device through the first connection and returning response information to the pairing request;
the starting module is used for starting a second communication device by the data receiving equipment to establish a second connection with the data sending equipment and receiving the file transmitted by the data sending equipment through the second connection; and
a first closing module, configured to close the second communication device after the data receiving device successfully receives the file;
wherein the apparatus further comprises: and the second closing module is used for closing the first communication device by the data receiving equipment until the first communication device is restarted after a pairing request of the data sending equipment is received next time.
17. The apparatus of claim 16, further comprising:
the detection module is used for detecting whether the received file is complete or not by the data receiving equipment;
a feedback module, configured to, when it is detected that the file is complete, feed back, by the data receiving device, an acknowledgement message to the data sending device, where the acknowledgement message is a message used to indicate that the file received by the data receiving device is a complete file.
18. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is arranged to execute the method of any of the claims 1 to 6, or of claim 7, or of claim 8 when executed.
19. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of the claims 1 to 6, or of claim 7, or of claim 8 by means of the computer program.
CN201610011272.0A 2016-01-07 2016-01-07 File transmission control method, device and system Active CN105472038B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610011272.0A CN105472038B (en) 2016-01-07 2016-01-07 File transmission control method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610011272.0A CN105472038B (en) 2016-01-07 2016-01-07 File transmission control method, device and system

Publications (2)

Publication Number Publication Date
CN105472038A CN105472038A (en) 2016-04-06
CN105472038B true CN105472038B (en) 2020-06-16

Family

ID=55609300

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610011272.0A Active CN105472038B (en) 2016-01-07 2016-01-07 File transmission control method, device and system

Country Status (1)

Country Link
CN (1) CN105472038B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105956418A (en) * 2016-04-19 2016-09-21 努比亚技术有限公司 File processing method, sending terminal and receiving terminal
CN106027557A (en) * 2016-07-01 2016-10-12 惠州Tcl移动通信有限公司 Data backup method
CN106231661A (en) * 2016-09-29 2016-12-14 中国联合网络通信集团有限公司 Internet-of-things terminal and data uploading method, Internet of Things server
CN106658677B (en) 2016-11-01 2019-10-08 飞天诚信科技股份有限公司 A kind of Bluetooth communication method and terminal for taking into account communication speed and power consumption
CN106686535B (en) * 2017-01-23 2020-02-11 飞天诚信科技股份有限公司 Method and device for realizing low-power-consumption Bluetooth communication on iOS system
CN107018554B (en) * 2017-03-07 2020-11-06 Oppo广东移动通信有限公司 Data transmission method and device and intelligent terminal
CN107222847B (en) * 2017-06-26 2020-01-14 Oppo广东移动通信有限公司 Data transmission method, device and terminal
CN107277147A (en) * 2017-06-28 2017-10-20 上海斐讯数据通信技术有限公司 Document transmission method, device and the computer-processing equipment of mobile terminal
CN108462953B (en) * 2018-03-30 2021-09-21 北京金山安全软件有限公司 File transmission method and device, electronic equipment and storage medium
CN113271324A (en) * 2020-02-14 2021-08-17 深圳市万普拉斯科技有限公司 File transmission method and device, electronic equipment and readable storage medium
CN117062084A (en) * 2023-09-15 2023-11-14 深圳旷世科技有限公司 Device connection method, terminal and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103686051A (en) * 2013-11-15 2014-03-26 青岛歌尔声学科技有限公司 Portable communication device, intelligent watch, and communication system
CN103763526A (en) * 2014-01-10 2014-04-30 浙江宇视科技有限公司 Monitoring control method and device
CN203761495U (en) * 2013-11-15 2014-08-06 青岛歌尔声学科技有限公司 Portable communication device, intelligent watch and communication system
CN104077906A (en) * 2014-06-30 2014-10-01 长城信息产业股份有限公司 Automatic data collection device and method based on NFC (Near Field Communication)
CN104105053A (en) * 2014-07-14 2014-10-15 康佳集团股份有限公司 Method and system for achieving file sharing through NFC technology and Bluetooth technology
CN204010286U (en) * 2014-06-30 2014-12-10 长城信息产业股份有限公司 A kind of automatic data collection device based on NFC
CN105101055A (en) * 2015-07-03 2015-11-25 惠州Tcl移动通信有限公司 File transfer method and intelligent equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150326774A1 (en) * 2014-05-06 2015-11-12 Comanche Outfitters LLC Device with two wireless protocols

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103686051A (en) * 2013-11-15 2014-03-26 青岛歌尔声学科技有限公司 Portable communication device, intelligent watch, and communication system
CN203761495U (en) * 2013-11-15 2014-08-06 青岛歌尔声学科技有限公司 Portable communication device, intelligent watch and communication system
CN103763526A (en) * 2014-01-10 2014-04-30 浙江宇视科技有限公司 Monitoring control method and device
CN104077906A (en) * 2014-06-30 2014-10-01 长城信息产业股份有限公司 Automatic data collection device and method based on NFC (Near Field Communication)
CN204010286U (en) * 2014-06-30 2014-12-10 长城信息产业股份有限公司 A kind of automatic data collection device based on NFC
CN104105053A (en) * 2014-07-14 2014-10-15 康佳集团股份有限公司 Method and system for achieving file sharing through NFC technology and Bluetooth technology
CN105101055A (en) * 2015-07-03 2015-11-25 惠州Tcl移动通信有限公司 File transfer method and intelligent equipment

Also Published As

Publication number Publication date
CN105472038A (en) 2016-04-06

Similar Documents

Publication Publication Date Title
CN105472038B (en) File transmission control method, device and system
US11696207B2 (en) Data transmission method, electronic device, and computer readable storage medium
KR101820392B1 (en) Method, device and system for establishing data connection
JP6312842B2 (en) System, method, and program for supporting data communication in heterogeneous environment
CN105557036A (en) Efficient automatic sharing of network access among devices
JP6254747B2 (en) Information providing method, apparatus, program, and recording medium
CN108781473B (en) Method and equipment for sharing files among different terminals
KR101332813B1 (en) Wireless communication apparatus and method for generating wireless access channel thereof
CN103716393A (en) Resource sharing method and device and terminal used for LAN communication
CN106658756B (en) Method and device for identifying connection between terminal equipment and hotspot
US9535638B2 (en) Directly transferring data between devices
CN110505640B (en) Device binding processing method, device and system, to-be-configured network device and terminal
KR20120075477A (en) Group owner selection with crossing requests
CN111064552B (en) Intelligent device control method and device, electronic device and storage medium
CN110248364A (en) IOT equipment distribution method, apparatus, equipment and medium
WO2020011026A1 (en) Terminal application control method, apparatus, and system
CN103369529A (en) Identity authentication method, access point (AP) and access controller (AC)
CN112637931A (en) Method and device for establishing network connection
CN103345828A (en) Method and system for controlling computer through intelligent terminal
CN105099836A (en) BLE intelligent node control method and system
CN110933775A (en) Method and device for establishing signal connection and electronic equipment
EP3500044A1 (en) Processing method and device for radio bearer, terminal and base station
CN105530360A (en) Dual system switching method and terminal
EP4149130B1 (en) Wireless terminal comprising system on chip (soc) with security subsystem
Lee Non-connection wireless IoT network control using WiFi and bluetooth beacon

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant