File sending method and terminal, and file receiving method and terminal
First Claim
1. A file sending method, implemented by a first terminal, the method comprising:
- performing, by the first terminal, scanning on a BLUETOOTH low energy (BLE) broadcast channel to obtain a broadcast packet from at least one second terminal, wherein the broadcast packet comprises an account identifier associated with a file sending application of the at least one second terminal;
determining, by the first terminal, at least one discoverable second terminal based on the broadcast packet;
determining, by the first terminal, a target terminal configured to receive a file in the at least one discoverable second terminal;
sending, by the first terminal, a coupling request to the target terminal;
establishing, by the first terminal, a BLE coupling between the first terminal and the target terminal;
sending, by the first terminal, WI-FI direct coupling parameters to the target terminal using a BLE data channel of the BLE coupling, wherein the WI-FI direct coupling parameters comprise WI-FI direct handshake information, an Internet Protocol (IP) address assigned by the first terminal to the target terminal, and a designated communication channel;
receiving, by the first terminal, a WI-FI direct establishment request from the target terminal;
performing, by the first terminal, a handshake with the target terminal to establish WI-FI direct after the WI-FI direct establishment request is received, wherein the WI-FI direct establishment request is received after the target terminal performs parameter configuration of the target terminal based on the WI-FI direct coupling parameters, wherein the first terminal is a WI-FI direct group owner (GO), and wherein the target terminal is a WI-FI direct group client (GC); and
sending, by the first terminal, the file to the target terminal using the WI-FI direct established between the first terminal and the target terminal.
2 Assignments
0 Petitions
Accused Products
Abstract
A file sending method, a file receiving method, and related terminals, where a first terminal is configured to scan on a BLUETOOTH low energy (BLE) broadcast channel to obtain a broadcast packet from at least one second terminal, determine at least one discoverable second terminal based on the broadcast packet, determine a target terminal that is configured to receive a file and that is in the at least one discoverable second terminal, send a coupling request to the target terminal, establish a BLE coupling between the first terminal and the target terminal, and send WI-FI direct coupling parameters to the target terminal using a BLE data channel of the BLE coupling. The WI-FI direct is established between the first terminal and the target terminal.
-
Citations
20 Claims
-
1. A file sending method, implemented by a first terminal, the method comprising:
-
performing, by the first terminal, scanning on a BLUETOOTH low energy (BLE) broadcast channel to obtain a broadcast packet from at least one second terminal, wherein the broadcast packet comprises an account identifier associated with a file sending application of the at least one second terminal; determining, by the first terminal, at least one discoverable second terminal based on the broadcast packet; determining, by the first terminal, a target terminal configured to receive a file in the at least one discoverable second terminal; sending, by the first terminal, a coupling request to the target terminal; establishing, by the first terminal, a BLE coupling between the first terminal and the target terminal; sending, by the first terminal, WI-FI direct coupling parameters to the target terminal using a BLE data channel of the BLE coupling, wherein the WI-FI direct coupling parameters comprise WI-FI direct handshake information, an Internet Protocol (IP) address assigned by the first terminal to the target terminal, and a designated communication channel; receiving, by the first terminal, a WI-FI direct establishment request from the target terminal; performing, by the first terminal, a handshake with the target terminal to establish WI-FI direct after the WI-FI direct establishment request is received, wherein the WI-FI direct establishment request is received after the target terminal performs parameter configuration of the target terminal based on the WI-FI direct coupling parameters, wherein the first terminal is a WI-FI direct group owner (GO), and wherein the target terminal is a WI-FI direct group client (GC); and sending, by the first terminal, the file to the target terminal using the WI-FI direct established between the first terminal and the target terminal. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A file receiving method, implemented by a target terminal, the method comprising:
-
setting, by the target terminal, a BLUETOOTH low energy (BLE) broadcast channel to be in a discoverable mode; sending, by the target terminal, a broadcast packet on the BLE broadcast channel, wherein the broadcast packet comprises an account identifier associated with a file sending application of the target terminal; receiving, by the target terminal, a coupling request to establish a BLE coupling from a first terminal; establishing the BLE coupling between the target terminal and the first terminal; obtaining, by the target terminal using a BLE data channel of the BLE coupling, WI-FI direct coupling parameters from the first terminal, wherein the WI-FI direct coupling parameters comprise WI-FI direct handshake information, an Internet Protocol (IP) address assigned by the first terminal to the target terminal, and a designated communication channel; sending, by the target terminal, a WI-FI direct establishment request to the first terminal, and performing a handshake with the first terminal to establish WI-FI direct after the target terminal performs parameter configuration of the target terminal based on the WI-FI direct coupling parameters, wherein the handshake is initiated after the first terminal receives the WI-FI direct establishment request, wherein the first terminal is a WI-FI direct group owner (GO), and wherein the target terminal is a WI-FI direct group client (GC); and receiving, by the target terminal using the WI-FI direct, a file from the first terminal. - View Dependent Claims (12, 13, 14)
-
-
15. A file sending terminal, comprising:
-
a communications bus; a wireless coupling circuit coupled to the communications bus and comprising; a BLUETOOTH low energy (BLE) circuit configured to enable and perform a BLE function; and a WI-FI direct circuit configured to enable and perform a WI-FI direct function; an input apparatus coupled to the communications bus and configured to obtain an operation instruction of a user; a memory coupled to the communications bus and configured to store at least one program comprising instructions; and a processor coupled to the communications bus, wherein the at least one program causes the processor to be configured to; obtain, using the input apparatus, instructions of enabling the BLE function and the WI-FI direct function from the user; enable the BLE function and the WI-FI direct function; control the BLE circuit to perform scanning on a BLE broadcast channel to obtain a broadcast packet from at least one second terminal, wherein the broadcast packet comprises an account identifier associated with a file sending application of the at least one second terminal; determine at least one discoverable second terminal based on the broadcast packet; obtain a target terminal configured to receive a file and selected by the user from the at least one discoverable second terminal using the input apparatus; control the BLE circuit to send a coupling request to the target terminal; establish a BLE coupling between the file sending terminal and the target terminal; control the BLE circuit to send WI-FI direct coupling parameters to the target terminal using a BLE data channel of the BLE coupling, wherein the WI-FI direct coupling parameters comprise WI-FI direct handshake information, an Internet Protocol (IP) address assigned by the file sending terminal to the target terminal, and a designated communication channel; receive a WI-FI direct establishment request from the target terminal; perform handshake with the target terminal to establish WI-FI direct after receiving the WI-FI direct establishment request, wherein the WI-FI direct establishment request is received after the target terminal performs parameter configuration of the target terminal based on the WI-FI direct coupling parameters, wherein the file sending terminal is a WI-FI direct group owner (GO), and wherein the target terminal is a WI-FI direct group client (GC); and control the WI-FI direct circuit to send the file to the target terminal using the WI-FI direct established between the file sending terminal and the target terminal. - View Dependent Claims (16)
-
-
17. A terminal device, comprising:
-
a display screen configured to; display an application conversation interface; display an input method interface; and display conversation information on the application conversation interface; a memory coupled to the display screen and configured to store an instruction; and a processor coupled to the display screen and the memory, wherein the instruction causes the processor to be configured to; perform scanning on a BLUETOOTH low energy (BLE) broadcast channel to obtain a broadcast packet from at least one terminal, wherein the broadcast packet comprises an account identifier associated with a file sending application of the at least one terminal; determine at least one discoverable terminal based on the broadcast packet; determine a target terminal configured to receive a file in the at least one discoverable terminal; send a coupling request to the target terminal; establish a BLE coupling between the terminal device and the target terminal; send WI-FI direct coupling parameters to the target terminal using a BLE data channel of the BLE coupling, wherein the WI-FI direct coupling parameters comprise WI-FI direct handshake information, an Internet Protocol (IP) address assigned by the terminal device to the target terminal, and a designated communication channel; receive a WI-FI direct establishment request from the target terminal; perform handshake with the target terminal to establish WI-FI direct after the WI-FI direct establishment request is received, wherein the WI-FI direct establishment request is received after the target terminal performs parameter configuration of the target terminal based on the WI-FI direct coupling parameters, wherein the terminal device is a WI-FI direct group owner (GO), and wherein the target terminal is a WI-FI direct group client (GC); and send the file to the target terminal using the WI-FI direct established between the terminal device and the target terminal.
-
-
18. A terminal device, comprising:
-
a display screen configured to; display an application conversation interface; display an input method interface; and display conversation information on the application conversation interface; a memory coupled to the display screen and configured to store an instruction; and a processor coupled to the display screen and the memory, wherein the instruction causes the processor to be configured to; set BLUETOOTH low energy (BLE) to be in a discoverable mode; send a broadcast packet on a BLE broadcast channel, wherein the broadcast packet comprises an account identifier associated with a file sending application of the terminal device; receive a coupling request to establish a BLE coupling from a first terminal; establish the BLE coupling between the terminal device and the first terminal; obtain, using a BLE data channel of the BLE coupling, WI-FI direct coupling parameters from the first terminal, wherein the WI-FI direct coupling parameters comprise WI-FI direct handshake information, an Internet Protocol (IP) address, and a designated communication channel; send a WI-FI direct establishment request to the first terminal, and perform handshake with the first terminal to establish WI-FI direct after the terminal device performs parameter configuration of the terminal device based on the WI-FI direct coupling parameters, wherein the handshake is initiated after the first terminal receives the WI-FI direct establishment request, wherein the first terminal is a WI-FI direct group owner (GO), and wherein the terminal device is a WI-FI direct group client (GC); and receive, using the WI-FI direct, a file from the first terminal.
-
-
19. A non-transitory computer readable medium storing computer usable program code, wherein a computer device executes the computer usable program code to:
-
perform scanning on a BLUETOOTH low energy (BLE) broadcast channel to obtain a broadcast packet from at least one terminal, wherein the broadcast packet comprises an account identifier associated with a file sending application of the at least one terminal; determine at least one discoverable terminal based on the broadcast packet; determine a target terminal configured to receive a file in the at least one discoverable terminal; send a coupling request to the target terminal; establish a BLE coupling between the computer device and the target terminal; send WI-FI direct coupling parameters to the target terminal using a BLE data channel of the BLE coupling, wherein the WI-FI direct coupling parameters comprise WI-FI direct handshake information, an Internet Protocol (IP) address assigned to the target terminal, and a designated communication channel; receive a WI-FI direct establishment request from the target terminal; perform handshake with the target terminal to establish WI-FI direct after the WI-FI direct establishment request is received, wherein the WI-FI direct establishment request is received after the target terminal performs parameter configuration of the target terminal based on the WI-FI direct coupling parameters, wherein the computer device is a WI-FI direct group owner (GO), and wherein the target terminal is a WI-FI direct group client (GC); and send the file to the target terminal using the WI-FI direct established between the computer device and the target terminal.
-
-
20. A non-transitory computer readable medium storing computer usable program code, wherein a computer device executes the computer usable program code to:
-
set BLUETOOTH low energy (BLE) to be in a discoverable mode; send a broadcast packet on a BLE broadcast channel, wherein the broadcast packet comprises an account identifier associated with a file sending application; receive a coupling request to establish a BLE coupling from a first terminal; establish the BLE coupling between the computer device and the first terminal; obtain, using a BLE data channel of the BLE coupling, WI-FI direct coupling parameters from the first terminal, wherein the WI-FI direct coupling parameters comprise WI-FI direct handshake information, an Internet Protocol (IP) address assigned by the first terminal to the computer device, and a designated communication channel; send a WI-FI direct establishment request to the first terminal, and perform handshake with the first terminal to establish WI-FI direct after the computer device performs parameter configuration of the computer device based on the WI-FI direct coupling parameters, wherein a handshake is initiated after the first terminal receives the WI-FI direct establishment request, wherein the first terminal is a WI-FI direct group owner (GO), and wherein the computer device is a WI-FI direct group client (GC); and receive, using the WI-FI direct, a file from the first terminal.
-
Specification