CN109309967B - Method, device and computer readable storage medium for transmitting file - Google Patents

Method, device and computer readable storage medium for transmitting file Download PDF

Info

Publication number
CN109309967B
CN109309967B CN201811512549.3A CN201811512549A CN109309967B CN 109309967 B CN109309967 B CN 109309967B CN 201811512549 A CN201811512549 A CN 201811512549A CN 109309967 B CN109309967 B CN 109309967B
Authority
CN
China
Prior art keywords
terminal
networking application
network
wifi
connection request
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
CN201811512549.3A
Other languages
Chinese (zh)
Other versions
CN109309967A (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.)
Lianshang Xinchang Network Technology Co Ltd
Original Assignee
Lianshang Xinchang Network Technology 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 Lianshang Xinchang Network Technology Co Ltd filed Critical Lianshang Xinchang Network Technology Co Ltd
Priority to CN201811512549.3A priority Critical patent/CN109309967B/en
Publication of CN109309967A publication Critical patent/CN109309967A/en
Application granted granted Critical
Publication of CN109309967B publication Critical patent/CN109309967B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • 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]

Abstract

The invention provides a method, equipment and a computer readable storage medium for transmitting files, wherein the method for transmitting the files comprises the following steps: in response to receiving a network connection request sent by a first terminal, a second terminal redirects the network connection request to a preset network address, so that the first terminal acquires an installation program package of networking application from the network address and installs the installation program package; the network connection request comprises network information of a WiFi hotspot created by a networking application on the second terminal; and the networking application on the second terminal and the networking application on the first terminal are connected in a WiFi direct connection mode and transmit files. The invention can guide the first terminal to avoid flow downloading and install the networking application when the first terminal is not provided with the networking application providing the WiFi direct connection function, and realizes that the files are transmitted between the two terminals in a WiFi direct connection mode, thereby realizing the flexible high-speed file transmission without using data flow or a WiFi network.

Description

Method, device and computer readable storage medium for transmitting file
[ technical field ] A method for producing a semiconductor device
The present invention relates to communication technologies, and in particular, to a device and a computer-readable storage medium for transmitting a file.
[ background of the invention ]
With the continuous development of modern construction, networks are widely popularized, and great convenience is brought to life, office work and the like of people. The popularization of the intelligent mobile terminal brings convenience to the life of people, various services can be performed by using various applications on the intelligent mobile terminal, the internet traffic needs to be consumed correspondingly, and users often surf the internet through a Wireless compatibility authentication (WiFi) hotspot as much as possible in order to save traffic cost. Many third party networking applications, such as WiFi passkey, WiFi housekeeping, etc., have been developed for people to quickly and efficiently connect to the network.
In the process of implementing the present invention, through research, the inventor finds that the existing third-party networking application only supports changing one of the mobile terminals into a portable WiFi hotspot, provides a connection service for the other mobile terminal using data traffic, and if a file needs to be transmitted between the two mobile terminals, the use of data traffic requires higher cost and has a slow transmission speed.
[ summary of the invention ]
Aspects of the present invention provide a method, an apparatus, and a computer-readable storage medium for transmitting a file, which are used to transmit a file between two terminals using a WiFi Direct (WiFi Direct) method.
In one aspect of the present invention, a method for transmitting a file is provided, including:
in response to receiving a network connection request sent by a first terminal, a second terminal redirects the network connection request to a preset network address, so that the first terminal acquires an installation program package of networking application from the network address and installs the installation program package; the network connection request comprises network information of a WiFi hotspot created by a networking application on the second terminal;
and the networking application on the second terminal and the networking application on the first terminal are connected in a WiFi direct connection mode and transmit files.
In another aspect of the present invention, there is provided an apparatus comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method of transferring files as provided in an aspect above.
In another aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored, which when executed by a processor implements a method of transferring a file as provided in the above aspect.
According to the technical scheme, when the first terminal is not provided with the networking application providing the WiFi direct connection function, the first terminal can send the network connection request for connecting the WiFi hot spot created by the networking application on the second terminal to the second terminal, the second terminal redirects the network connection request to the preset network address so as to guide the first terminal to actively download and install the networking application from the network address without manual operation of a user, and then the networking application on the first terminal and the networking application on the second terminal are connected in the WiFi direct connection mode and transmit files, so that the files can be transmitted between the two terminals in the WiFi direct connection mode, the files can be flexibly transmitted at high speed without data flow or WiFi network, the cost is saved, the file transmission speed is increased, and the user experience is improved.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed in the embodiments or the prior art descriptions will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without inventive labor.
FIG. 1 is a flowchart illustrating a method for transferring a file according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for transferring a file according to another embodiment of the present invention;
FIG. 3 is a block diagram of an exemplary computer system/server suitable for use in implementing embodiments of the present invention.
[ detailed description ] embodiments
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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 some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
It should be noted that the terminal according to the embodiment of the present invention may include, but is not limited to, a mobile phone, a Personal Digital Assistant (PDA), a wireless handheld device, a Tablet Computer (Tablet Computer), a Personal Computer (PC), an MP3 player, an MP4 player, a wearable device (e.g., smart glasses, smart watch, smart bracelet, etc.), and the like.
In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
Fig. 1 is a flowchart illustrating a method for transmitting a file according to an embodiment of the present invention. As shown in fig. 1, a method for transferring a file according to an embodiment of the present invention includes:
and 101, in response to receiving the network connection request sent by the first terminal, the second terminal redirects the network connection request to a preset network address, so that the first terminal can acquire and install an installation program package of the networking application from the network address.
The network connection request comprises network information of a WiFi hotspot created by the networking application on the second terminal.
In a possible implementation manner of this embodiment, the network information of the WiFi hotspot may include, but is not limited to, any one or more of the following: the wireless network name (SSID) of the WiFi hotspot is also the Service Set Identifier and password; a network information code generated by the SSID and the password of the WiFi hotspot, such as a two-dimensional code, a bar code and the like generated by the SSID and the password; the user identifier uniquely identifies a user, and may be, for example, a user avatar carrying a user name.
In one possible implementation manner, the user identifier may be represented as a user avatar and a user name, where the user name may be an SSID of a WiFi hotspot, a name of a terminal user, or any name set by the terminal user, and the like, which is not limited in this disclosure.
Wherein, the preset network address is used for pointing to the network position storing the installation program package of the networking application. Alternatively, the preset network address may be a network address of a public network or a network address of an intranet (i.e., a local area network). The network address of the intranet may be, for example, a network address of the second terminal or a network address of another device that is convenient for the first terminal to access, that is, the installer package of the networking application may be stored in the second terminal or another device that is convenient for the first terminal to access in advance.
When the preset network address can be the network address of an intranet, the first terminal can be guided to download without flow and install the networking application.
And 102, connecting the networking application on the second terminal with the networking application on the first terminal in a WiFi direct connection mode and transmitting the file.
The file may include, but is not limited to, any one or more of the following: pictures, audio, video, installer packages, text, and the like.
The WiFi Direct is a point-to-point WiFi connection technology, and a TCP/IP link is directly established between two terminals. One of the terminals may function as an AP in the conventional sense and may be referred to as a Group Owner (GO), and the other one or more terminals may be referred to as Group clients (DC), and the GC is connected to the GO as if connected to the AP. GO and GC can be not only one-to-one, but also one-to-many, GO can provide service for several GCs like AP, it can connect to a certain AP like traditional terminal, at this time it can be an AP itself. The WiFi Direct architecture can support protocols of 802.11a, 802.11g, 802.11n and above, is greatly improved in transmission speed and transmission distance compared with Bluetooth, and simultaneously supports encryption mechanisms such as WPA2 and the like. The WiFi Direct can be oriented to various Wi-Fi devices, from a computer to a mobile phone, to a computer peripheral, to a household appliance and the like, and the devices conforming to the standard can be directly connected with other devices conveniently without hotspots and routers, and can transmit data or share application.
According to the invention, a P2P network can be established between two terminals through a WiFi Direct technology, and the terminals with networking applications can provide hot spots.
Based on the embodiment of the invention, when the first terminal is not provided with the networking application providing the WiFi direct connection function, the first terminal can send a network connection request for connecting the WiFi hot spot created by the networking application on the second terminal to the second terminal, the second terminal redirects the network connection request to the preset network address so as to guide the first terminal to actively download and install the networking application from the network address without manual operation of a user, and then the networking application on the first terminal and the networking application on the second terminal are connected in a WiFi direct connection mode and transmit files, so that the files are transmitted between the two terminals in the WiFi direct connection mode, the files can be flexibly transmitted at high speed without using data flow or a WiFi network, the cost is saved, the file transmission speed is increased, and the user experience is improved.
It should be noted that the execution subject of the method for transmitting the file according to the embodiment of the present invention may be any product having or capable of implementing a networking function, for example, a WiFi master key, a WiFi housekeeper, a safe WiFi, a 360-free WiFi, a WiFi master assistant, and the like. Part or all of the product may be an application located at the local terminal, or may be a functional unit such as a plug-in or Software Development Kit (SDK) set in the application located at the local terminal, or may also be a partition platform located in a server on the network side, or may also be a distributed system located on the network side, which is not particularly limited in this embodiment.
It should be understood that the application of the local terminal may be a local program (native app) installed on the terminal, or may also be a web page program (webApp) of a browser on the terminal, which is not limited in this embodiment.
Optionally, in the method for transmitting a file according to another embodiment of the present invention, before step 101, the method may further include:
it is determined whether the first terminal has installed a networking application.
Then, in this embodiment, specifically, in response to that the first terminal does not install the networking application, steps 101 to 102 in the above embodiment may be performed so as to guide the first terminal to download and install the installer package for the networking application.
In addition, further in response to the first terminal having installed the networking application, step 102 may be directly performed, and the networking application on the second terminal and the networking application on the first terminal may be directly connected and transmit the file by using the WiFi direct manner. In this operation, either one of the second terminal and the first terminal may serve as a sender to send a file to the networking application on the other terminal through the networking application, or may serve as a receiver to receive a file sent by the other party through the networking application.
In a possible implementation manner of this embodiment, before the step 101, the method may further include: the method comprises the steps that a user enters a Wireless Local Area Network (WLAN) option in a system setting option of a first terminal, Network information (such as SSID and passwords) of a WiFi hotspot is input into the WLAN option and then a Network connection request is sent, the first terminal receives the Network connection request sent after the user inputs the Network information of the WiFi hotspot in the WLAN option in the system setting option of the first terminal, and the Network connection request is forwarded to a second terminal creating the WiFi hotspot according to the Network information of the WiFi hotspot in the Network connection request.
In the method for transmitting a file according to another embodiment of the present invention, after step 101, the method may further include: and the first terminal acquires an installation program package of the networking application from the network address and installs the installation program package.
Based on the embodiment, a user can enter a WLAN option in system setting options of a first terminal, a network connection request is sent after network information of a WiFi hotspot is input in the WLAN option, an operating system of the first terminal can forward the network connection request to a second terminal after receiving the network connection request, and the network connection request is redirected to a preset network address by the second terminal so as to guide the first terminal to automatically position, download and install an installation program package of networking applications, so that the problems that the user manually inputs the network address in a browser address bar to download third-party networking applications, the operation is complicated, and errors are easily caused when the user manually inputs the network address in an intranet can be effectively avoided.
In the above embodiment, after the first terminal obtains the data packet of the networking application from the preset network address and installs the data packet, the method may further include: the networking application on the first terminal is started and the file transfer page is presented. Then, the user may select a file through the file transfer page and transfer the file to a terminal that establishes the WiFi direct connection, such as a second terminal, or other terminals that establish the WiFi direct connection.
In a possible implementation manner of this embodiment, in step 102, the connecting, by using a WiFi direct connection manner, the connecting, by the networking application on the second terminal and the networking application on the first terminal may include: one of the networking application on the first terminal and the networking application on the second terminal responds to the network information read to the WiFi hotspot of the other networking application, such as scanning the network information code of the WiFi hotspot of the other networking application, and reads the SSID and the password of the WiFi hotspot of the other networking application from the network information two-dimensional code, so that WiFi direct connection is established with the other networking application.
Alternatively, in another possible implementation manner of this embodiment, in step 102, the connecting, by using a WiFi direct connection manner, the connecting, by the networking application on the second terminal and the networking application on the first terminal may include: after the networking application on the first terminal and/or the networking application on the second terminal respond to the networking application scanned to other terminals, adding user identifications of the other terminals to a user list, wherein the other terminals comprise any terminals except the current terminal; one party networking application receives a connection indication sent by a user after selecting a user identifier corresponding to the other party networking application (namely the user of the terminal where the other party networking application is located) in a user list, and establishes WiFi direct connection with the other party networking application. Wherein, the network application scans the network applications on other terminals, which means that the network applications actively discover the network applications on other terminals through the communication protocol of the network applications.
Wherein, one networking application can be a networking application on the first terminal and also can be a networking application on the second terminal; correspondingly, the other networking application is the networking application on the first terminal and the networking application on the second terminal except the one networking application.
Based on the mode, WiFi direct connection between the networking application on the first terminal and the networking application on the second terminal is achieved.
In addition, in a method for transmitting a file according to another embodiment of the present invention, before the method for transmitting a file according to each of the embodiments, the method may further include:
the networking application on the second terminal creates a WiFi hotspot and generates network information of the WiFi hotspot.
Optionally, in the method for transmitting a file according to another embodiment of the present invention, after the networking application on the second terminal creates the WiFi hotspot and generates the network information of the WiFi hotspot, the method may further include: and the networking application on the second terminal displays the network information of the WiFi hotspot. The network information of the WiFi hotspot may include, but is not limited to, any one or more of the following: the SSID and password of the WiFi hotspot; a network information two-dimensional code generated by the wireless network name and the password of the WiFi hotspot; and (4) identifying the user.
After the networking application on the second terminal displays the network information of the WiFi hotspot, the networking application on the user or other user terminals can read the network information conveniently, the networking application on other terminals can read the network information, and WiFi direct connection is established.
Fig. 2 is a flowchart illustrating a method for transmitting a file according to another embodiment of the present invention. As shown in fig. 2, a method for transferring a file according to another embodiment of the present invention includes:
and 201, the networking application on the second terminal creates a WiFi hotspot and generates network information of the WiFi hotspot.
The network information of the WiFi hotspot may include, but is not limited to, any one or more of the following: the SSID and password of the WiFi hotspot; a network information two-dimensional code generated by the wireless network name and the password of the WiFi hotspot; and (4) identifying the user.
202, the networking application on the second terminal displays the network information of the WiFi hotspot.
203, it is determined whether the first terminal has installed a networking application.
If the first terminal does not have a networking application installed, step 204 is performed. If the first terminal has installed a networking application, operation 207 is performed.
And 204, the first terminal receives a network connection request sent by the user after the user inputs the network information of the WiFi hotspot in the WLAN options in the system setting options of the first terminal, and forwards the network connection request to the second terminal.
205, the second terminal redirects the network connection request to a pre-set network address.
And 206, the first terminal acquires an installation program package of the networking application from the network address of the intranet and installs the installation program package.
After the installation of the networking application on the first terminal is completed and started, the file transfer page can be presented.
And 207, connecting the networking application on the first terminal with the networking application on the second terminal by using a WiFi direct connection mode.
For a specific implementation that the networking application on the first terminal and the networking application on the second terminal are connected in the WiFi direct connection manner, reference may be made to the descriptions of the above embodiments, and details are not described here.
208, one of the networking application on the first terminal and the networking application on the second terminal transmits the file to be transmitted to the other networking application in a WiFi direct connection mode according to an instruction transmitted after the file to be transmitted is selected by a user.
Wherein, one networking application can be a networking application on the first terminal and also can be a networking application on the second terminal; correspondingly, the other networking application is the networking application on the first terminal and the networking application on the second terminal except the one networking application.
It should be noted that the step 208 can be repeatedly executed according to the file transmission requirement based on the instruction sent by the user.
In addition, in the foregoing embodiments of the present invention, after the connection between the networking application on the first terminal and the networking application on the second terminal is performed in a WiFi direct manner, the method may further include:
one of the networking application on the first terminal and the networking application on the second terminal disconnects WiFi direct connection with the other networking application after responding to the received instruction of disconnecting the other networking application.
In a possible implementation manner of this embodiment, the user may enter a WLAN option in the system setting options of the first terminal, and send an instruction to disconnect after inputting network information of a WiFi hotspot to be disconnected in the WLAN option.
Alternatively, in another possible implementation manner of this embodiment, the user may also send an indication of disconnection after selecting, from the user list, a user identifier corresponding to the networking application to be disconnected on a page of the networking application.
Based on the embodiment, the WiFi direct connection between the two networking applications can be disconnected in time so as to protect data security.
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.
In the foregoing embodiments, 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 addition, an embodiment of the present invention further provides an apparatus, where the apparatus includes: one or more processors; a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a method of transferring files in accordance with any embodiment of the invention.
FIG. 3 illustrates a block diagram of an exemplary computer system/server suitable for use in implementing embodiments of the present invention. The computer system/server illustrated in FIG. 3 is only one example and should not be taken to limit the scope of use or functionality of embodiments of the present invention.
As shown in fig. 3, the computer system/server is in the form of a general purpose computing device. Components of the computer system/server may include, but are not limited to: one or more processors or processing units 16, a storage device or system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
The computer system/server typically includes a variety of computer system readable media. Such media may be any available media that is accessible by the computer system/server and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. The computer system/server may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 3, and commonly referred to as a "hard drive"). Although not shown in FIG. 3, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
The computer system/server may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with the computer system/server, and/or with any devices (e.g., network card, modem, etc.) that enable the computer system/server to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 44. Also, the computer system/server may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet) via the network adapter 20. As shown, network adapter 20 communicates with the other modules of the computer system/server via bus 18. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the computer system/server, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, implementing a method for transferring files provided in any of the embodiments corresponding to fig. 1-2.
Another embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for transferring a file provided in any embodiment corresponding to fig. 1 to fig. 2.
In particular, any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or page components may be combined or 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, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
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, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (15)

1. A method of transferring a file, comprising:
in response to receiving a network connection request sent by a first terminal, a second terminal redirects the network connection request to a preset network address, so that the first terminal acquires an installation program package of networking application from the network address and installs the installation program package; the network connection request comprises network information of a WiFi hotspot created by a networking application on the second terminal;
and the networking application on the second terminal and the networking application on the first terminal are connected in a WiFi direct connection mode and transmit files.
2. The method according to claim 1, wherein the redirecting the network connection request to a preset network address by the second terminal in response to receiving the network connection request sent by the first terminal comprises:
and in response to the first terminal not installing the networking application, executing the operation that the second terminal redirects the network connection request to a preset network address in response to receiving the network connection request sent by the first terminal.
3. The method of claim 2, further comprising:
and responding to the fact that the networking application is installed on the first terminal, and executing the operation that the networking application on the second terminal is connected with the networking application on the first terminal in a WiFi direct connection mode.
4. The method of claim 1, wherein before the responding to the network connection request sent by the first terminal, the method further comprises:
and in response to receiving a network connection request sent after the user inputs the network information of the WiFi hotspot in a WLAN option in system setting options of the first terminal, the first terminal forwards the network connection request to the second terminal.
5. The method of claim 1, wherein the preset network address comprises: a network address of a public network, or a network address of an intranet.
6. The method according to claim 1, wherein after the second terminal redirects the network connection request to a preset network address, the method further comprises:
and the first terminal acquires an installation program package of the networking application from the network address and installs the installation program package.
7. The method of claim 6, wherein after the first terminal obtains the data packet of the networking application from the network address and installs the data packet, the method further comprises:
and starting the networking application on the first terminal and displaying the file transmission page.
8. The method of claim 1, wherein connecting the networking application on the second terminal with the networking application on the first terminal using WiFi direct comprises:
one of the networking application on the first terminal and the networking application on the second terminal responds to the network information code of the WiFi hotspot read to the other networking application and establishes WiFi direct connection with the other networking application; alternatively, the first and second electrodes may be,
after the networking application on the first terminal and/or the networking application on the second terminal respond to the networking application scanned to other terminals, the user identifications of the other terminals are added to a user list;
and the one-party networking application receives a connection instruction sent by a user after selecting a user identifier corresponding to the other-party networking application in the user list, and establishes WiFi direct connection with the other-party networking application.
9. The method of claim 1, wherein the file comprises any one or more of: pictures, audio, video, installer packages, text.
10. The method according to any one of claims 1 to 9, wherein before the responding to the network connection request sent by the first terminal, the method further comprises:
and the networking application on the second terminal creates a WiFi hotspot and generates network information of the WiFi hotspot.
11. The method of claim 10, wherein the network information of the WiFi hotspot comprises any one or more of: a wireless network name and password of the WiFi hotspot; a network information two-dimensional code generated by the wireless network name and the password of the WiFi hotspot; and (4) identifying the user.
12. The method of claim 10, wherein after the networking application on the second terminal creates a WiFi hotspot and generates network information for the WiFi hotspot, further comprising:
and the networking application on the second terminal displays the network information of the WiFi hotspot.
13. The method according to any one of claims 1 to 9, wherein after the connection between the networking application on the second terminal and the networking application on the first terminal is implemented by using a WiFi direct method, the method further comprises:
and one of the networking application on the second terminal and the networking application on the first terminal responds to the received instruction of disconnecting from the other networking application, and then the WiFi direct connection with the other networking application is disconnected.
14. An apparatus, characterized in that the apparatus comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method as claimed in any one of claims 1 to 13.
15. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1 to 13.
CN201811512549.3A 2018-12-11 2018-12-11 Method, device and computer readable storage medium for transmitting file Active CN109309967B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811512549.3A CN109309967B (en) 2018-12-11 2018-12-11 Method, device and computer readable storage medium for transmitting file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811512549.3A CN109309967B (en) 2018-12-11 2018-12-11 Method, device and computer readable storage medium for transmitting file

Publications (2)

Publication Number Publication Date
CN109309967A CN109309967A (en) 2019-02-05
CN109309967B true CN109309967B (en) 2021-01-19

Family

ID=65222480

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811512549.3A Active CN109309967B (en) 2018-12-11 2018-12-11 Method, device and computer readable storage medium for transmitting file

Country Status (1)

Country Link
CN (1) CN109309967B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112261624B (en) * 2019-12-31 2022-01-11 华为技术有限公司 Method, electronic equipment and system for transmitting file in application
CN111953793B (en) * 2020-08-19 2023-04-18 彩讯科技股份有限公司 Application distribution method, device, terminal and storage medium
CN112654020B (en) * 2020-12-15 2023-03-28 阿波罗智联(北京)科技有限公司 Method, device, equipment and storage medium for establishing wireless connection
CN113852947A (en) * 2021-10-29 2021-12-28 中国电信股份有限公司 Data transmission method and device and storage medium
CN114143910A (en) * 2021-12-09 2022-03-04 惠州Tcl移动通信有限公司 Data transmission method, device and computer readable storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101616405A (en) * 2009-07-24 2009-12-30 曹虎山 Wireless Internet access method and wireless router
US20150081734A1 (en) * 2013-09-13 2015-03-19 Jeffrey Scott Mason Information sharing between a host and an audience
CN103648180A (en) * 2013-12-04 2014-03-19 北京奇虎科技有限公司 Method and device for sharing files between terminal devices
CN105553943B (en) * 2015-12-07 2019-05-28 广州视睿电子科技有限公司 Pass transmission method, screen transmission method, equipment and the data transmission system of screen software
CN106888498A (en) * 2017-01-25 2017-06-23 北京奇虎科技有限公司 A kind of inter-terminal data transmission method, device and mobile terminal

Also Published As

Publication number Publication date
CN109309967A (en) 2019-02-05

Similar Documents

Publication Publication Date Title
CN109309967B (en) Method, device and computer readable storage medium for transmitting file
US11310239B2 (en) Network connection method, hotspot terminal and management terminal
JP6515207B2 (en) Internet access authentication method and client, and computer storage medium
CN102255887B (en) Method and system for providing online services corresponding to multiple mobile devices
CN108810123B (en) Method and apparatus for provisioning mobile cellular network services
US20100174791A1 (en) Short distance wireless communication system and method for accessing instant messenger
EP2922276B1 (en) File sharing method, apparatus, and mobile device
CN109996260B (en) Configuration system, client device, embedded device configuration method and storage medium
CN103916987A (en) Apparatus and method for providing integrated device information
CN110113250B (en) Method for sharing wireless access point through instant messaging software
CN105389175A (en) Application program sharing method and mobile terminal
KR101367036B1 (en) Method for connecting a remote network and system for connecting a remote network
EP2905938B1 (en) Method for acquiring locating information, terminal and mobile broadband interface model (mbim) device
CN112752245A (en) Network distribution method and device, electronic equipment and storage medium
EP2406935B1 (en) System and method for peer-to-peer staging of a mobile device
EP3979071B1 (en) Method, user equipment, and application server for downloading application
CN110601986A (en) Router supporting peripheral control over mobile terminal equipment, control method and device
CN111163455B (en) User identification number migration method, device, terminal and storage medium
CN112073771A (en) Wireless screen projection method and device
CN109104774B (en) Data transmission method and system
EP3015990B1 (en) Information processing device, and destination information updating method and program
KR101344763B1 (en) File sharing method between mobile terminals using near field communication
US20170318412A1 (en) Method for transmitting data between two subscribers
CN105163399B (en) Data sharing method and device
KR101780321B1 (en) Message management system and method using an user terminal

Legal Events

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