WO2018045561A1 - 一种文件的发送方法、接收方法及终端 - Google Patents
一种文件的发送方法、接收方法及终端 Download PDFInfo
- Publication number
- WO2018045561A1 WO2018045561A1 PCT/CN2016/098580 CN2016098580W WO2018045561A1 WO 2018045561 A1 WO2018045561 A1 WO 2018045561A1 CN 2016098580 W CN2016098580 W CN 2016098580W WO 2018045561 A1 WO2018045561 A1 WO 2018045561A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- terminal
- wifi direct
- ble
- connection
- target terminal
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 104
- 230000005540 biological transmission Effects 0.000 title abstract description 16
- 230000006870 function Effects 0.000 claims description 69
- 238000004891 communication Methods 0.000 claims description 22
- 230000004044 response Effects 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 11
- 230000008569 process Effects 0.000 description 11
- 230000009286 beneficial effect Effects 0.000 description 9
- 230000009471 action Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 230000001360 synchronised effect Effects 0.000 description 2
- 235000008694 Humulus lupulus Nutrition 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000009365 direct transmission Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/005—Discovery of network devices, e.g. terminals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B5/00—Near-field transmission systems, e.g. inductive or capacitive transmission systems
- H04B5/40—Near-field transmission systems, e.g. inductive or capacitive transmission systems characterised by components specially adapted for near-field transmission
- H04B5/48—Transceivers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/18—Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
- H04W48/10—Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/15—Setup of multiple wireless link connections
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/02—Terminal devices
- H04W88/06—Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
Definitions
- the present invention relates to the field of mobile communications technologies, and in particular, to a file sending method, a receiving method, and a terminal.
- the user triggers the discovery side and the discovered party to perform Bluetooth scanning, and the discovery party and the discovered party respectively hop on the 79 channels in different sequences until the frequency hopping is synchronized, and the discovery party succeeds. Scan the discovered party and obtain the discovered device information. The user selects the connected device. The connected party estimates the sequence of the connected party, sends a connection request, and establishes the connection to transfer the file. It should be noted that the discovery party is Before using the classic Bluetooth to establish a Bluetooth connection, the discovery party needs to hop on 79 channels until the two hops are synchronized to successfully scan the other party. When using Classic Bluetooth for file sharing, the Bluetooth connection is established for a long time and the efficiency is low. In addition, the classic Bluetooth transmission speed is only 2.1Mbps.
- the sender and the receiver enter the scanning state, and stay on the 2.4G and 5G channels for detection for a period of time.
- the number of channels is increased by more than twenty, and the scanning period is long.
- the technical problem to be solved by the embodiments of the present invention is to provide a file sending method and receiving
- the method and the related terminal solve the problem that the transmitting terminal finds that the receiving terminal takes a long time and has low efficiency in the prior art.
- an embodiment of the present invention provides a file sending method, which is applied to a first terminal that sends the file to a target terminal, where the first terminal has started a Bluetooth Low Energy (BLE) function and
- the wireless direct connection wifi direct function the method may include: the first terminal scans in a low-power Bluetooth (BLE) broadcast channel to acquire a broadcast packet sent by at least one second terminal, and determines that the broadcast packet can be found according to the broadcast packet.
- BLE Bluetooth Low Energy
- At least one second terminal and then determining a target terminal for receiving a file from the at least one second terminal that can be found; the first terminal transmitting a connection request to the target terminal, establishing a BLE with the target terminal Connecting: the first terminal sends a high-fidelity direct connection (wifi direct) connection parameter to the target terminal by using the BLE data channel of the BLE connection; the first terminal receives a request for establishing a wifi direct sent by the target terminal And after receiving the request to establish wifi direct, handshake with the target terminal to establish wifi direct, the establishing wifi direct The request is sent by the target terminal to the first terminal according to the parameter configuration of the connection parameter; the first terminal is a group owner (GO) of wifi direct, and the target terminal is wifi direct a group client (GC); the first terminal transmits the file to the target terminal by using the wifi direct established with the target terminal.
- a high-fidelity direct connection wifi direct
- the technical solution provided by the embodiment of the present invention is convenient for quickly discovering the second terminal that can be found; Since the first terminal discovers the second terminal that can be discovered by scanning the broadcast packet of the second terminal and determines the target terminal, the method for determining the target terminal is simple and the process is short, which is advantageous for quickly determining the target terminal.
- the target terminal can directly initiate the request to establish the wifi direct, and can also shorten the time of establishing the wifi direct.
- the technical solution provided by the embodiment of the present invention is beneficial to improving the efficiency of file sharing.
- the method further includes: acquiring, by the first terminal, the target terminal Whether the wifi direct interface is occupied or not; if the information indicates that the wifi direct interface of the target terminal is occupied, the bulletin is displayed on the display interface of the first terminal An alert message that the file cannot be successfully sent temporarily, if the information indicates that the wifi direct interface of the target terminal is not occupied, the first terminal sends a wifi direct to the target terminal through the BLE data channel of the BLE connection. Connection parameters.
- the information obtained by the embodiment of the present invention is obtained, and when the wifi direct interface is occupied, a reminder message that the file cannot be successfully sent is temporarily popped up, and Stop sending wifi direct connection parameters to the target terminal, you can quickly learn the wifi direct occupancy information, save BLE transmission resources, simplify the process, and have a better user experience.
- the method further includes: the first terminal acquiring an account avatar of the target terminal; the first terminal Obtaining an account avatar of the target terminal and a correspondence between the target terminal and the account avatar are stored in the first terminal.
- the method before the first terminal determines, from the at least one second terminal that can be discovered, the target terminal that is used to receive the file, the method further includes: the first terminal Displaying an account avatar of the at least one second terminal that can be discovered, and the account avatar of the at least one second terminal that can be discovered is already stored in the first terminal.
- the first terminal determines, according to the broadcast packet, the at least one second terminal that can be discovered, including: the first terminal parses the broadcast packet; and if the broadcast packet is parsed The result does not include information that needs to authenticate the terminal that receives the broadcast packet, and the first terminal determines the second terminal that sends the broadcast packet to be the second terminal that can be discovered.
- the first terminal determines, according to the broadcast packet, the at least one second terminal that can be discovered, including: the first terminal parses the broadcast packet; and if the broadcast packet is parsed
- the result includes the information that the terminal that receives the broadcast packet needs to be authenticated, and the first terminal sends an authentication request to the second terminal that sends the broadcast packet, and obtains the authentication by the second terminal.
- the authentication result of the authentication is requested; if the authentication result indicates that the authentication is passed, the second terminal that sends the broadcast packet is determined to be the second terminal that can be discovered.
- the first terminal that can discover the second terminal is authenticated, and only the first terminal that is authenticated can discover the second terminal.
- This embodiment is beneficial to improve.
- the security of communication and the avoidance of illegal user discovery by the second terminal being unauthenticated are beneficial to reduce the harassment of the second terminal by the illegal user.
- the method before the first terminal scans the BLE broadcast channel to obtain the broadcast packet sent by the at least one second terminal, the method further includes: the first terminal acquiring the a touch track in a display interface of a terminal; when the touch track is a touch track that slides from a bottom edge of the display interface of the first terminal to the middle, the first terminal triggers generating a first instruction; The first terminal displays a shared application preview interface including a specified application in the display interface of the first terminal according to the first instruction; acquiring a touch instruction for the specified application, and starting the specified application program.
- the solution provided by the embodiment of the invention triggers the generation of the first instruction by sliding from the bottom edge of the display interface of the first terminal to the middle, and the operation is simple and convenient.
- the embodiment of the present invention provides a method for receiving a file, which is applied to a second terminal that receives the file sent by a first terminal, where the second terminal has started a low-power Bluetooth BLE function and a wireless direct connection.
- the wifi direct function may include: the target terminal sets a low power consumption Bluetooth (BLE) to be discoverable mode; the target terminal transmits a broadcast packet in a BLE broadcast channel; and the target terminal receives the establishment of the first terminal transmission a connection request of the BLE connection, establishing a BLE connection with the first terminal; the target terminal acquiring, by the BLE data channel of the BLE connection, a connection parameter of a high-definition direct connection (wifi direct) sent by the first terminal; After the target terminal performs its own parameter configuration according to the connection parameter, it sends a request for establishing wifi direct to the first terminal, and performs handshake with the first terminal to establish wifi direct, and the handshake is received by the first terminal.
- the first terminal is a group owner (GO) of wifi direct
- the target terminal is a group of wifi direct End (the GC); the target terminal using the wifi direct transmission of the file to receive the first terminal.
- the target terminal can directly initiate the request to establish the wifi direct, which can shorten the time of establishing the wifi direct.
- the technical solution provided by the embodiment of the present invention is beneficial to improving the efficiency of file sharing.
- a BLE connection is established between the target terminal and the first terminal. Then, the method further includes: determining, by the target terminal, whether a wifi direct interface of the target terminal is occupied; and sending, by the target terminal, the first terminal to indicate whether the wifi direct interface of the target terminal is Occupied information.
- the information about whether the wifi direct interface is occupied is determined by the solution provided by the embodiment of the present invention, and the first terminal is notified when the wifi direct interface is occupied, so that the first terminal can be as soon as possible. Understand the wifi direct occupancy information, save BLE transmission resources, simplify the process, and have a better user experience.
- the method further includes: the target terminal sending an account avatar of the target terminal to the first terminal.
- the method further includes: the target terminal receiving an authentication request sent by the first terminal; the target terminal authenticating the authentication request, and authenticating the result Send to the first terminal.
- the technical solution provided by the embodiment of the present invention helps to improve the security of the communication and avoid the target terminal by setting whether the information for authenticating the terminal that acquires the broadcast packet needs to be authenticated in the broadcast packet and the authentication method when authentication is required. It is found by illegal users who have not been authenticated to help reduce the harassment of illegal users to the target terminal.
- an embodiment of the present invention provides a file sending terminal, configured to send the file to a target terminal, where the sending terminal has started a low power consumption Bluetooth (BLE) function and a high-definition direct connection (wifi direct) function.
- BLE low power consumption Bluetooth
- Wifi direct high-definition direct connection
- the transmitting terminal may include: a scanning unit, configured to scan in the BLE broadcast channel to acquire a broadcast packet sent by the at least one second terminal; and a first determining unit, configured to determine, according to the broadcast packet, at least one that can be found a second terminal, a second determining unit, configured to determine, from the at least one second terminal that is discoverable, a target terminal for receiving the file, and a first processing unit, configured to send a connection request to the target terminal Establishing a BLE connection with the target terminal, the first sending unit, configured to send a connection parameter of the wifi direct to the target terminal by using the BLE data channel of the BLE connection, and a second processing unit, configured to receive the target terminal Send a request to establish a wifi direct, And after receiving the request for establishing wifi direct, performing a handshake with the target terminal to establish wifi direct, and the request for establishing wifi direct is that the target terminal performs its own parameter configuration according to the connection parameter.
- the first terminal sends the first terminal, the sending terminal is a wifi direct
- the sending terminal further includes: a third acquiring unit, configured to acquire, after establishing the BLE connection, information indicating whether the wifi direct interface of the target terminal is occupied; a processing unit, configured to: if the information indicates that the wifi direct interface of the target terminal is occupied, popping up a reminder message that the file cannot be successfully sent in the display interface of the sending terminal, if the information indicates the target The wifi direct interface of the terminal is not occupied, and the sending terminal sends the wifi direct connection parameter to the target terminal by using the BLE data channel of the BLE connection.
- the sending terminal further includes: a first acquiring unit, configured to acquire an account avatar of the target terminal after establishing wifi direct; a storage unit, configured to use the account avatar, and the The correspondence between the target terminal and the account avatar is stored in the sending terminal.
- the sending terminal further includes: a first display unit, configured to display an account of the at least one second terminal that can be found before determining the target terminal for receiving the file An avatar, the account avatar of the at least one second terminal that can be found is already stored in the sending terminal.
- the first determining unit is specifically configured to: parse the broadcast packet, if the parsing result of the broadcast packet does not include that the terminal that receives the broadcast packet needs to be authenticated Information, the transmitting terminal determines, as the second terminal that can be discovered, the second terminal that sends the broadcast packet
- the first determining unit is specifically configured to: parse the broadcast packet; if the parsing result of the broadcast packet includes information that needs to authenticate a terminal that receives the broadcast packet Sending an authentication request to the second terminal that sends the broadcast packet, and obtaining an authentication result of authenticating the authentication request by the second terminal; if the authentication result indicates that the authentication is passed, Sending house
- the second terminal of the broadcast packet is determined to be a second terminal that can be discovered.
- an embodiment of the present invention provides a file receiving terminal, which is configured to receive the file sent by a first terminal, where the receiving terminal has started a low power Bluetooth (BLE) function and a high fidelity direct connection (wifi direct).
- the receiving terminal may include: a setting unit configured to set the BLE to be discoverable mode; a third transmitting unit configured to send the broadcast packet in the BLE broadcast channel; and a first receiving unit configured to receive the first a connection request for establishing a BLE connection sent by a terminal; a first connection unit, configured to establish a BLE connection with the first terminal in response to the connection request received by the first receiving unit; and a fourth obtaining unit, configured to pass Establishing the BLE data channel of the BLE connection to obtain the connection parameter of the wifi direct sent by the first terminal; the second connection unit, configured to perform parameter configuration of the receiving terminal according to the connection parameter, and then go to the first The terminal sends a request for establishing wifi direct, and performs a handshake with the first terminal to establish wifi direct
- the receiving terminal further includes: a fifth processing unit, configured to determine, after the BLE connection is established, whether the wifi direct interface of the target terminal is occupied; and send to the first terminal Information indicating whether the wifi direct interface of the target terminal is occupied.
- the receiving terminal further includes: a fourth sending unit, configured to send an account avatar of the target terminal to the first terminal after establishing wifi direct.
- the receiving terminal further includes: a fourth processing unit, configured to: if the broadcast packet includes information indicating that the terminal that receives the broadcast packet needs to be authenticated, Receiving, by the first receiving unit, an authentication request sent by the first terminal, before receiving the connection request for establishing a BLE connection sent by the first terminal that sends the file; authenticating the authentication request, and The weight result is sent to the first terminal.
- a fourth processing unit configured to: if the broadcast packet includes information indicating that the terminal that receives the broadcast packet needs to be authenticated, Receiving, by the first receiving unit, an authentication request sent by the first terminal, before receiving the connection request for establishing a BLE connection sent by the first terminal that sends the file; authenticating the authentication request, and The weight result is sent to the first terminal.
- an embodiment of the present invention provides a file sending terminal, including: a processor, a memory, one or more programs, a wireless connection module, an input device, and a communication bus, the processor, the memory, and the The wireless connection module, the input device is connected and completed through the communication bus Communication with each other;
- the wireless connection module includes a low power consumption Bluetooth (BLE) module and a high-definition direct connection (wifi direct) module for starting and executing a BLE function and a wifi direct function, respectively;
- the input device is configured to acquire a user
- the one or more programs include instructions, wherein the one or more programs are stored in the memory and configured to be executed by the processor to: acquire user initiated by the input device BLE function and wifi direct function instruction, and start BLE function and wifi direct function; controlling the BLE module to scan in the BLE broadcast channel to obtain at least one broadcast packet sent by the second terminal; determining that the broadcast packet can be found according to the broadcast packet At least one second terminal; acquiring, by the input device, a target
- the processor is further configured to: obtain, by using the following step, whether a wifi direct interface is used to indicate that the target terminal is If the information indicates that the wifi direct interface of the target terminal is already occupied, an alert message for temporarily failing to send the file is popped up in the display interface of the sending terminal, if the information indicates the target The wifi direct interface of the terminal is not occupied, and the sending terminal sends the wifi direct connection parameter to the target terminal by using the BLE data channel of the BLE connection.
- an embodiment of the present invention provides a file receiving terminal, including: a processor, a memory, a wireless connection module, one or more programs, an input device, and a bus, wherein the processor, the memory, The wireless connection module and the touch screen are connected by the communication bus and complete communication with each other;
- the wireless connection module comprises a low power consumption Bluetooth (BLE) module and a high fidelity direct connection (wifi) Direct) modules for initiating a BLE function and a wifi direct function, respectively;
- the input device is for receiving an operation instruction of a user, the one or more programs comprising an instruction, wherein the one or more programs are stored in the And being configured in the memory to be operated by the processor to: acquire, by the input device, an instruction to activate a BLE function and activate a wifi direct function, and activate a BLE function and a wifi direct function; and control the BLE module to broadcast in the BLE Transmitting a broadcast packet by the channel; controlling the BLE module to receive a connection request for establishing a B
- the processor is further configured to: determine whether the wifi direct interface of the target terminal is occupied; Sending to the first terminal, information indicating whether the wifi direct interface of the target terminal is occupied.
- FIG. 1 is a schematic diagram of a network architecture in an embodiment of the present invention.
- FIG. 2 is a schematic flowchart of a file sharing method according to an embodiment of the present invention.
- FIG. 3 is a schematic flowchart of another file sharing method according to an embodiment of the present invention.
- FIG. 4 is a schematic flowchart of another file sharing method according to an embodiment of the present invention.
- 5-a to 5-d are schematic structural diagrams of a file sending terminal according to an embodiment of the present invention.
- 6-a to 6-d are schematic structural diagrams of a receiving terminal of a file according to an embodiment of the present invention.
- 7-a to 7-g are schematic diagrams of interfaces of a transmitting terminal and a receiving terminal in an embodiment of the present invention.
- FIG. 8 is a schematic structural diagram of a file sending terminal according to an embodiment of the present disclosure.
- FIG. 9 is a schematic structural diagram of a receiving terminal of a file according to an embodiment of the present invention.
- FIG. 1 is a schematic diagram of a network architecture disclosed in an embodiment of the present invention.
- the network architecture provided by the embodiment of the present invention is an architecture for transmitting files between a transmitting terminal and a receiving terminal based on BLE and wifi direct, and may include: a sending terminal, and one or more receiving terminals, specifically, When the transmitting terminal performs file transmission, first complete the device discovery through the BLE method, and transmit the connection parameters such as the handshake information required for the wifi direct connection in the BLE data channel, and then establish a wifi direct connection to transfer the file through wifi direct.
- the network architecture in FIG. 1 is only one implementation manner in the embodiment of the present invention.
- the network architecture in the embodiment of the present invention includes but is not limited to the foregoing network architecture, as long as the network architecture can be implemented.
- the network architecture of the method for transmitting a file and the method for receiving a file in the present invention are all within the scope of protection and coverage of the present invention.
- the sending terminal is configured to send a file to the receiving terminal
- the receiving terminal is configured to receive the file sent by the sending terminal
- the sending terminal and the receiving terminal may be a smart phone, a tablet computer, or a personal digital assistant (PDA).
- PDA personal digital assistant
- FIG. 2 is a schematic flowchart of a file sharing method according to an embodiment of the present invention, including a file sending method performed by a transmitting terminal, and a file executed by a receiving terminal that transmits a broadcast packet in a BLE broadcast channel. Receiving method.
- the first terminal is used to represent the above-mentioned transmitting terminal
- the target terminal is used to represent the above-mentioned receiving terminal.
- the broadcast packets received by the first terminal in the BLE broadcast channel may be from the target terminal in the second terminal, or may be from the second terminal.
- the second terminal transmitting the broadcast packet on the BLE broadcast channel may need to authenticate the terminal that receives the broadcast packet, and only the terminal through which the authentication passes can discover the second terminal that sends the broadcast packet;
- the second terminal that sends the broadcast packet on the BLE broadcast channel may also not need to authenticate the terminal that receives the broadcast packet, that is, the terminal that sends the broadcast packet may discover the second terminal that sends the broadcast packet when
- the first terminal discovers at least one second terminal the file may be sent to all second terminals that can be discovered, and all the second terminals that can be discovered are the target terminals.
- the first terminal can also send the file to the second terminal that can be found, and the second terminal that can be discovered is the target terminal.
- the first terminal in FIG. 2 has started the low power Bluetooth BLE function and the wireless direct connect wifi direct function. For example, as shown in FIG. 7-a, setting BLE and wifi direct to be highlighted in the first terminal. That is: the BLE function and the wifi direct function have been activated.
- the second terminal also activates the low power Bluetooth BLE function and the wireless direct connect wifi direct function. As shown in Figure 7-a, BLE and wifi direct are set to be highlighted in the second terminal, that is, the BLE function and the wifi direct function are enabled. Specifically, when the first terminal performs file sharing, the following steps may be included:
- the first terminal starts the specified application.
- the MagicLink shown in Figure 7-a is the specified application
- you can click MagicLink's icon triggers the launch of MagicLink.
- the display interface of the first terminal is switched as shown in Figure 7-b.
- Click the MagicLink button to open wifi direct and BLE according to the prompt in Figure 7-b to enable the Magiclink sharing function.
- wifi direct and BLE are enabled, the first terminal starts to discover other devices, and the display interface of the first terminal is switched as shown in Figure 7-c.
- the second terminal starts the specified application.
- the specified application is an example specified by the user for completing the file sending method and the file receiving method disclosed in the embodiment of the present invention.
- the first terminal and the second terminal both open the specified application, and share the file by using the specified application.
- the first terminal may send the file by specifying a sending function in the application, and the second terminal specifies the application.
- the receiving function in the receiving file is an example specified by the user for completing the file sending method and the file receiving method disclosed in the embodiment of the present invention.
- the bottom edge of the display interface from the first terminal may be acquired.
- the first display command is triggered during the sliding operation of the middle slide. Displaying a shared application display interface including the specified application according to the first display instruction; that is, displaying a plurality of applications for file sharing in the shared application display interface, for example, including the specified application in the embodiment, WeChat, qq and other applications.
- the trigger instruction may be a click operation of clicking an icon of the specified application in the shared application display interface.
- the first display instruction is triggered by sliding from the bottom edge of the display interface of the first terminal to the middle, and the operation is simple and convenient.
- the second terminal sets BLE to a discoverable mode.
- Figure 7-f shows the BLE discovery mode setting. If you click the Open button in Figure 7-f, the BLE is set to the discoverable mode. The default can be found by everyone. Of course, you can also find the The first terminal of the target terminal is defined. When the cancel button is clicked, no target can be found by any terminal.
- the second terminal sends a broadcast packet on the BLE broadcast channel.
- the broadcast package may include an address of the second terminal, and an account identifier of an account of the specified application in the second terminal, where the account identifier may be an account number or a nickname.
- the first terminal scans in a BLE broadcast channel to obtain a broadcast packet sent by at least one second terminal.
- the second terminal is a terminal that initiates the BLE function and transmits a broadcast packet in the BLE broadcast channel, and there may be at least one second terminal that initiates the BLE function and transmits the broadcast packet in the BLE broadcast channel, and therefore, the first terminal is on the BLE broadcast channel
- a broadcast packet sent by at least one second terminal may be scanned. Since each second terminal sends a broadcast packet, the first terminal can scan at least one broadcast packet sent by at least one second terminal.
- the first terminal determines, according to the broadcast packet, at least one second terminal that can be discovered;
- the first terminal can scan at least one broadcast packet sent by the at least one second terminal, the first terminal can determine at least one second terminal that can be discovered.
- the first terminal parses the broadcast packet, and acquires an account identifier of an account of the specified application in the second terminal that can be found.
- the account identifier of the account of the specified application in the second terminal may be a nickname of the account or the account.
- the nickname of the account corresponding to the specified application of the second terminal may be jzyRecv.
- the first terminal determines, from the at least one second terminal that is discoverable, a target terminal that is used to receive the file.
- the preview information corresponding to the account of the specified application of the at least one second terminal is displayed in the candidate receiving terminal preview area of the designated application of the first terminal, and the preview information includes the account identifier.
- the target of the second terminal is displayed in the optional receiving terminal preview area of the specified application of the first terminal.
- the nickname jzyRecv of the account corresponding to the account of the program It can be understood that if a plurality of second terminals that can be found are found, the nicknames of all the second terminals found by the first terminal are displayed in the optional receiving terminal preview area of the designated application of the first terminal.
- the target terminal may be all second terminals, or may be part of the second terminals.
- the second terminal for receiving the file may be determined by clicking the method of the account identifier in the preview information, and the second terminal corresponding to the account identifier of the click operation is used as the target terminal.
- the first terminal sends a connection request to the target terminal, and the target terminal establishes a BLE connection with the target terminal in response to the connection request.
- the method for establishing a BLE connection between the first terminal and the target terminal is a prior art solution, and will not be described in detail herein.
- the first terminal sends a connection parameter of wifi direct to the target terminal by using a BLE data channel of the BLE connection.
- connection parameters may include parameters prepared for the target terminal, such as handshake information of wifi direct, an IP address assigned by the first terminal to the target terminal, a designated communication channel, and the like.
- the first terminal and the target terminal establish wifi direct by using the connection parameter of the wifi direct. Specifically, the first terminal receives a request for establishing a wifi direct sent by the target terminal, and receives the request. After the wifi direct request is established, the target terminal is handshaked to establish wifi direct, and the request for establishing the wifi direct is that the target terminal initiates parameter configuration according to the connection parameter, and then initiates to the first terminal. of.
- the first terminal is a group owner (GO) of wifi direct
- the target terminal is a group client (GC) of wifi direct
- the target terminal performs its own parameter configuration according to the connection parameter, and after the configuration is completed, A request to establish a wifi direct is initiated to the first terminal.
- the first terminal handshaking with the target terminal to complete the establishment of the wifi direct communication link.
- the first terminal sends the file to the target terminal by using the wifi direct established with the target terminal.
- the target terminal acquires the file sent by the first terminal by using the established wifi direct connection.
- the successful information may be sent in the display interface, as shown in FIG. 7-e. .
- a prompt window for receiving the file may be popped up on the display interface of the target terminal, and the user may select to receive Or refuse to receive, if the user chooses to receive, step 211 is performed; if the user chooses to refuse to receive, the user may end to transfer the file to the target terminal, and correspondingly, a prompt window may be popped up at the first terminal, prompting the target terminal to refuse to receive the file. And end the transfer of files to the target terminal.
- the prompt message that the file is successfully received may be popped up, as shown in FIG. 7-g, the first terminal is successfully received at the target terminal.
- a picture "Successfully received" by jiangzy is displayed in the display interface.
- the target terminal may send a feedback message that the file transmission is completed to the first terminal. And as shown in 7-e, the reminder information of the successful transmission is displayed below the nickname jiangzy of the account of the target terminal of the display interface.
- the first terminal when the first terminal needs to send a file to the target terminal, the first terminal first scans the BLE broadcast channel, acquires the broadcast packet sent by the second terminal, and then determines the second terminal that can be discovered according to the broadcast packet. Then, the target terminal that receives the file is determined from the second terminal that can be found, and then the first terminal sends a connection parameter of wifi direct to the target terminal by using the BLE connection established with the target terminal, and the first terminal and the target terminal utilize wifi direct The connection parameter establishes wifi direct, and the first terminal sends the file to the target terminal by using the established wifi direct.
- the technical solution provided by the embodiment of the present invention is advantageous for quickly discovering the second terminal that can be found; Scanning the broadcast packet of the second terminal to discover the second terminal that can be discovered and determining the target terminal, the method for determining the target terminal is simple and the process is short, which is advantageous for quickly determining the target terminal.
- the target terminal can directly initiate the request to establish the wifi direct, and can also shorten the time of establishing the wifi direct.
- the technical solution provided by the embodiment of the present invention is advantageous. Improve the efficiency of file sharing.
- FIG. 3 is a schematic flowchart of another file sharing method according to an embodiment of the present invention.
- the difference from the flow shown in FIG. 2 is that the second terminal needs to receive the first broadcast packet sent by the second terminal.
- the terminal performs authentication, and the first terminal that passes the authentication can discover the second terminal.
- the steps 301 to 305 are the same as the steps 201 to 205 in FIG. 2, and details are not described herein again.
- the flow of the file sharing method shown in FIG. 3 further includes:
- the first terminal parses a broadcast packet acquired by the first terminal in a broadcast channel.
- the first terminal initiates a BLE connection request to the second terminal that sends the broadcast packet, and after the BLE connection is established, sends the authentication to the second terminal on the BLE data channel. request.
- the authentication request carries the information to be verified that needs to be authenticated.
- the authentication information may include the contact information or the phone number corresponding to the first terminal.
- the second terminal verifies the first terminal according to the obtained authentication request.
- the first terminal acquires an authentication result that the second terminal authenticates the authentication request.
- the second terminal may return an authentication result to the first terminal by using a BLE data channel.
- the first terminal fails to discover the second terminal that sends the broadcast packet.
- the first terminal determines, by the second terminal that sends the broadcast packet, that the second terminal is discoverable.
- Steps 313 to 318 are the same as 207 to 212 in FIG. 2, and the specific process can refer to the foregoing description, and details are not described herein again.
- the solution provided by the embodiment of the present invention limits the terminal that can discover the second terminal, and only the terminal that passes the authentication can discover the second terminal, which is beneficial to improving the security of the communication and preventing the second terminal from being unauthenticated.
- the illegal user found that it is beneficial to reduce the harassment of the second terminal by the illegal user.
- FIG. 4 is a schematic flowchart of another file sharing method according to an embodiment of the present invention. Specifically, the first terminal shares a file with a target terminal. The first terminal and the second terminal have both the BLE function and the wifi direct function enabled.
- the file sharing method may include the following steps:
- the first terminal starts the specified application.
- the second terminal starts the specified application.
- the second terminal sets BLE to a discoverable mode.
- the second terminal sends a broadcast packet on the BLE broadcast channel.
- the first terminal scans in the BLE broadcast channel, and acquires a broadcast packet sent by the second terminal.
- the account identification includes a user ID and a nickname.
- the second terminal displayed in the optional receiving terminal preview area is the second terminal that can be found.
- the target terminal may be all second terminals, or may be partial second terminals.
- the first terminal sends a connection request to the target terminal, and the target terminal establishes a BLE connection with the target terminal in response to the connection request.
- the first terminal acquires information used to indicate whether the wifi direct interface of the target terminal is occupied. Specifically, after the BLE connection is established, the first terminal queries the target terminal for wifi direct Whether the target terminal responds to the first terminal whether the wifi direct interface is occupied or not. The information is used to indicate whether the wifi direct interface of the target terminal is already occupied.
- step 413 If yes, go to step 413; if no, go to step 414.
- the first terminal sends, by using the BLE connection, the wifi direct handshake information, and the ip address allocated to the target terminal, to the target terminal. Connection parameters.
- the target terminal acquires connection parameters sent by the first terminal.
- the first terminal and the target terminal establish wifi direct by using the connection parameter of the wifi direct. Specifically, the target terminal uses the obtained connection parameter to configure parameters in the target terminal, and the configuration is completed. After the first terminal initiates a request to establish a wifi direct, after receiving the request, the first terminal handshaking with the target terminal to establish wifi direct.
- the first terminal acts as a group owner (GO) of wifi direct
- the target terminal acts as a group client (GC) of wifi direct.
- the first terminal transmits the file to the target terminal by using the wifi direct connection.
- the target terminal acquires the file sent by the first terminal by using the wifi direct connection.
- the embodiment of the present invention by displaying the account avatar of the account of the specified application of the second terminal in the preview information, it is advantageous to quickly locate and distinguish the second terminal from the optional receiving terminal, and improve the second terminal.
- the identification is conducive to improving interactivity.
- After establishing a BLE connection with the target terminal obtain information about whether the wifi direct interface is occupied, and on the wifi direct interface. When it is occupied, it will pop up a reminder message that the file cannot be successfully sent temporarily, and stop sending the wifi direct connection parameter to the target terminal.
- the wifi direct occupancy information can be learned as soon as possible, which saves the transmission resources of BLE, simplifies the process, and has more Good user experience.
- FIG. 5-a is a schematic structural diagram of a file sending terminal 500 according to an embodiment of the present invention.
- the sending terminal 500 is configured to send a file to a target terminal.
- the transmitting terminal 500 has started the low power Bluetooth BLE function and the wireless direct wifi direct function, and the sending terminal 500 may include: a scanning unit 501, a first determining unit 502, a second determining unit 503, a first processing unit 504, and a A transmitting unit 505, a second processing unit 506, and a second transmitting unit 507. among them,
- the scanning unit 501 is configured to scan in the BLE broadcast channel to acquire a broadcast packet sent by the at least one second terminal.
- the first determining unit 502 is configured to determine, according to the broadcast packet, at least one second terminal that can be discovered.
- the first determining unit 502 may be specifically configured to: parse the broadcast packet, and if the parsing result of the broadcast packet does not include information that needs to be authenticated by the terminal that receives the broadcast packet, The transmitting terminal determines the second terminal that sends the broadcast packet as the second terminal that can be discovered.
- the first determining unit 502 may be specifically configured to: parse the broadcast packet; if the parsing result of the broadcast packet includes information that needs to be authenticated by the terminal that receives the broadcast packet, then The second terminal that sends the broadcast packet sends an authentication request, and obtains an authentication result that the second terminal authenticates the authentication request; if the authentication result indicates that the authentication is passed, the The second terminal of the broadcast packet is determined to be a second terminal that can be discovered.
- the second determining unit 503 is configured to determine, from the at least one second terminal that can be discovered, a target terminal that is used to receive the file.
- the first processing unit 504 is configured to send a connection request to the target terminal, and establish a BLE connection with the target terminal.
- the first sending unit 505 is configured to send a high-definition direct connection parameter to the target terminal by using the BLE data channel of the BLE connection.
- the second processing unit 506 is configured to receive a request for establishing a wifi direct sent by the target terminal, where And after receiving the request for establishing wifi direct, performing a handshake with the target terminal to establish wifi direct, and the request for establishing wifi direct is that the target terminal performs its own parameter configuration according to the connection parameter.
- the transmitting terminal is a group owner (GO) of wifi direct
- the target terminal is a group client (GC) of wifi direct.
- the second sending unit 507 is configured to send the file to the target terminal by using the wifi direct.
- the device discovery and file transmission are completed by using the BLE method and the wifi direct method. Since the BLE has only three broadcast channels, which is far less than the classical Bluetooth or wifi direct broadcast channel, the technical solution provided by the embodiment of the present invention is advantageous for quickly discovering the receiving terminal and reducing the length of the discovery receiving terminal; By scanning the broadcast packet of the second terminal to discover the second terminal that can be found and determining the target terminal, the method for determining the target terminal is simple and the process is short, which is advantageous for quickly determining the target terminal.
- the target terminal can directly initiate the request to establish the wifi direct, and can also shorten the time of establishing the wifi direct. When transferring files, the file transfer speed and efficiency are ensured due to the wifi direct method. Therefore, the technical solution provided by the embodiment of the present invention is beneficial to improving the efficiency of file sharing.
- the sending terminal 500 may further include:
- the first obtaining unit 508 is configured to acquire an account avatar of the target terminal after establishing wifi direct.
- the storage unit 509 is configured to store the account avatar and the corresponding relationship between the target terminal and the account avatar in the first terminal.
- the first display unit 510 is configured to display an account avatar of the at least one second terminal that can be discovered before determining the target terminal for receiving the file, and the account of the at least one second terminal that can be found The avatar has been stored in the transmitting terminal.
- the account avatar facilitates quickly locating and distinguishing different second terminals from at least one second terminal that can be discovered, thereby improving the visibility of the second terminal.
- the sending terminal 500 may further include: a second obtaining unit 511, a third processing unit 512, a second display unit 513, and a starting unit. 514. among them,
- a second acquiring unit 511 configured to acquire a touch track in a display interface of the sending terminal before the scanning unit scans in the BLE broadcast channel to acquire at least one broadcast packet sent by the at least one second terminal;
- the third processing unit 512 is configured to trigger a first instruction when the touch track acquired by the second acquiring unit is a touch track that slides from the bottom edge of the display interface of the sending terminal to the middle;
- the second display unit 513 is configured to display, according to the first instruction generated by the third processing unit, a shared application preview interface including the specified application in a display interface of the sending terminal;
- the startup unit 514 is configured to acquire a touch instruction of the specified application displayed by the second display unit, and start the specified application.
- the first display instruction triggered by sliding from the bottom edge of the display interface of the first terminal to the middle is simple and convenient.
- the sending terminal 500 may further include: a third obtaining unit 515 and a fourth processing unit 516.
- the third obtaining unit 515 is configured to obtain, after establishing the BLE connection, information indicating whether the wifi direct interface of the target terminal is occupied.
- the fourth processing unit 516 is configured to: if the information indicates that the wifi direct interface of the target terminal is occupied, popping up a reminder message that the file cannot be successfully sent in the display interface of the sending terminal, if the information indicates The wifi direct interface of the target terminal is not occupied, and the sending terminal sends a connection parameter of wifi direct to the target terminal through the BLE data channel of the BLE connection.
- the information about whether the wifi direct interface is occupied is obtained by using the solution provided by the embodiment of the present invention, and when the wifi direct interface is occupied, the temporary pop-up is performed.
- the file cannot be successfully sent, and the wifi direct connection parameter is stopped from being sent to the target terminal.
- the wifi direct occupancy information can be learned as soon as possible, saving BLE transmission resources, simplifying the process, and having a better user experience.
- FIG. 6-a is a schematic structural diagram of a receiving terminal 600 for a file according to an embodiment of the present invention.
- the receiving terminal 600 is configured to receive a file, and the receiving terminal 600 is started.
- the low power Bluetooth BLE function and the wireless direct connect wifi direct function, the sending terminal 600 may include:
- a setting unit 601 configured to set a low power consumption Bluetooth (BLE) to be discoverable mode
- a third sending unit 602 configured to send a broadcast packet in a BLE broadcast channel
- the first receiving unit 603 is configured to receive a connection request that is established by the first terminal to establish a BLE connection.
- the first connection unit 604 is configured to establish a BLE connection with the first terminal in response to the connection request received by the first receiving unit;
- the fourth obtaining unit 605 is configured to acquire, by using the established BLE data channel of the BLE connection, a connection parameter of the wifi direct sent by the first terminal;
- the second connection unit 606 is configured to send a request for establishing wifi direct to the first terminal after performing parameter configuration of the receiving terminal according to the connection parameter, and perform handshake with the first terminal to establish wifi direct.
- the handshake is initiated after the first terminal receives the request for establishing wifi direct, the first terminal is a group owner (GO) of wifi direct, and the receiving terminal is a group client (GC) of wifi direct ;
- the second receiving unit 607 is configured to receive, by using the established wifi direct, the file sent by the first terminal.
- device discovery and file transmission are completed by using BLE and wifi direct.
- the file transfer speed and efficiency are ensured by the wifi direct method when transferring files. Since BLE has only three broadcast channels, it is far less than the number of broadcast channels of classic Bluetooth or wifi direct.
- the target terminal can be straight.
- the request to establish wifi direct can also shorten the time of wifi direct establishment. Therefore, the technical solution provided by the embodiment of the present invention is beneficial to quickly discovering and reducing the length of time that the transmitting terminal discovers, which is beneficial to improving the efficiency of file receiving.
- the receiving terminal 600 may further include:
- the fourth sending unit 608 is configured to send an account avatar of the target terminal to the first terminal after establishing wifi direct.
- the receiving terminal 600 may further include:
- the fourth processing unit 609 is configured to: if the broadcast packet includes information for indicating that the terminal that receives the broadcast packet needs to be authenticated, receive, by the first receiving unit, the first terminal that sends the file Before receiving the connection request for establishing the BLE connection, receiving an authentication request sent by the first terminal; authenticating the authentication request, and sending the authentication result to the first terminal.
- the receiving terminal 600 may further include:
- the fifth processing unit 610 is configured to determine, after the BLE connection is established, whether the wifi direct interface of the target terminal is occupied, and send, to the first terminal, whether the wifi direct interface of the target terminal is occupied.
- the first terminal can quickly learn the occupancy information of wifi direct, save the transmission resources of BLE, simplify the process, and have a better user experience.
- FIG. 8 is a schematic structural diagram of a file sending terminal 800 according to an embodiment of the present invention.
- the sending terminal 800 is configured to send a file to a receiving terminal as a target terminal, where the sending terminal 800 includes a processor 801, a memory 802, a wireless connection module 803, an input device 804 (taking a touch screen as an example), a communication bus 805, and one or more programs.
- the processor 801, the memory 802, the wireless connection module 803, and the touch screen 804 are connected and communicate with each other through the communication bus 805.
- the wireless connection module 803 can include a BLE module and a wifi direct module, respectively, for starting and executing BLE.
- the input device 804 can be configured to receive an operation instruction of the user, and the memory 802 includes at least one of the following: a random access memory, Non-volatile memory and external memory.
- the one or more programs include instructions, wherein the one or more programs are stored in the memory and configured to be executed by the processor to perform a file transmission method specifically disclosed in an embodiment of the method of the present invention.
- the input device acquires an instruction for the user to start the BLE function and the wifi direct function, and starts the BLE function and the wifi direct function.
- the BLE module is controlled to scan in the BLE broadcast channel to acquire a broadcast packet sent by at least one second terminal.
- the request for establishing wifi direct is the target terminal Sending the parameter to the first terminal according to the connection parameter;
- the first terminal is a wifi direct group owner (GO)
- the target terminal is a wifi direct group client (GC) .
- the method may further be configured to: obtain information for indicating whether the wifi direct interface of the target terminal is occupied. If the information indicates that the wifi direct interface of the target terminal is already occupied, an alert message for temporarily failing to send the file is popped up in the display interface of the sending terminal, if the information indicates the wifi direct interface of the target terminal If not occupied, the transmitting terminal sends a connection parameter of wifi direct to the target terminal through the BLE data channel of the BLE connection.
- FIG. 9 is a schematic structural diagram of a receiving terminal 900 for a file according to an embodiment of the present invention.
- the receiving terminal 900 is configured to acquire a file sent by a sending terminal.
- the receiving terminal 900 includes a processor 901, a memory 902, a wireless connection module 903, an input device 904 (taking a touch screen as an example), a communication bus 905, and one or more programs.
- the processor 901, the memory 902, the wireless connection module 903, and the input device 904 are connected and complete communication with each other through the communication bus 905.
- the wireless connection module 903 can include a BLE module and a wifi direct module for respectively starting the BLE function and the wifi. Direct function.
- the input device 904 can be configured to receive an operation instruction of a user, and the memory 902 includes at least one of the following: a random access memory, a nonvolatile memory, and an external memory.
- the one or more programs include instructions, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors to perform file reception specifically disclosed in an embodiment of the present invention. The method includes the following steps:
- the input device acquires an instruction that the user starts the BLE function and starts the wifi direct function, and starts the BLE function and the wifi direct function.
- the BLE module is controlled to transmit a broadcast packet on the BLE broadcast channel.
- the BLE module controlling the BLE module to receive a connection request for establishing a BLE connection sent by the first terminal on the BLE broadcast channel, and establish a BLE connection with the target terminal.
- the handshake is that the first terminal receives the After the wifi direct request is established, the first terminal is a wifi direct group owner (GO), and the target terminal is a wifi direct group client (GC).
- GO wifi direct group owner
- GC wifi direct group client
- the control wifi direct module receives the file sent by the first terminal by using the established wifi direct.
- the method may further be configured to: determine that the target terminal is wifi direct Whether the interface is occupied; sending information to the first terminal indicating whether the wifi direct interface of the target terminal is occupied.
- the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium can store a program, and the program includes some or all of the steps of the method for transmitting the file according to any one of the foregoing method embodiments.
- the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium can store a program, and the program includes some or all of the steps of the method for receiving any one of the files described in the foregoing method embodiments.
- the disclosed apparatus may be implemented in other ways.
- the device embodiments described above are merely illustrative.
- the division of the above units is only a logical function division. In actual implementation, there may be another division manner. For example, multiple units or components may be combined or integrated. Go to another system, or some features can be ignored or not executed.
- the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
- the units described above as separate components may or may not be physically separated.
- the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
- each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
- the above-described 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.
- the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
- the instructions include a plurality of instructions for causing a computer device (which may be a personal computer, server or network device, etc., and in particular a processor in a computer device) to perform all or part of the steps of the above-described methods of various embodiments of the present invention.
- the foregoing storage medium may include: a U disk, a mobile hard disk, a magnetic disk, an optical disk, a read only memory (English: Read-Only Memory, abbreviation: ROM) or a random access memory (English: Random Access Memory, abbreviation: RAM) and other media that can store program code.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
本发明实施例公开了一种文件的发送方法、接收方法及相关终端,该发送方法包括:第一终端通过在低功耗蓝牙(BLE)广播信道中扫描以获取至少一个第二终端发送的广播包;所述第一终端根据所述广播包确定可被发现的至少一个第二终端;所述第一终端从所述可被发现的至少一个第二终端中确定用于接收文件的目标终端;所述第一终端向所述目标终端发送连接请求,与所述目标终端建立BLE连接;所述第一终端通过所述BLE连接的BLE数据信道向所述目标终端发送高保真直连(wifi direct)的连接参数;所述第一终端接收所述目标终端发送的建立wifi direct的请求,并在收到所述建立wifi direct的请求后,与所述目标终端进行握手以建立wifi direct,所述建立wifi direct的请求是所述目标终端根据所述连接参数进行本身的参数配置后向所述第一终端发送的;所述第一终端利用与所述目标终端建立的所述wifi direct向所述目标终端发送所述文件。采用本实施例提供的技术方案,有利于快速发现可被发现的第二终端。
Description
本发明涉及移动通信技术领域,尤其涉及一种文件的发送方法、接收方法及终端。
随着终端设备的普及,终端设备之间进行图片、视频、音乐等文件的分享的需求日益增加,目前发送端向接收端分享文件时,通常采用经典蓝牙或者高保真直连(wifi direct)的方式进行文件的分享。
采用经典蓝牙的方式进行文件分享时,用户触发发现方与被发现方进行蓝牙扫描,发现方和被发现方各自以不同的序列在79个信道上跳频,直至双方跳频同步,发现方成功扫描到被发现方,同时获取被发现方设备信息,用户选择连接设备,连接方预估被连接方的序列,发出连接请求,建立连接后进行文件的传输,需要说明的是,发现方与被发现方使用经典蓝牙建立蓝牙连接之前,需要在79个信道上跳频直至双方跳频同步,才能成功扫描到对方,即采用经典蓝牙进行文件分享时,建立蓝牙连接的时间较长,效率较低,另外经典蓝牙的传输速度较低只有2.1Mbps。
采用wifi direct的方式进行文件分享时,发送方和接收方进入扫描状态,分别在2.4G和5G信道上停留一段时间进行检测,信道数量加起来在二十个以上,扫描周期较长。
由此可见,在进行文件分享时,无论是采用经典蓝牙方式还是采用wifi direct的方式,在建立连接之前都需要在较多的信道上进行扫描才能发现对方,因此,目前进行文件分享时存在发送方和接收方在连接之前需要较长的时间才能发现对方,效率低等问题。
发明内容
本发明实施例所要解决的技术问题在于,提供一种文件的发送方法、接收
方法及相关终端,解决了现有技术中发送终端发现接收终端耗时长、效率低的问题。
第一方面,本发明实施例提供了一种文件发送方法,应用于发送所述文件到目标终端的第一终端,所述第一终端已启动低功耗蓝牙(Bluetooth Low Energy,BLE)功能和无线直连wifi direct功能,所述方法可以包括:第一终端通过在低功耗蓝牙(BLE)广播信道中扫描以获取至少一个第二终端发送的广播包,并根据上述广播包确定可被发现的至少一个第二终端,然后从上述可被发现的至少一个第二终端中确定用于接收文件的目标终端;所述第一终端向所述目标终端发送连接请求,与所述目标终端建立BLE连接;所述第一终端通过所述BLE连接的BLE数据信道向所述目标终端发送高保真直连(wifi direct)的连接参数;所述第一终端接收所述目标终端发送的建立wifi direct的请求,并在收到所述建立wifi direct的请求后,与所述目标终端进行握手以建立wifi direct,所述建立wifi direct的请求是所述目标终端根据所述连接参数进行本身的参数配置后向所述第一终端发送的;所述第一终端为wifi direct的组所有者(GO),所述目标终端为wifi direct的组客户端(GC);所述第一终端利用与所述目标终端建立的所述wifi direct向所述目标终端发送所述文件。
本发明实施例,由于BLE只有三个广播信道,远少于经典蓝牙或者wifi direct的广播信道,所以采用本发明实施例提供的技术方案,有利于快速发现可被发现的第二终端;另外,由于第一终端通过扫描第二终端的广播包来发现可被发现的第二终端并确定目标终端,确定目标终端的方法很简单、流程很短,有利于快速确定目标终端。另外,在第一终端将wifi direct的连接参数发送到目标终端后,目标终端能直接发起建立wifi direct的请求,也能缩短wifi direct建立的时间。在传输文件时,由于采用了wifi direct的方式,确保了文件传输速度和效率。因此,本发明实施例提供的技术方案有利于提高文件分享的效率。
在一个可能的实现方式中,在所述第一终端与所述目标终端利用所述wifi direct的连接参数建立wifi direct之后,所述方法还包括:第一终端获取用于指示所述目标终端的wifi direct接口是否已被占用的信息;若所述信息指示所述目标终端的wifi direct接口已被占用,则在所述第一终端的显示界面中弹
出暂时无法成功发送文件的提醒消息,若所述信息指示所述目标终端的wifi direct接口未被占用,则所述第一终端通过所述BLE连接的BLE数据信道向所述目标终端发送wifi direct的连接参数。
通过本发明实施例提供的方案,在与目标终端建立BLE连接之后,获取wifi direct接口是否被已占用的信息,并在wifi direct接口已被占用时,弹出暂时无法成功发送文件的提醒消息,并停止向目标终端发送wifi direct连接参数,可以尽快的了解到wifi direct的占用信息,节省了BLE的传输资源,简化了流程,有更好的用户体验。
在一个可能的实现方式中,在所述第一终端与所述目标终端建立wifi direct之后,所述方法还包括:所述第一终端获取所述目标终端的账户头像;所述第一终端将获取的所述目标终端的账户头像、以及所述目标终端与所述账户头像的对应关系存储在所述第一终端中。
在一个可能的实现方式中,在所述第一终端从所述可被发现的至少一个第二终端中确定用于接收所述文件的目标终端之前,所述方法还包括:所述第一终端显示所述可被发现的至少一个第二终端的账户头像,所述可被发现的至少一个第二终端的账户头像已经存储在所述第一终端中。
在一种可能的实现方式中,所述第一终端根据所述广播包确定可被发现的至少一个第二终端,包括:所述第一终端解析所述广播包;若所述广播包的解析结果不包括需要对接收到所述广播包的终端进行鉴权的信息,则所述第一终端将发送所述广播包的第二终端确定为可被发现的第二终端。
在一种可能的实现方式中,所述第一终端根据所述广播包确定可被发现的至少一个第二终端,包括:所述第一终端解析所述广播包;若所述广播包的解析结果包括需要对接收到所述广播包的终端进行鉴权的信息,则所述第一终端向发送所述广播包的第二终端发送鉴权请求,获取所述第二终端对所述鉴权请求进行鉴权的鉴权结果;若所述鉴权结果指示鉴权通过,则将发送所述广播包的第二终端确定为可被发现的第二终端。
通过本发明实施例提供的方案,通过对能够发现第二终端的第一终端进行鉴权,只有通过鉴权的第一终端才能发现所述第二终端,本实施例有利于提高
通信的安全性和避免第二终端被未鉴权通过的非法用户发现,有利于减少非法用户对第二终端的骚扰。
在一种可能的实现方式中,所述第一终端通过在BLE广播信道中扫描以获取至少一个第二终端发送的广播包之前,所述方法还包括:所述第一终端获取在所述第一终端的显示界面中的触控轨迹;在所述触控轨迹为从所述第一终端的显示界面的底边向中间滑动的触控轨迹时,所述第一终端触发生成第一指令;所述第一终端根据所述第一指令在所述第一终端的显示界面中显示包括指定应用程序的共享应用程序预览界面;获取对所述指定应用程序的触控指令,启动所述指定应用程序。
本发明实施例提供的方案,采用从第一终端的显示界面的底边向中间滑动的方式触发生成第一指令,操作简洁方便。
第二方面,本发明实施例提供了一种文件的接收方法,应用于接收第一终端发送的所述文件的第二终端,所述第二终端已启动低功耗蓝牙BLE功能和无线直连wifi direct功能,所述方法可以包括:目标终端设置低功耗蓝牙(BLE)为可被发现模式;所述目标终端在BLE广播信道中发送广播包;所述目标终端接收第一终端发送的建立BLE连接的连接请求,与所述第一终端建立BLE连接;所述目标终端通过所述BLE连接的BLE数据通道获取所述第一终端发送的高保真直连(wifi direct)的连接参数;所述目标终端根据所述连接参数进行本身的参数配置后向所述第一终端发送建立wifi direct的请求,并与所述第一终端进行握手以建立wifi direct,所述握手是所述第一终端接收所述建立wifi direct的请求后发起的,所述第一终端为wifi direct的组所有者(GO),所述目标终端为wifi direct的组客户端(GC);所述目标终端利用所述wifi direct接收所述第一终端发送的所述文件。
本发明实施例,在第一终端将wifi direct的连接参数发送到目标终端后,目标终端能直接发起建立wifi direct的请求,能缩短wifi direct建立的时间。在传输文件时,由于采用了wifi direct的方式,确保了文件传输速度和效率。因此,本发明实施例提供的技术方案有利于提高文件分享的效率。
在一种可能的实现方式中,在所述目标终端与所述第一终端建立BLE连接
之后,所述方法还包括:所述目标终端确定所述目标终端的wifi direct接口是否被已占用;所述目标终端向所述第一终端发送用于指示所述目标终端的wifi direct接口是否被已占用的信息。
通过本发明实施例提供的方案,在与第一终端建立BLE连接之后,确定wifi direct接口是否被已占用的信息,并在wifi direct接口已被占用时通知第一终端,使第一终端可以尽快的了解到wifi direct的占用信息,节省了BLE的传输资源,简化了流程,有更好的用户体验。
在一种可能的实现方式中,在所述目标终端与所述第一终端建立wifi direct之后,所述方法还包括:所述目标终端向所述第一终端发送所述目标终端的账户头像。
在一种可能的实现方式中,若所述广播包包括用于指示需要对接收到所述广播包的终端进行鉴权的信息;则在所述目标终端接收发送所述文件的第一终端发送的建立BLE连接的连接请求之前,所述方法还包括,所述目标终端接收所述第一终端发送的鉴权请求;所述目标终端对所述鉴权请求进行鉴权,并将鉴权结果发送给所述第一终端。
本发明实施例提供的技术方案,通过在广播包中设置是否需要对获取广播包的终端进行鉴权的信息,以及当需要鉴权时的鉴权方法,有利于提高通信的安全性和避免目标终端被未鉴权通过的非法用户发现,有利于减少非法用户对目标终端的骚扰。
第三方面,本发明实施例提供了一种文件的发送终端,用于发送所述文件到目标终端,所述发送终端已启动低功耗蓝牙(BLE)功能和高保真直连(wifi direct)功能,所述发送终端可以包括:扫描单元,用于在BLE广播信道中扫描以获取至少一个第二终端发送的广播包;第一确定单元,用于根据所述广播包确定可被发现的至少一个第二终端;第二确定单元,用于从所述可被发现的至少一个第二终端中确定用于接收所述文件的目标终端;第一处理单元,用于向所述目标终端发送连接请求,与所述目标终端建立BLE连接;第一发送单元,用于通过所述BLE连接的BLE数据信道向所述目标终端发送wifi direct的连接参数;第二处理单元,用于接收所述目标终端发送的建立wifi direct的请求,
并在收到所述建立wifi direct的请求后,与所述目标终端进行握手以建立wifi direct,所述建立wifi direct的请求是所述目标终端根据所述连接参数进行本身的参数配置后向所述第一终端发送的;所述发送终端为wifi direct的组所有者(GO),所述目标终端为wifi direct的组客户端(GC);第二发送单元,用于利用所述wifi direct向所述目标终端发送所述文件。
在一种可能的实现方式中,所述发送终端还包括:第三获取单元,用于在建立BLE连接之后,获取用于指示所述目标终端的wifi direct接口是否已被占用的信息;第四处理单元,用于若所述信息指示所述目标终端的wifi direct接口已被占用,则在所述发送终端的显示界面中弹出暂时无法成功发送文件的提醒消息,若所述信息指示所述目标终端的wifi direct接口未被占用,则所述发送终端通过所述BLE连接的BLE数据信道向所述目标终端发送wifi direct的连接参数。
在一种可能的实现方式中,所述发送终端还包括:第一获取单元,用于建立wifi direct之后,获取所述目标终端的账户头像;存储单元,用于将所述账户头像、以及所述目标终端与所述账户头像的对应关系存储在所述发送终端中。
在一种可能的实现方式中,所述发送终端还包括:第一显示单元,用于在确定用于接收所述文件的目标终端之前,显示所述可被发现的至少一个第二终端的账户头像,所述可被发现的至少一个第二终端的账户头像已经存储在所述发送终端中。
在一种可能的实现方式中,所述第一确定单元具体用于,解析所述广播包,若对所述广播包的解析结果不包括需要对接收到所述广播包的终端进行鉴权的信息,则所述发送终端将发送所述广播包的第二终端确定为可被发现的第二终端
在一种可能的实现方式中,所述第一确定单元具体用于,解析所述广播包;若对所述广播包的解析结果包括需要对接收到所述广播包的终端进行鉴权的信息,则向发送所述广播包的第二终端发送鉴权请求,获取所述第二终端对所述鉴权请求进行鉴权的鉴权结果;若所述鉴权结果指示鉴权通过,则将发送所
述广播包的第二终端确定为可被发现的第二终端。
第四方面,本发明实施例提供了一种文件的接收终端,应用于接收第一终端发送的所述文件,所述接收终端已启动低功耗蓝牙(BLE)功能和高保真直连(wifi direct)功能,所述接收终端可以包括:设置单元,用于设置BLE为可被发现模式;第三发送单元,用于在BLE广播信道中发送广播包;第一接收单元,用于接收所述第一终端发送的建立BLE连接的连接请求;第一连接单元,用于响应所述第一接收单元接收的所述连接请求与所述第一终端建立BLE连接;第四获取单元,用于通过已建立的所述BLE连接的BLE数据通道获取所述第一终端发送的wifi direct的连接参数;第二连接单元,用于根据所述连接参数进行所述接收终端的参数配置后向所述第一终端发送建立wifi direct的请求,并与所述第一终端进行握手以建立wifi direct,所述握手是所述第一终端接收所述建立wifi direct的请求后发起的,所述第一终端为wifi direct的组所有者(GO),所述接收终端为wifi direct的组客户端(GC);第二接收单元,用于利用已建立的所述wifi direct接收所述第一终端发送的所述文件。
在一种可能的实现方式中,所述接收终端还包括:第五处理单元,用于建立BLE连接之后,确定所述目标终端的wifi direct接口是否被已占用;以及向所述第一终端发送用于指示所述目标终端的wifi direct接口是否被已占用的信息。
在一种可能的实现方式中,所述接收终端还包括:第四发送单元,用于建立wifi direct之后,向所述第一终端发送所述目标终端的账户头像。
在一种可能的实现方式中,所述接收终端还包括:第四处理单元,用于若所述广播包包括用于指示需要对接收到所述广播包的终端进行鉴权的信息,则在所述第一接收单元接收发送所述文件的第一终端发送的建立BLE连接的连接请求之前,接收所述第一终端发送的鉴权请求;对所述鉴权请求进行鉴权,并将鉴权结果发送给所述第一终端。
第五方面,本发明实施例提供了一种文件的发送终端,包括:处理器、存储器、一个或多个程序、无线连接模块、输入装置和通信总线,所述处理器、所述存储器、所述无线连接模块、所述输入装置通过所述通信总线连接并完成
相互间的通信;所述无线连接模块包括低功耗蓝牙(BLE)模块和高保真直连(wifi direct)模块,分别用于启动和执行BLE功能和wifi direct功能;所述输入装置用于获取用户的操作指令;所述一个或多个程序包括指令,其中所述一个或多个程序被存储在所述存储器中并被配置为被所述处理器执行如下操作:通过所述输入装置获取用户启动BLE功能和wifi direct功能的指令,并启动BLE功能和wifi direct功能;控制所述BLE模块在BLE广播信道中扫描以获取至少一个第二终端发送的广播包;根据所述广播包确定可被发现的至少一个第二终端;获取用户通过所述输入装置从所述可被发现的所述至少一个第二终端中选取的用于接收文件的的目标终端;控制所述BLE模块向所述目标终端发送连接请求,与所述目标终端建立BLE连接;控制所述BLE模块通过已建立的所述BLE连接的BLE数据信道向所述目标终端发送wifi direct的连接参数;接收所述目标终端发送的建立wifi direct的请求,并在收到所述建立wifi direct的请求后,与所述目标终端进行握手以建立wifi direct,所述建立wifi direct的请求是所述目标终端根据所述连接参数进行本身的参数配置后向所述第一终端发送的;所述第一终端为wifi direct的组所有者(GO),所述目标终端为wifi direct的组客户端(GC);控制所述wifi direct模块利用与所述目标终端建立的所述wifi direct向所述目标终端发送所述文件。
在一种可能的实现方式中,在所述第一终端与所述目标终端建立BLE连接之后,所述处理器还用于执行如下步骤:获取用于指示所述目标终端的wifi direct接口是否已被占用的信息;若所述信息指示所述目标终端的wifi direct接口已被占用,则在所述发送终端的显示界面中弹出暂时无法成功发送文件的提醒消息,若所述信息指示所述目标终端的wifi direct接口未被占用,则所述发送终端通过所述BLE连接的BLE数据信道向所述目标终端发送wifi direct的连接参数。
第六方面,本发明实施例提供了一种文件的接收终端,包括:处理器、存储器、无线连接模块、一个或多个程序、输入装置和总线,其中,所述处理器、所述存储器、所述无线连接模块、所述触控屏通过所述通信总线连接并完成相互间的通信;所述无线连接模块包括低功耗蓝牙(BLE)模块和高保真直连(wifi
direct)模块,分别用于启动BLE功能和wifi direct功能;所述输入装置用于接收用户的操作指令,所述一个或多个程序包括指令,其中所述一个或多个程序被存储在所述存储器中并被配置为被所述处理器执行如下操作:通过所述输入装置获取用户启动BLE功能和启动wifi direct功能的指令,并启动BLE功能和wifi direct功能;控制所述BLE模块在BLE广播信道发送广播包;控制所述BLE模块在BLE广播信道接收第一终端发送的建立BLE连接的连接请求,与所述目标终端建立BLE连接;控制所述BLE模块响应所述连接请求与所述第一终端建立BLE连接;控制所述BLE模块通过已建立的所述BLE连接的BLE数据通道获取所述第一终端发送的wifi direct的连接参数;根据所述连接参数进行本身的参数配置后向所述第一终端发送建立wifi direct的请求,并与所述第一终端进行握手以建立wifi direct,所述握手是所述第一终端接收所述建立wifi direct的请求后发起的,所述第一终端为wifi direct的组所有者(GO),所述目标终端为wifi direct的组客户端(GC);控制wifi direct模块利用已建立的所述wifi direct接收所述第一终端发送的所述文件。
在一种可能的实现方式中,在所述第一终端与所述接收终端建立BLE连接之后,所述处理器还用于执行如下步骤:确定所述目标终端的wifi direct接口是否被已占用;向所述第一终端发送用于指示所述目标终端的wifi direct接口是否被已占用的信息。
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例中网络架构示意图;
图2是本发明实施例提供的一种文件分享方法的流程示意图;
图3是本发明实施例提供的另一种文件分享方法的流程示意图;
图4是本发明实施例提供的另一种文件分享方法的流程示意图;
图5-a至5-d是本发明实施例提供的一种文件的发送终端的结构示意图;
图6-a至6-d是本发明实施例提供的一种文件的接收终端的结构示意图;
图7-a至7-g是本发明的一个实施例中发送终端以及接收终端的界面示意图;
图8是本发明实施例提供的一种文件的发送终端的结构示意图;
图9是本发明实施例提供的一种文件的接收终端的结构示意图。
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
需要说明的是,在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。应当理解的是,本文中虽然使用术语第一、第二等描述消息业务或模块,但是这些消息业务或模块应该不受这些术语的限制,这些术语仅被用于彼此区分。还应当理解的是,在本文中使用的,除非上下文清楚地支持例外情况,单数形式“一个”旨在也包括复数形式。还应该理解的是,在本文中使用的“和/或”是指包括一个或者一个以上相关联地列出的项目的任意和所有可能组合。
为了便于理解本发明实施例,下面先对本发明实施例的网络构架进行描述。请参阅图1,图1是本发明实施例公开的一种网络构架示意图。如图1所示,本发明实施例提供的网络架构是基于BLE及wifi direct在发送终端和接收终端之间传输文件的架构,可以包括:一个发送终端、以及一个或者多个接收终端,具体地,在发送终端进行文件传输时,先通过BLE方式完成设备发现、并在BLE数据信道中传输wifi direct连接所需要的握手信息等连接参数,然后建立wifi direct连接,通过wifi direct传输文件。
可以理解的是,以上图1中的网络架构只是本发明实施例中的一种实施方式,本发明实施例中的网络架构包括但不仅限于以上网络架构,只要能够实现
本发明中的文件的发送方法及文件的接收方法的网络架构均属于本发明所保护和涵盖的范围。
需要说明的是,发送终端用于向接收终端发送文件,接收终端是用于接收发送终端发送的文件,发送终端及接收终端可以是智能手机、平板电脑、个人数字助理(Personal Digital Assistant,PDA)或者膝上型便携计算机等具有BLE功能和wifi direct功能的电子设备。
具体地,请参见图2,图2是本发明实施例公开的一种文件分享方法的流程示意图,包括发送终端执行的文件发送方法、以及在BLE广播信道中发送广播包的接收终端执行的文件接收方法。
下面用第一终端代表上述的发送终端,而用目标终端代表上述的接收终端。需要说明的是,可能有一个或多个第二终端发送广播包,第一终端在BLE广播信道中接收到的广播包可能来自第二终端中的目标终端,也可能来自于第二终端中的非目标终端;在BLE广播信道发送广播包的第二终端可能需要对接收所述广播包的终端进行鉴权,只有鉴权通过的终端才能发现发送所述广播包的第二终端;当然,在BLE广播信道发送广播包的第二终端也可能不需要对接收所述广播包的终端进行鉴权,即只要接收到所述广播包的终端就可以发现发送所述广播包的第二终端,当第一终端发现至少一个第二终端时,可以将文件发送给所有可被发现的第二终端,这时所有可被发现的第二终端为目标终端。当然第一终端也可以将文件发送给部分可被发现的第二终端,则所述部分可被发现的第二终端为目标终端。
图2中所述第一终端已启动低功耗蓝牙BLE功能和无线直连wifi direct功能,举例来说,如图7-a所示,在第一终端中设置BLE和wifi direct为高亮状态,即:已启动了BLE功能和wifi direct功能。第二终端也启动了低功耗蓝牙BLE功能和无线直连wifi direct功能。如图7-a所示,在第二终端中设置BLE和wifi direct为高亮状态,即:已启动了BLE功能和wifi direct功能。具体地,第一终端进行文件分享时,可以包括如下步骤:
201.第一终端启动指定应用程序。
举例来说,若图7-a中所示的MagicLink为指定应用程序,则可以通过点击
MagicLink的图标触发启动MagicLink,第一终端的显示界面切换为图7-b所示,按照图7-b中的提示,点击MagicLink的按钮打开wifi direct和BLE,开启Magiclink共享功能。打开wifi direct和BLE后,第一终端开始发现其他设备,第一终端的显示界面切换为图7-c所示。
202.第二终端启动指定应用程序。
举例来说,若图7-a中所示的MagicLink为指定应用程序,则可以通过点击MagicLink的图标启动MagicLink。
需要说明的是,指定应用程序为用户指定的用于完成本发明实施例中公开的文件发送方法和文件接收方法的一个示例。第一终端与第二终端都打开所述指定应用程序,利用指定应用程序进行文件的分享,可选地,第一终端可以通过指定应用程序中的发送功能发送文件,第二终端通过指定应用程序中的接收功能接收文件。
可选的,在本发明一些可能的实施方式中,第一终端启动指定应用程序之前,当确定需要将文件从第一终端发送时,可以在获取了从第一终端的显示界面的底边向中间滑动的滑动操作时触发第一显示指令。根据第一显示指令显示包括所述指定应用程序的共享应用程序显示界面;即在共享应用程序显示界面中可以显示多个用于文件分享的应用程序,比如包括本实施例中的指定应用程序、微信、qq等应用程序。
获取触发所述指定应用程序启动的触发指令,触发指令可以是在共享应用程序显示界面中单击所述指定应用程序的图标的单击操作。
采用从第一终端的显示界面的底边向中间滑动的方式触发第一显示指令,操作简洁方便。
203、第二终端将BLE设置为可被发现模式。
举例来说,图7-f为BLE发现模式设置示意图,若点击图7-f中的开启按钮,则将BLE设置为可被发现模式,默认可以被所有人发现,当然也可以对能够发现所述目标终端的第一终端进行限定。当点取消按钮时,则任何终端都不能发现该目标终端。
204、第二终端在BLE广播信道发出广播包。
其中,所述广播包可以包括第二终端的地址,以及第二终端中的指定应用程序的账户的账户标识,账户标识可以是账号或者昵称等。
205、第一终端在BLE广播信道中扫描以获取至少一个第二终端发送的广播包。
第二终端是启动了BLE功能并且在BLE广播信道中发送广播包的终端,可能有至少一个第二终端启动了BLE功能并且在BLE广播信道中发送广播包,因此,第一终端在BLE广播信道中可以扫描到至少一个第二终端发送的广播包。由于每个第二终端都会发送广播包,因此上述第一终端能扫描到至少一个第二终端发送的至少一个广播包。
206、第一终端根据所述广播包确定可被发现的至少一个第二终端;
由于第一终端能扫描到至少一个第二终端发送的至少一个广播包,所以第一终端可以确定至少一个可被发现的第二终端。
具体地,第一终端解析所述广播包,获取所述可被发现的第二终端中的所述指定应用程序的账户的账户标识。
举例来说,第二终端中的指定应用程序的账户的账户标识可以是账号或者账户的昵称,比如,第二终端的指定应用程序对应的账户的昵称可以为jzyRecv。
207、第一终端从所述可被发现的至少一个第二终端中确定用于接收所述文件的目标终端。
举例来说,在第一终端的指定应用程序的候选接收终端预览区域中显示所述至少一个第二终端的指定应用程序的账户对应的预览信息,所述预览信息包括所述账户标识。
比如,若第二终端的指定应用程序对应的账户的昵称为jzyRecv,则如图7-d所示,在第一终端的指定应用程序的可选的接收终端预览区域中显示第二终端的目标应程序的账号对应的账号的昵称jzyRecv。可以理解的是,若发现多个可被发现的第二终端,则在第一终端的指定应用程序的可选的接收终端预览区域中显示被第一终端发现的所有第二终端的昵称。
进一步地,根据所述预览信息确定用于接收所述文件的第二终端作为目标
终端。
举例来说,若点击图7-d中的昵称jzyRecv,则确定与所述昵称jzyRecv对应的第二终端为目标终端。
当有多个第二终端时,目标终端可以是全部的第二终端,也可以是一部分的第二终端。
具体地,可以通过单击预览信息中的账户标识的方法确定用于接收文件的第二终端,并将单击操作的账户标识对应的第二终端作为目标终端。
208、所述第一终端向所述目标终端发送连接请求,所述目标终端响应所述连接请求,所述第一终端与所述目标终端建立BLE连接。
第一终端与目标终端之间建立BLE连接的方法是现有技术的方案,在此不再详述。
209、所述第一终端通过所述BLE连接的BLE数据信道向所述目标终端发送wifi direct的连接参数。
连接参数可以包括:为目标终端准备的参数,比如wifi direct的握手信息、以及第一终端为所述目标终端分配的ip地址、指定的通信信道等。
210、所述第一终端与所述目标终端利用所述wifi direct的连接参数建立wifi direct,具体的,所述第一终端接收所述目标终端发送的建立wifi direct的请求,并在收到所述建立wifi direct的请求后,与所述目标终端进行握手以建立wifi direct,所述建立wifi direct的请求是所述目标终端根据所述连接参数进行本身的参数配置后向所述第一终端发起的。
具体地,所述第一终端作为wifi direct的组所有者(GO),所述目标终端作为wifi direct的组客户端(GC);目标终端根据所述连接参数进行本身的参数配置,配置完成后向第一终端发起建立wifi direct的请求。第一终端收到请求后,与目标终端进行握手以完成wifi direct的通信链路建立。
211、所述第一终端利用与所述目标终端建立的所述wifi direct向所述目标终端发送所述文件。
212.所述目标终端通过已建立的所述wifi direct连接获取所述第一终端发送的所述文件。
可选的,在本发明一些可能的实施方式中,在第一终端通过wifi direct向目标终端发送文件、并且发送完成后,可以在显示界面中提醒发送成功的信息,如图7-e所示。
可选的,在本发明一些可能的实施方式中,第一终端通过wifi direct向目标终端传输所述文件时,在目标终端的显示界面可以弹出是否接收所述文件的提示窗口,用户可以选择接收或者拒绝接收,若用户选择接收,则执行步骤211;若用户选择拒绝接收,则可结束向该目标终端传输文件,相应的也可以在第一终端弹出提示窗口,提示目标终端拒绝接收所述文件,并结束向该目标终端传输文件。
可选的,在本发明一些可能的实施方式中,在目标终端接收完所述文件后,可以弹出文件成功接收的提示消息,如图7-g所示,在目标终端成功接收了第一终端发送的文件之后,在显示界面中显示“成功接收“jiangzy”向您共享的1张图片。
目标终端可以向第一终端发送文件传输完毕的反馈消息。以及如7-e所示,在显示界面的目标终端的账户的昵称jiangzy的下面显示发送成功的提醒信息。
本发明实施例,当第一终端需要向目标终端发送文件时,第一终端先在BLE广播信道中扫描,获取第二终端发送的广播包,然后根据广播包确定可被发现的第二终端,接着从可被发现的第二终端中确定接收文件的目标终端,随后,第一终端利用与目标终端建立的BLE连接向目标终端发送wifi direct的连接参数,第一终端与目标终端利用wifi direct的连接参数建立wifi direct,第一终端利用建立的wifi direct向目标终端发送文件。由于BLE只有三个广播信道,远少于经典蓝牙或者wifi direct的广播信道,所以采用本发明实施例提供的技术方案,有利于快速发现可被发现的第二终端;另外,由于第一终端通过扫描第二终端的广播包来发现可被发现的第二终端并确定目标终端,确定目标终端的方法很简单、流程很短,有利于快速确定目标终端。另外,在第一终端将wifi direct的连接参数发送到目标终端后,目标终端能直接发起建立wifi direct的请求,也能缩短wifi direct建立的时间。在传输文件时,由于采用了wifi direct的方式,确保了文件传输速度和效率。因此,本发明实施例提供的技术方案有利
于提高文件分享的效率。
请参见图3,图3是本发明实施例公开的另一种文件分享方法的流程示意图,与图2所示流程的区别在于,第二终端需要对接收第二终端发送的广播包的第一终端进行鉴权,鉴权通过的第一终端才可以发现所述第二终端。
其中,进行文件分享时,步骤301至305与图2中的步骤201至205相同,这里不再赘述。
图3所示的文件分享方法的流程还包括:
306、所述第一终端解析第一终端在广播信道中获取的广播包。
307、判断所述广播包的解析结果是否包括需要对接收到所述广播包的第一终端进行鉴权的信息。
308、若所述步骤307的判断结果为是,则所述第一终端向发送所述广播包的第二终端发起BLE连接请求,建立BLE连接后,在BLE数据信道向第二终端发送鉴权请求。
所述鉴权请求中携带需要鉴权的待验证信息。举例来说,若第二终端设定只有通讯录中的联系人对应的终端才可以发现所述第二终端,则鉴权信息中可以包括第一终端对应的联系人信息或者电话号码。第二终端根据获取的鉴权请求对第一终端进行验证。
309、所述第一终端获取所述第二终端对所述鉴权请求进行鉴权的鉴权结果。
具体地,所述第二终端可以通过BLE数据信道向所述第一终端返回鉴权结果。
310、判断鉴权是否通过。
311、若鉴权没有通过,则第一终端未能发现发送所述广播包的第二终端。
312、若鉴权通过,所述第一终端将发送所述广播包的第二终端确定为可被发现的第二终端。
鉴权通过时,将对应的第二终端的指定应用程序的账户对应的预览信息显示在所述第一终端的所述指定应用程序的可选的接收终端预览区域中。后续的
步骤313至318与图2中的207至212相同,具体流程可以参照前面的描述,这里不再赘述。
本发明实施例提供的方案,对能够发现第二终端的终端进行限定,只有鉴权通过的终端才能发现所述第二终端,有利于提高通信的安全性和避免第二终端被未鉴权通过的非法用户发现,有利于减少非法用户对第二终端的骚扰。
请参见图4,图4是本发明实施例公开的另一种文件分享方法的流程示意图,具体地,第一终端向目标终端分享文件。其中第一终端和第二终端都已开启了BLE功能和wifi direct功能。所述文件分享方法可以包括如下步骤:
401、第一终端启动指定应用程序。
402、第二终端启动指定应用程序。
403、第二终端将BLE设置为可被发现模式。
404、第二终端在BLE广播信道发出广播包。
405、第一终端在BLE广播信道中扫描,获取第二终端发送的广播包。
406、解析广播包,获取所述第二终端的账号标识。所述账户标识包括用户ID和昵称。
407、根据所述的账号标识确认所述第一终端中是否存储了所述第二终端的账户头像,如果是则获取所述第二终端的账户头像。
408、在所述第一终端的所述指定应用程序的可选的接收终端预览区域中显示所述第二终端的预览信息,预览信息包括账户标识和账户头像。可选的接收终端预览区域中显示的第二终端即为可被发现的第二终端。
409、根据所述预览信息确定用于接收所述文件的第二终端作为目标终端
需要说明的是,当有多个第二终端时,目标终端可以是全部的第二终端,也可以是部分第二终端。
410、所述第一终端向所述目标终端发送连接请求,所述目标终端响应所述连接请求,所述第一终端与所述目标终端建立BLE连接。
411、所述第一终端获取用于指示所述目标终端的wifi direct接口是否已被占用的信息。具体的,BLE连接建立后,第一终端向目标终端询问wifi direct
是否被占用,目标终端向第一终端响应wifi direct接口是否被占用的信息。所述信息用于指示所述目标终端的wifi direct接口是否已被占用。
412、根据获取的所述目标终端的wifi direct接口是否已被占用的信息确定所述目标终端的wifi direct接口是否被已占用。
若是,则执行步骤413;若否,则执行步骤414。
413、在目标终端中的wifi direct接口已被占用时,在所述第一终端的显示界面中弹出暂时无法成功发送文件的提醒消息,第一终端停止向目标终端发送wifi direct连接参数。
414、在目标终端中的wifi direct接口未被占用时,所述第一终端通过所述BLE连接向所述目标终端发送包括wifi direct握手信息、以及为所述目标终端分配的ip地址在内的连接参数。
415、目标终端获取所述第一终端发送的连接参数。
416、所述第一终端与所述目标终端利用所述wifi direct的连接参数建立wifi direct,具体的,目标终端利用获取的所述连接参数,对所述目标终端中的参数进行配置,配置完成后向第一终端发起建立wifi direct的请求,第一终端收到请求后,与目标终端进行握手以建立wifi direct。所述第一终端作为wifi direct的组所有者(GO),所述目标终端作为wifi direct的组客户端(GC)。
417、获取所述目标终端的的账户头像。
418、将所述账户头像保存在所述第一终端中。
419、所述第一终端通过所述wifi direct连接向所述目标终端传输所述文件。
420、所述目标终端通过所述wifi direct连接获取所述第一终端发送的所述文件。
上述步骤417-418与步骤419-420没有特殊的先后顺序。
通过本发明实施例提供的方案,通过在预览信息中显示第二终端的指定应用程序的账户的账户头像,有利于从可选的接收终端中快速定位和区分第二终端,提高了第二终端的辨识性,有利于提高交互性。另外,在与目标终端建立BLE连接之后,获取wifi direct接口是否被已占用的信息,并在wifi direct接口
已被占用时,弹出暂时无法成功发送文件的提醒消息,并停止向目标终端发送wifi direct连接参数,可以尽快的了解到wifi direct的占用信息,节省了BLE的传输资源,简化了流程,有更好的用户体验。
请参见图5-a,图5-a是本发明实施例公开的一种文件的发送终端500的结构示意图,如图5-a所示,发送终端500用于发送文件到目标终端,所述发送终端500已启动低功耗蓝牙BLE功能和无线直连wifi direct功能,所述发送终端500可以包括:扫描单元501、第一确定单元502、第二确定单元503、第一处理单元504、第一发送单元505、第二处理单元506和第二发送单元507。其中,
扫描单元501,用于在BLE广播信道中扫描以获取至少一个第二终端发送的广播包。
第一确定单元502,用于根据所述广播包确定可被发现的至少一个第二终端。
可选的,所述第一确定单元502可以具体用于,解析所述广播包,若对所述广播包的解析结果不包括需要对接收到所述广播包的终端进行鉴权的信息,则所述发送终端将发送所述广播包的第二终端确定为可被发现的第二终端。
可选的,所述第一确定单元502可以具体用于,解析所述广播包;若对所述广播包的解析结果包括需要对接收到所述广播包的终端进行鉴权的信息,则向发送所述广播包的第二终端发送鉴权请求,获取所述第二终端对所述鉴权请求进行鉴权的鉴权结果;若所述鉴权结果指示鉴权通过,则将发送所述广播包的第二终端确定为可被发现的第二终端。
第二确定单元503,用于从所述可被发现的至少一个第二终端中确定用于接收所述文件的目标终端。
第一处理单元504,用于向所述目标终端发送连接请求,与所述目标终端建立BLE连接。
第一发送单元505,用于通过所述BLE连接的BLE数据信道向所述目标终端发送高保真直连(wifi direct)的连接参数。
第二处理单元506,用于接收所述目标终端发送的建立wifi direct的请求,
并在收到所述建立wifi direct的请求后,与所述目标终端进行握手以建立wifi direct,所述建立wifi direct的请求是所述目标终端根据所述连接参数进行本身的参数配置后向所述发送终端发送的;所述发送终端为wifi direct的组所有者(GO),所述目标终端为wifi direct的组客户端(GC)。
第二发送单元507,用于利用所述wifi direct向所述目标终端发送所述文件。
可以理解的是,本实施例的发送终端500的各单元的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。
本发明实施例,先后采用BLE方式及wifi direct方式完成设备发现及文件传输。由于BLE只有三个广播信道,远少于经典蓝牙或者wifi direct的广播信道,所以采用本发明实施例提供的技术方案,有利于快速发现接收终端、减少发现接收终端的时长;另外,由于发送终端通过扫描第二终端的广播包来发现可被发现的第二终端并确定目标终端,确定目标终端的方法很简单、流程很短,有利于快速确定目标终端。另外,在发送终端将wifi direct的连接参数发送到目标终端后,目标终端能直接发起建立wifi direct的请求,也能缩短wifi direct建立的时间。在传输文件时,由于采用了wifi direct的方式,确保了文件传输速度和效率。因此,本发明实施例提供的技术方案有利于提高文件分享的效率。
可选的,在本发明一些可能的实施方式中,如图5-b所示,发送终端500还可以包括:
第一获取单元508,用于建立wifi direct之后,获取所述目标终端的账户头像。
存储单元509,用于将所述账户头像、以及所述目标终端与所述账户头像的对应关系存储在所述第一终端中。
第一显示单元510,用于在确定用于接收所述文件的目标终端之前,显示所述可被发现的至少一个第二终端的账户头像,所述可被发现的至少一个第二终端的账户头像已经存储在所述发送终端中。
通过显示发送终端已经存储的任一所述可被发现的至少一个第二终端的
账户头像,有利于从可被发现的至少一个第二终端中快速定位和区分不同的第二终端,提高了第二终端的辨识性。
可选的,在本发明一些可能的实施方式中,如图5-c所示,发送终端500还可以包括:第二获取单元511、第三处理单元512、第二显示单元513、和启动单元514。其中,
第二获取单元511,用于在所述扫描单元在BLE广播信道中扫描以获取至少一个第二终端发送的至少一个广播包之前,获取在所述发送终端的显示界面中的触控轨迹;
第三处理单元512,用于在所述第二获取单元获取的所述触控轨迹为从所述发送终端的显示界面的底边向中间滑动的触控轨迹时,触发生成第一指令;
第二显示单元513,用于根据所述第三处理单元生成的所述第一指令在所述发送终端的显示界面中显示包括所述指定应用程序的共享应用程序预览界面;
启动单元514,用于获取对所述第二显示单元显示的所述指定应用程序的触控指令,启动所述指定应用程序。
采用从第一终端的显示界面的底边向中间滑动的方式触发的第一显示指令,操作简洁方便。
可选的,在本发明一些可能的实施方式中,如图5-d所示,发送终端500还可以包括:第三获取单元515和第四处理单元516。
第三获取单元515,用于在建立BLE连接之后,获取用于指示所述目标终端的wifi direct接口是否已被占用的信息。
第四处理单元516,用于若所述信息指示所述目标终端的wifi direct接口已被占用,则在所述发送终端的显示界面中弹出暂时无法成功发送文件的提醒消息,若所述信息指示所述目标终端的wifi direct接口未被占用,则所述发送终端通过所述BLE连接的BLE数据信道向所述目标终端发送wifi direct的连接参数。
通过本发明实施例提供的方案,在与目标终端建立BLE连接之后,获取wifi direct接口是否被已占用的信息,并在wifi direct接口已被占用时,弹出暂
时无法成功发送文件的提醒消息,并停止向目标终端发送wifi direct连接参数,可以尽快的了解到wifi direct的占用信息,节省了BLE的传输资源,简化了流程,有更好的用户体验。
请参见图6-a,图6-a是本发明实施例公开的一种文件的接收终端600的结构示意图,如图6-a所示,接收终端600用于接收文件,接收终端600已启动低功耗蓝牙BLE功能和无线直连wifi direct功能,所述发送终端600可以包括:
设置单元601,用于设置低功耗蓝牙(BLE)为可被发现模式;
第三发送单元602,用于在BLE广播信道中发送广播包;
第一接收单元603,用于接收第一终端发送的建立BLE连接的连接请求;
第一连接单元604,用于响应所述第一接收单元接收的所述连接请求与所述第一终端建立BLE连接;
第四获取单元605,用于通过已建立的所述BLE连接的BLE数据通道获取所述第一终端发送的wifi direct的连接参数;
第二连接单元606,用于根据所述连接参数进行所述接收终端的参数配置后向所述第一终端发送建立wifi direct的请求,并与所述第一终端进行握手以建立wifi direct,所述握手是所述第一终端接收所述建立wifi direct的请求后发起的,所述第一终端为wifi direct的组所有者(GO),所述接收终端为wifi direct的组客户端(GC);
第二接收单元607,用于利用已建立的所述wifi direct接收所述第一终端发送的所述文件。
可以理解的是,本实施例的接收终端600的各单元的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。
本发明实施例,先后采用BLE与wifi direct的方式完成设备发现及文件传输。在传输文件时由于采用了wifi direct的方式,确保了文件传输速度和效率。由于BLE只有三个广播信道,远少于经典蓝牙或者wifi direct的广播信道数量,另外,在发送终端将wifi direct的连接参数发送到目标终端后,目标终端能直
接发起建立wifi direct的请求,也能缩短wifi direct建立的时间。所以,采用本发明实施例提供的技术方案,有利于快速被发送终端发现、减少了被发送终端发现的时长,有利于提升文件接收的效率。
可选的,在本发明一些可能的实施方式中,如图6-b所示,接收终端600还可以包括:
第四发送单元608,用于建立wifi direct之后,向所述第一终端发送所述目标终端的账户头像。
可选的,在本发明一些可能的实施方式中,如图6-c所示,接收终端600还可以包括:
第四处理单元609,用于若所述广播包包括用于指示需要对接收到所述广播包的终端进行鉴权的信息,则在所述第一接收单元接收发送所述文件的第一终端发送的建立BLE连接的连接请求之前,接收所述第一终端发送的鉴权请求;对所述鉴权请求进行鉴权,并将鉴权结果发送给所述第一终端。
可选的,在本发明一些可能的实施方式中,如图6-d所示,接收终端600还可以包括:
第五处理单元610,用于建立BLE连接之后,确定所述目标终端的wifi direct接口是否被已占用;以及向所述第一终端发送用于指示所述目标终端的wifi direct接口是否被已占用的信息,第一终端可以尽快的了解到wifi direct的占用信息,节省了BLE的传输资源,简化了流程,有更好的用户体验。
请参见图8,图8是本发明实施例公开的一种文件的发送终端800的结构示意图,如图8所示,发送终端800用于发送文件到作为目标终端的接收终端,所述发送终端800包括:处理器801、存储器802、无线连接模块803、输入装置804(以触控屏为例)、通信总线805和一个或多个程序。
其中,处理器801、存储器802、无线连接模块803、触控屏804通过通信总线805连接并完成相互间的通信;无线连接模块803可以包括BLE模块和wifi direct模块,分别用于启动和执行BLE功能和wifi direct功能。输入装置804可以用于接收用户的操作指令,存储器802包括以下至少一种:随机存取存贮器、
非易失性存储器以及外部存储器。一个或多个程序包括指令,其中所述一个或多个程序被存储在所述存储器中并被配置为被所述处理器执行本发明方法实施例中具体披露的文件发送方法。
具体实施时,通过所述输入装置获取用户启动BLE功能和wifi direct功能的指令,并启动BLE功能和wifi direct功能。
控制所述BLE模块在BLE广播信道中扫描以获取至少一个第二终端发送的广播包。
根据所述广播包确定可被发现的至少一个第二终端。
获取用户通过所述输入装置从所述可被发现的所述至少一个第二终端中选取的用于接收文件的的目标终端。
控制所述BLE模块向所述目标终端发送连接请求,与所述目标终端建立BLE连接。
控制所述BLE模块通过已建立的所述BLE连接的BLE数据信道向所述目标终端发送wifi direct的连接参数。
接收所述目标终端发送的建立wifi direct的请求,并在收到所述建立wifi direct的请求后,与所述目标终端进行握手以建立wifi direct,所述建立wifi direct的请求是所述目标终端根据所述连接参数进行本身的参数配置后向所述第一终端发送的;所述第一终端为wifi direct的组所有者(GO),所述目标终端为wifi direct的组客户端(GC)。
控制所述wifi direct模块利用与所述目标终端建立的所述wifi direct向所述目标终端发送所述文件。
本实施例中,还可以用于执行如下步骤:获取用于指示所述目标终端的wifi direct接口是否已被占用的信息。若所述信息指示所述目标终端的wifi direct接口已被占用,则在所述发送终端的显示界面中弹出暂时无法成功发送文件的提醒消息,若所述信息指示所述目标终端的wifi direct接口未被占用,则所述发送终端通过所述BLE连接的BLE数据信道向所述目标终端发送wifi direct的连接参数。
本实施例中,还可以用于执行方法实施例中描述的方案,可以参考方法实
施例中的说明,在此不再详细说明。
请参见图9,图9是本发明实施例公开的一种文件的接收终端900的结构示意图,如图9所示,接收终端900用于获取发送终端发送的文件。接收终端900包括:处理器901、存储器902、无线连接模块903、输入装置904(以触控屏为例)、通信总线905和一个或多个程序。
其中,处理器901、存储器902、无线连接模块903、输入装置904通过通信总线905连接并完成相互间的通信;无线连接模块903可以包括BLE模块和wifi direct模块,分别用于启动BLE功能和wifi direct功能。输入装置904可以用于接收用户的操作指令,存储器902包括以下至少一种:随机存取存贮器、非易失性存储器以及外部存储器。所述一个或多个程序包括指令,其中所述一个或多个程序被存储在所述存储器中并被配置为被所述一个或多个处理器执行本发明方法实施例中具体披露的文件接收方法,包括以下步骤:
具体实施时,通过所述输入装置获取用户启动BLE功能和启动wifi direct功能的指令,并启动BLE功能和wifi direct功能。
控制所述BLE模块在BLE广播信道发送广播包。
控制所述BLE模块在BLE广播信道接收第一终端发送的建立BLE连接的连接请求,与所述目标终端建立BLE连接。
控制所述BLE模块响应所述连接请求与所述第一终端建立BLE连接。
控制所述BLE模块通过已建立的所述BLE连接的BLE数据通道获取所述第一终端发送的wifi direct的连接参数。
根据所述连接参数进行本身的参数配置后向所述第一终端发送建立wifi direct的请求,并与所述第一终端进行握手以建立wifi direct,所述握手是所述第一终端接收所述建立wifi direct的请求后发起的,所述第一终端为wifi direct的组所有者(GO),所述目标终端为wifi direct的组客户端(GC)。
控制wifi direct模块利用已建立的所述wifi direct接收所述第一终端发送的所述文件。
本实施例中,还可以用于执行如下步骤:确定所述目标终端的wifi direct
接口是否被已占用;向所述第一终端发送用于指示所述目标终端的wifi direct接口是否被已占用的信息。
本实施例中,还可以用于执行方法实施例中描述的方案,可以参考方法实施例中的说明,在此不再详细说明。
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任意一种文件的发送方法的部分或全部步骤。
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任意一种文件的接收方法的部分或全部步骤。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可能可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以为个人计算机、服务器或者网络设备等,具体可以是计算机设备中的处理器)执行本发明各个实施例上述方法的全部或部分步骤。其中,而前述的存储介质可包括:U盘、移动硬盘、磁碟、光盘、只读存储器(英文:Read-Only Memory,缩写:ROM)或者随机存取存储器(英文:Random Access Memory,缩写:RAM)等各种可以存储程序代码的介质。
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。
Claims (25)
- 一种文件发送方法,其特征在于,所述方法包括:第一终端通过在低功耗蓝牙(BLE)广播信道中扫描以获取至少一个第二终端发送的广播包;所述第一终端根据所述广播包确定可被发现的至少一个第二终端;所述第一终端从所述可被发现的至少一个第二终端中确定用于接收文件的目标终端;所述第一终端向所述目标终端发送连接请求,与所述目标终端建立BLE连接;所述第一终端通过所述BLE连接的BLE数据信道向所述目标终端发送高保真直连(wifi direct)的连接参数;所述第一终端接收所述目标终端发送的建立wifi direct的请求,并在收到所述建立wifi direct的请求后,与所述目标终端进行握手以建立wifi direct,所述建立wifi direct的请求是所述目标终端根据所述连接参数进行本身的参数配置后向所述第一终端发送的;所述第一终端为wifi direct的组所有者(GO),所述目标终端为wifi direct的组客户端(GC);所述第一终端利用与所述目标终端建立的所述wifi direct向所述目标终端发送所述文件。
- 根据权利要求1所述的方法,其特征在于,在所述第一终端与所述目标终端建立BLE连接之后,所述方法还包括:所述第一终端获取用于指示所述目标终端的wifi direct接口是否已被占用的信息;若所述信息指示所述目标终端的wifi direct接口已被占用,则在所述第一终端的显示界面中弹出暂时无法成功发送文件的提醒消息,若所述信息指示所述目标终端的wifi direct接口未被占用,则所述第一终端通过所述BLE连接的BLE数据信道向所述目标终端发送wifi direct的连接参数。
- 根据权利要求1或2所述的方法,其特征在于,在所述第一终端与所述目标终端建立wifi direct之后,所述方法还包括:所述第一终端获取所述目标终端的账户头像;所述第一终端将获取的所述目标终端的账户头像、以及所述目标终端与所述账户头像的对应关系存储在所述第一终端中。
- 根据权利要求3所述的方法,其特征在于,在所述第一终端从所述可被发现的至少一个第二终端中确定用于接收所述文件的目标终端之前,所述方法还包括:所述第一终端显示所述可被发现的至少一个第二终端的账户头像,所述可被发现的至少一个第二终端的账户头像已经存储在所述第一终端中。
- 根据权利要求1至4中任一项所述的方法,其特征在于,所述第一终端根据所述广播包确定可被发现的至少一个第二终端,包括:所述第一终端解析所述广播包;若所述广播包的解析结果不包括需要对接收到所述广播包的终端进行鉴权的信息,则所述第一终端将发送所述广播包的第二终端确定为可被发现的第二终端。
- 根据权利要求1至4中任一项所述的方法,其特征在于,所述第一终端根据所述广播包确定可被发现的至少一个第二终端,包括:所述第一终端解析所述广播包;若所述广播包的解析结果包括需要对接收到所述广播包的终端进行鉴权的信息,则所述第一终端向发送所述广播包的第二终端发送鉴权请求,获取所述第二终端对所述鉴权请求进行鉴权的鉴权结果;若所述鉴权结果指示鉴权通过,则将发送所述广播包的第二终端确定为可被发现的第二终端。
- 根据权利要求1至6中任一项所述的方法,其特征在于,所述第一终端通过在低功耗蓝牙(BLE)广播信道中扫描以获取至少一个第二终端发送的广播包之前,所述方法还包括:所述第一终端获取在所述第一终端的显示界面中的触控轨迹;在所述触控轨迹为从所述第一终端的显示界面的底边向中间滑动的触控轨迹时,所述第一终端触发生成第一指令;所述第一终端根据所述第一指令在所述第一终端的显示界面中显示包括指定应用程序的共享应用程序预览界面;获取对所述指定应用程序的触控指令,启动所述指定应用程序。
- 一种文件的接收方法,其特征在于,所述方法包括:目标终端设置低功耗蓝牙(BLE)为可被发现模式;所述目标终端在BLE广播信道中发送广播包;所述目标终端接收第一终端发送的建立BLE连接的连接请求,与所述第一终端建立BLE连接;所述目标终端通过所述BLE连接的BLE数据通道获取所述第一终端发送的高保真直连(wifi direct)的连接参数;所述目标终端根据所述连接参数进行本身的参数配置后向所述第一终端发送建立wifi direct的请求,并与所述第一终端进行握手以建立wifi direct,所述握手是所述第一终端接收所述建立wifi direct的请求后发起的,所述第一终端为wifi direct的组所有者(GO),所述目标终端为wifi direct的组客户端(GC);所述目标终端利用所述wifi direct接收所述第一终端发送的所述文件。
- 根据权利要求8所述的方法,其特征在于,在所述目标终端与所述第一终端建立BLE连接之后,所述方法还包括:所述目标终端确定所述目标终端的wifi direct接口是否被已占用;所述目标终端向所述第一终端发送用于指示所述目标终端的wifi direct接口是否被已占用的信息。
- 根据权利要求8或9所述的方法,其特征在于,在所述目标终端与所述第一终端建立wifi direct之后,所述方法还包括:所述目标终端向所述第一终端发送所述目标终端的账户头像。
- 根据权利要求8至10中任一项所述的方法,其特征在于,若所述广播包包括用于指示需要对接收到所述广播包的终端进行鉴权的信息,则在所述目标终端接收发送所述文件的第一终端发送的建立BLE连接的连接请求之前,所述方法还包括:所述目标终端接收所述第一终端发送的鉴权请求;所述目标终端对所述鉴权请求进行鉴权,并将鉴权结果发送给所述第一终端。
- 一种文件的发送终端,用于发送所述文件到目标终端,所述发送终端已启动低功耗蓝牙(BLE)功能和高保真直连(wifi direct)功能,其特征在于,所述发送终端包括:扫描单元,用于在BLE广播信道中扫描以获取至少一个第二终端发送的广播包;第一确定单元,用于根据所述广播包确定可被发现的至少一个第二终端;第二确定单元,用于从所述可被发现的至少一个第二终端中确定用于接收所述文件的目标终端;第一处理单元,用于向所述目标终端发送连接请求,与所述目标终端建立BLE连接;第一发送单元,用于通过所述BLE连接的BLE数据信道向所述目标终端发送wifi direct的连接参数;第二处理单元,用于接收所述目标终端发送的建立wifi direct的请求,并在收到所述建立wifi direct的请求后,与所述目标终端进行握手以建立wifidirect,所述建立wifi direct的请求是所述目标终端根据所述连接参数进行本身 的参数配置后向所述第一终端发送的;所述发送终端为wifi direct的组所有者(GO),所述目标终端为wifi direct的组客户端(GC);第二发送单元,用于利用所述wifi direct向所述目标终端发送所述文件。
- 根据权利要求12所述的发送终端,其特征在于,还包括:第三获取单元,用于在建立BLE连接之后,获取用于指示所述目标终端的wifi direct接口是否已被占用的信息;第四处理单元,用于若所述信息指示所述目标终端的wifi direct接口已被占用,则在所述发送终端的显示界面中弹出暂时无法成功发送文件的提醒消息,若所述信息指示所述目标终端的wifi direct接口未被占用,则所述发送终端通过所述BLE连接的BLE数据信道向所述目标终端发送wifi direct的连接参数。
- 根据权利要求12或13所述的发送终端,其特征在于,还包括:第一获取单元,用于建立wifi direct之后,获取所述目标终端的账户头像;存储单元,用于将所述账户头像、以及所述目标终端与所述账户头像的对应关系存储在所述发送终端中。
- 根据权利要求14所述的发送终端,其特征在于,还包括:第一显示单元,用于在确定用于接收所述文件的目标终端之前,显示所述可被发现的至少一个第二终端的账户头像,所述可被发现的至少一个第二终端的账户头像已经存储在所述发送终端中。
- 根据权利要求12至15中任一项所述的发送终端,其特征在于,所述第一确定单元具体用于,解析所述广播包,若对所述广播包的解析结果不包括需要对接收到所述广播包的终端进行鉴权的信息,则所述发送终端将发送所述广播包的第二终端确定为可被发现的第二终端。
- 根据权利要求12至15中任一项所述的发送终端,其特征在于,所述第一确定单元具体用于,解析所述广播包;若对所述广播包的解析结果包括需要对接收到所述广播包的终端进行鉴权的信息,则向发送所述广播包的第二终端发送鉴权请求,获取所述第二终端对所述鉴权请求进行鉴权的鉴权结果;若所述鉴权结果指示鉴权通过,则将发送所述广播包的第二终端确定为可被发现的第二终端。
- 一种文件的接收终端,应用于接收第一终端发送的所述文件,所述接收终端已启动低功耗蓝牙(BLE)功能和高保真直连(wifi direct)功能,其特征在于,所述接收终端包括:设置单元,用于设置BLE为可被发现模式;第三发送单元,用于在BLE广播信道中发送广播包;第一接收单元,用于接收所述第一终端发送的建立BLE连接的连接请求;第一连接单元,用于响应所述第一接收单元接收的所述连接请求与所述第一终端建立BLE连接;第四获取单元,用于通过已建立的所述BLE连接的BLE数据通道获取所述第一终端发送的wifi direct的连接参数;第二连接单元,用于根据所述连接参数进行所述接收终端的参数配置后向所述第一终端发送建立wifi direct的请求,并与所述第一终端进行握手以建立wifi direct,所述握手是所述第一终端接收所述建立wifi direct的请求后发起的,所述第一终端为wifi direct的组所有者(GO),所述接收终端为wifi direct的组客户端(GC);第二接收单元,用于利用已建立的所述wifi direct接收所述第一终端发送的所述文件。
- 根据权利要求18所述的接收终端,其特征在于,还包括:第五处理单元,用于建立BLE连接之后,确定所述目标终端的wifi direct接口是否被已占用;以及向所述第一终端发送用于指示所述目标终端的wifi direct接口是否被已占用的信息。
- 根据权利要求18或19所述的接收终端,其特征在于,还包括:第四发送单元,用于建立wifi direct之后,向所述第一终端发送所述目标终端的账户头像。
- 根据权利要求18或19所述的接收终端,其特征在于,还包括:第四处理单元,用于若所述广播包包括用于指示需要对接收到所述广播包的终端进行鉴权的信息,则在所述第一接收单元接收发送所述文件的第一终端发送的建立BLE连接的连接请求之前,接收所述第一终端发送的鉴权请求;对所述鉴权请求进行鉴权,并将鉴权结果发送给所述第一终端。
- 一种文件的发送终端,其特征在于,包括:处理器、存储器、一个或多个程序、无线连接模块、输入装置和通信总线,所述处理器、所述存储器、所述无线连接模块、所述输入装置通过所述通信总线连接并完成相互间的通信;所述无线连接模块包括低功耗蓝牙(BLE)模块和高保真直连(wifi direct)模块,分别用于启动和执行BLE功能和wifi direct功能;所述输入装置用于获取用户的操作指令;所述一个或多个程序包括指令,其中所述一个或多个程序被存储在所述存储器中并被配置为被所述处理器执行如下操作:通过所述输入装置获取用户启动BLE功能和wifi direct功能的指令,并启动BLE功能和wifi direct功能;控制所述BLE模块在BLE广播信道中扫描以获取至少一个第二终端发送的广播包;根据所述广播包确定可被发现的至少一个第二终端;获取用户通过所述输入装置从所述可被发现的所述至少一个第二终端中选取的用于接收文件的的目标终端;控制所述BLE模块向所述目标终端发送连接请求,与所述目标终端建立 BLE连接;控制所述BLE模块通过已建立的所述BLE连接的BLE数据信道向所述目标终端发送wifi direct的连接参数;接收所述目标终端发送的建立wifi direct的请求,并在收到所述建立wifi direct的请求后,与所述目标终端进行握手以建立wifi direct,所述建立wifi direct的请求是所述目标终端根据所述连接参数进行本身的参数配置后向所述第一终端发送的;所述第一终端为wifi direct的组所有者(GO),所述目标终端为wifi direct的组客户端(GC);控制所述wifi direct模块利用与所述目标终端建立的所述wifi direct向所述目标终端发送所述文件。
- 根据权利要求22所述的发送终端,其特征在于,在所述第一终端与所述目标终端建立BLE连接之后,所述处理器还用于执行如下步骤:获取用于指示所述目标终端的wifi direct接口是否已被占用的信息;若所述信息指示所述目标终端的wifi direct接口已被占用,则在所述发送终端的显示界面中弹出暂时无法成功发送文件的提醒消息,若所述信息指示所述目标终端的wifi direct接口未被占用,则所述发送终端通过所述BLE连接的BLE数据信道向所述目标终端发送wifi direct的连接参数。
- 一种文件的接收终端,其特征在于,包括:处理器、存储器、无线连接模块、一个或多个程序、输入装置和总线,其中,所述处理器、所述存储器、所述无线连接模块、所述触控屏通过所述通信总线连接并完成相互间的通信;所述无线连接模块包括低功耗蓝牙(BLE)模块和高保真直连(wifi direct)模块,分别用于启动BLE功能和wifi direct功能;所述输入装置用于接收用户的操作指令,所述一个或多个程序包括指令,其中所述一个或多个程序被存储在所述存储器中并被配置为被所述处理器执行如下操作:通过所述输入装置获取用户启动BLE功能和启动wifi direct功能的指令,并 启动BLE功能和wifi direct功能;控制所述BLE模块在BLE广播信道发送广播包;控制所述BLE模块在BLE广播信道接收第一终端发送的建立BLE连接的连接请求,与所述目标终端建立BLE连接;控制所述BLE模块响应所述连接请求与所述第一终端建立BLE连接;控制所述BLE模块通过已建立的所述BLE连接的BLE数据通道获取所述第一终端发送的wifi direct的连接参数;根据所述连接参数进行本身的参数配置后向所述第一终端发送建立wifi direct的请求,并与所述第一终端进行握手以建立wifi direct,所述握手是所述第一终端接收所述建立wifi direct的请求后发起的,所述第一终端为wifi direct的组所有者(GO),所述目标终端为wifi direct的组客户端(GC);控制wifi direct模块利用已建立的所述wifi direct接收所述第一终端发送的所述文件。
- 根据权利要求24所述的接收终端,其特征在于,在所述第一终端与所述接收终端建立BLE连接之后,所述处理器还用于执行如下步骤:确定所述目标终端的wifi direct接口是否被已占用;向所述第一终端发送用于指示所述目标终端的wifi direct接口是否被已占用的信息。
Priority Applications (7)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP23166442.6A EP4274108A3 (en) | 2016-09-09 | 2016-09-09 | File sending method and terminal |
CN201680089049.6A CN109690959B (zh) | 2016-09-09 | 2016-09-09 | 一种文件的发送方法、接收方法及终端 |
JP2019513375A JP6750105B2 (ja) | 2016-09-09 | 2016-09-09 | ファイル送信方法および端末、ならびにファイル受信方法および端末 |
EP21185569.7A EP3968672B1 (en) | 2016-09-09 | 2016-09-09 | File sending method and terminal |
EP16915495.2A EP3506517B1 (en) | 2016-09-09 | 2016-09-09 | File transmission method, file reception method and terminal |
US16/332,180 US10701545B2 (en) | 2016-09-09 | 2016-09-09 | File sending method and terminal, and file receiving method and terminal |
PCT/CN2016/098580 WO2018045561A1 (zh) | 2016-09-09 | 2016-09-09 | 一种文件的发送方法、接收方法及终端 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2016/098580 WO2018045561A1 (zh) | 2016-09-09 | 2016-09-09 | 一种文件的发送方法、接收方法及终端 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018045561A1 true WO2018045561A1 (zh) | 2018-03-15 |
Family
ID=61562473
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/098580 WO2018045561A1 (zh) | 2016-09-09 | 2016-09-09 | 一种文件的发送方法、接收方法及终端 |
Country Status (5)
Country | Link |
---|---|
US (1) | US10701545B2 (zh) |
EP (3) | EP3506517B1 (zh) |
JP (1) | JP6750105B2 (zh) |
CN (1) | CN109690959B (zh) |
WO (1) | WO2018045561A1 (zh) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112153720A (zh) * | 2019-06-28 | 2020-12-29 | 腾讯科技(深圳)有限公司 | 无线网络的连接方法、装置、移动终端及存储介质 |
KR20210011027A (ko) * | 2018-05-31 | 2021-01-29 | 후아웨이 테크놀러지 컴퍼니 리미티드 | 애플리케이션 기능 구현 방법 및 전자 디바이스 |
CN112672313A (zh) * | 2020-12-18 | 2021-04-16 | 北京百度网讯科技有限公司 | 用于传输数据的方法、装置、设备以及存储介质 |
CN114286324A (zh) * | 2021-12-31 | 2022-04-05 | 南京四维智联科技有限公司 | 一种车机互联方法、系统、装置及计算机设备 |
CN114339591A (zh) * | 2021-12-09 | 2022-04-12 | 青岛海信移动通信技术股份有限公司 | 基于超宽带芯片进行定位的方法和相关装置 |
CN114928898A (zh) * | 2022-07-18 | 2022-08-19 | 荣耀终端有限公司 | 建立基于WiFi直接连接的会话的方法和装置 |
JP2022141683A (ja) * | 2018-05-31 | 2022-09-29 | 華為技術有限公司 | アプリケーション機能の実施方法及び電子装置 |
CN115314856A (zh) * | 2021-05-06 | 2022-11-08 | 上海擎感智能科技有限公司 | 电子设备的连接方法、连接装置、电子设备、介质及系统 |
JP7521522B2 (ja) | 2019-03-07 | 2024-07-24 | ソニーグループ株式会社 | 通信方法および通信システム |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108781410B (zh) * | 2017-03-14 | 2020-09-11 | 华为技术有限公司 | 一种扫描方法及设备 |
CN109428860B (zh) * | 2017-08-28 | 2020-08-21 | 天地融科技股份有限公司 | 一种安全显示数据的方法和装置 |
EP4102770A4 (en) * | 2020-02-10 | 2023-11-01 | Samsung Electronics Co., Ltd. | ELECTRONIC DEVICE AND METHOD FOR PEER-TO-PEER SERVICE IN AN ELECTRONIC DEVICE |
CN114356172A (zh) * | 2020-09-30 | 2022-04-15 | 华为技术有限公司 | 一种数据传输方法及电子设备 |
CN112492520A (zh) * | 2020-12-15 | 2021-03-12 | 北京百度网讯科技有限公司 | 定位方法、装置、设备以及存储介质 |
CN112654020B (zh) * | 2020-12-15 | 2023-03-28 | 阿波罗智联(北京)科技有限公司 | 建立无线连接的方法、装置、设备及存储介质 |
CN114915619B (zh) * | 2021-01-29 | 2023-12-15 | 华为技术有限公司 | 一种文件的分享方法及电子设备 |
KR20230050155A (ko) * | 2021-10-07 | 2023-04-14 | 삼성전자주식회사 | 어플리케이션의 특성에 기반하여 전자 장치 및 외부 전자 장치 사이의 채널을 선택하는 전자 장치 및 동작 방법 |
CN113905357B (zh) * | 2021-12-09 | 2022-03-25 | 深圳软牛科技有限公司 | 基于WiFi直连的数据迁移方法、装置、设备及存储介质 |
CN114157659B (zh) * | 2022-02-10 | 2022-06-21 | 荣耀终端有限公司 | 一种文件分享方法及终端设备 |
CN114928900B (zh) * | 2022-07-18 | 2022-10-04 | 荣耀终端有限公司 | 通过WiFi直接连接进行传输的方法和装置 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103096506A (zh) * | 2013-01-07 | 2013-05-08 | 东莞宇龙通信科技有限公司 | 终端设备、wifi连接方法及系统 |
CN103199901A (zh) * | 2012-01-10 | 2013-07-10 | 宏达国际电子股份有限公司 | 促进无线通信的系统与方法 |
CN104580401A (zh) * | 2014-12-23 | 2015-04-29 | 小米科技有限责任公司 | 连接方法及装置 |
CN105188013A (zh) * | 2015-06-26 | 2015-12-23 | 北京锤子数码科技有限公司 | 网络热点共享方法、装置及系统 |
CN105323223A (zh) * | 2014-07-18 | 2016-02-10 | 中国电信股份有限公司 | 移动终端通过点对点方式传输处理交易数据的方法和系统 |
Family Cites Families (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8200265B2 (en) * | 2008-12-23 | 2012-06-12 | Interdigital Patent Holdings, Inc. | Data transfer between wireless devices |
US8923244B2 (en) | 2009-08-12 | 2014-12-30 | Qualcomm Incorporated | Systems and methods of advertising handoff |
US8990273B2 (en) * | 2011-01-13 | 2015-03-24 | Apple Inc. | Ad hoc file sharing |
JP5254399B2 (ja) | 2011-05-13 | 2013-08-07 | 株式会社エヌ・ティ・ティ・ドコモ | 表示装置、ユーザインタフェース方法及びプログラム |
JP5915338B2 (ja) * | 2012-03-30 | 2016-05-11 | ブラザー工業株式会社 | 通信装置 |
WO2013184110A1 (en) | 2012-06-06 | 2013-12-12 | Nokia Corporation | Optimized wifi network discovery using bluetooth low-energy |
KR101974820B1 (ko) * | 2012-09-10 | 2019-08-23 | 삼성전자주식회사 | 기기 제어 방법 및 이를 수행하는 기기 |
US9936448B2 (en) | 2013-11-06 | 2018-04-03 | Lg Electronics Inc. | Method for transmitting and receiving data in wireless communication system and apparatus for performing the same |
CN104661230A (zh) | 2013-11-18 | 2015-05-27 | 中兴通讯股份有限公司 | 一种基于近场通信建立无线局域网的方法及装置 |
JP6194798B2 (ja) | 2014-01-09 | 2017-09-13 | ブラザー工業株式会社 | 通信機器とプリンタ |
TWI532399B (zh) * | 2014-06-27 | 2016-05-01 | 宏達國際電子股份有限公司 | 建立無線通訊連線的方法及相關電子裝置 |
CN104093148A (zh) | 2014-06-30 | 2014-10-08 | 广东九联科技股份有限公司 | 一种基于蓝牙的wifi自动连接授权的方法 |
WO2016017908A1 (ko) | 2014-07-31 | 2016-02-04 | 엘지전자(주) | 블루투스 통신을 지원하는 무선 통신 시스템에서 전자기기를 제어하기 위한 방법 및 장치 |
CN104394600B (zh) * | 2014-10-24 | 2018-03-16 | 小米科技有限责任公司 | 传输文件的方法及装置 |
KR102274730B1 (ko) * | 2014-11-26 | 2021-07-08 | 삼성전자주식회사 | 전자 장치 및 전자 장치에서의 정보 전송 방법 |
JP6590486B2 (ja) * | 2015-02-18 | 2019-10-16 | キヤノン株式会社 | プログラム、方法、通信端末 |
CN105407450A (zh) * | 2015-10-21 | 2016-03-16 | 珠海奔图电子有限公司 | 智能设备、电子装置及基于近场通信的网络连接方法 |
-
2016
- 2016-09-09 EP EP16915495.2A patent/EP3506517B1/en active Active
- 2016-09-09 US US16/332,180 patent/US10701545B2/en active Active
- 2016-09-09 EP EP21185569.7A patent/EP3968672B1/en active Active
- 2016-09-09 EP EP23166442.6A patent/EP4274108A3/en active Pending
- 2016-09-09 WO PCT/CN2016/098580 patent/WO2018045561A1/zh unknown
- 2016-09-09 JP JP2019513375A patent/JP6750105B2/ja active Active
- 2016-09-09 CN CN201680089049.6A patent/CN109690959B/zh active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103199901A (zh) * | 2012-01-10 | 2013-07-10 | 宏达国际电子股份有限公司 | 促进无线通信的系统与方法 |
CN103096506A (zh) * | 2013-01-07 | 2013-05-08 | 东莞宇龙通信科技有限公司 | 终端设备、wifi连接方法及系统 |
CN105323223A (zh) * | 2014-07-18 | 2016-02-10 | 中国电信股份有限公司 | 移动终端通过点对点方式传输处理交易数据的方法和系统 |
CN104580401A (zh) * | 2014-12-23 | 2015-04-29 | 小米科技有限责任公司 | 连接方法及装置 |
CN105188013A (zh) * | 2015-06-26 | 2015-12-23 | 北京锤子数码科技有限公司 | 网络热点共享方法、装置及系统 |
Cited By (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102481065B1 (ko) * | 2018-05-31 | 2022-12-23 | 후아웨이 테크놀러지 컴퍼니 리미티드 | 애플리케이션 기능 구현 방법 및 전자 디바이스 |
US11452151B2 (en) | 2018-05-31 | 2022-09-20 | Huawei Technologies Co., Ltd. | Application function implementation method and electronic device |
JP2022141683A (ja) * | 2018-05-31 | 2022-09-29 | 華為技術有限公司 | アプリケーション機能の実施方法及び電子装置 |
US11864248B2 (en) | 2018-05-31 | 2024-01-02 | Huawei Technologies Co., Ltd. | Application function implementation method and electronic device |
KR20210011027A (ko) * | 2018-05-31 | 2021-01-29 | 후아웨이 테크놀러지 컴퍼니 리미티드 | 애플리케이션 기능 구현 방법 및 전자 디바이스 |
JP7098757B2 (ja) | 2018-05-31 | 2022-07-11 | 華為技術有限公司 | アプリケーション機能の実施方法及び電子装置 |
AU2022211850B2 (en) * | 2018-05-31 | 2023-12-07 | Huawei Technologies Co., Ltd. | Application function implementation method and electronic device |
JP7319431B2 (ja) | 2018-05-31 | 2023-08-01 | 華為技術有限公司 | アプリケーション機能の実施方法及び電子装置 |
JP7521522B2 (ja) | 2019-03-07 | 2024-07-24 | ソニーグループ株式会社 | 通信方法および通信システム |
CN112153720B (zh) * | 2019-06-28 | 2022-04-15 | 腾讯科技(深圳)有限公司 | 无线网络的连接方法、装置、移动终端及存储介质 |
CN112153720A (zh) * | 2019-06-28 | 2020-12-29 | 腾讯科技(深圳)有限公司 | 无线网络的连接方法、装置、移动终端及存储介质 |
CN112672313B (zh) * | 2020-12-18 | 2023-04-25 | 阿波罗智联(北京)科技有限公司 | 用于传输数据的方法、装置、设备以及存储介质 |
CN112672313A (zh) * | 2020-12-18 | 2021-04-16 | 北京百度网讯科技有限公司 | 用于传输数据的方法、装置、设备以及存储介质 |
CN115314856A (zh) * | 2021-05-06 | 2022-11-08 | 上海擎感智能科技有限公司 | 电子设备的连接方法、连接装置、电子设备、介质及系统 |
CN114339591A (zh) * | 2021-12-09 | 2022-04-12 | 青岛海信移动通信技术股份有限公司 | 基于超宽带芯片进行定位的方法和相关装置 |
CN114339591B (zh) * | 2021-12-09 | 2024-03-08 | 青岛海信移动通信技术有限公司 | 基于超宽带芯片进行定位的方法和相关装置 |
CN114286324A (zh) * | 2021-12-31 | 2022-04-05 | 南京四维智联科技有限公司 | 一种车机互联方法、系统、装置及计算机设备 |
CN114928898B (zh) * | 2022-07-18 | 2022-10-28 | 荣耀终端有限公司 | 建立基于WiFi直接连接的会话的方法和装置 |
CN114928898A (zh) * | 2022-07-18 | 2022-08-19 | 荣耀终端有限公司 | 建立基于WiFi直接连接的会话的方法和装置 |
Also Published As
Publication number | Publication date |
---|---|
CN109690959B (zh) | 2021-02-26 |
EP3506517B1 (en) | 2021-11-10 |
EP3968672B1 (en) | 2023-11-08 |
EP4274108A2 (en) | 2023-11-08 |
EP3506517A4 (en) | 2019-08-21 |
CN109690959A (zh) | 2019-04-26 |
US10701545B2 (en) | 2020-06-30 |
EP3968672A1 (en) | 2022-03-16 |
US20190268749A1 (en) | 2019-08-29 |
JP2019532567A (ja) | 2019-11-07 |
EP4274108A3 (en) | 2023-12-20 |
JP6750105B2 (ja) | 2020-09-02 |
EP3506517A1 (en) | 2019-07-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018045561A1 (zh) | 一种文件的发送方法、接收方法及终端 | |
US9826438B2 (en) | Electronic device and method for operating an electronic device | |
US20220201453A1 (en) | Service connection establishment method, bluetooth master device, chip, and bluetooth system | |
US20130311692A1 (en) | Apparatus and method for direct pairing in a wireless docking system | |
WO2017097088A1 (zh) | 多屏投影控制方法、系统、终端设备及计算机存储介质 | |
US9629195B2 (en) | Connection switching method applicable to remote controllable system and mobile device, remote controllable system using the same, and mobile device using the same | |
EP3253080B1 (en) | Data sharing method and system | |
US20150009862A1 (en) | Wireless Network Connection Establishment Method and Terminal Device | |
WO2019015427A1 (zh) | 一种数据传输方法、装置、终端及计算机可读存储介质 | |
US10110706B2 (en) | Remote access method and device | |
WO2019015428A1 (zh) | 一种数据传输方法、装置、终端及计算机可读存储介质 | |
CN103368611A (zh) | 传输文件的方法和移动终端 | |
US10419543B2 (en) | Method and system for establishing a connection between a seeker device and a target device | |
WO2018107593A1 (zh) | 一种在不同终端间共享文件的方法及设备 | |
WO2014183404A1 (zh) | 数据传输方法、装置及系统、终端 | |
JP2016519869A (ja) | Ieee802.11高速セッション転送をサポートするためのマルチプロトコルドライバ | |
WO2019218951A1 (zh) | 一种传输文件的方法及终端 | |
CN114390491A (zh) | 一种组网方法、装置和系统 | |
WO2016029772A1 (zh) | 一种通信方法及设备 | |
WO2017214137A1 (en) | Methods, devices and systems for supporting wireless communication | |
US20220286731A1 (en) | Multimedia apparatus and cast method | |
KR102197851B1 (ko) | 단말간 직접 통신에서 대상 발견 방법 및 장치 | |
US10853008B2 (en) | Non-transitory computer-readable medium storing program for communication apparatus, communication apparatus and method for controlling communication apparatus | |
CN118433824A (zh) | 一种Wi-Fi点到点连接建立方法及装置 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16915495 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 2019513375 Country of ref document: JP Kind code of ref document: A |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
ENP | Entry into the national phase |
Ref document number: 2016915495 Country of ref document: EP Effective date: 20190328 |