WO2018214911A1 - 一种数据传输的方法、装置及电子设备 - Google Patents

一种数据传输的方法、装置及电子设备 Download PDF

Info

Publication number
WO2018214911A1
WO2018214911A1 PCT/CN2018/088024 CN2018088024W WO2018214911A1 WO 2018214911 A1 WO2018214911 A1 WO 2018214911A1 CN 2018088024 W CN2018088024 W CN 2018088024W WO 2018214911 A1 WO2018214911 A1 WO 2018214911A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
data
terminal
data transmission
bluetooth connection
Prior art date
Application number
PCT/CN2018/088024
Other languages
English (en)
French (fr)
Inventor
赵泽阳
田兴龙
Original Assignee
青岛海尔股份有限公司
北京一数科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 青岛海尔股份有限公司, 北京一数科技有限公司 filed Critical 青岛海尔股份有限公司
Publication of WO2018214911A1 publication Critical patent/WO2018214911A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a data transmission method, apparatus, and electronic device.
  • Wi-Fi connection for data transmission. While transmitting data, the Wi-Fi channel needs to continuously transmit communication commands from the sender and the receiver to complete the data interaction between the sender and the receiver. When using Wi-Fi channel to transmit data and transmit communication commands, the speed of data transmission will be affected. When there are many communication commands, the data transmission at the receiving end is incomplete and affects the quality of data transmission.
  • the object of the embodiments of the present invention is to provide a method, a device, and an electronic device for data transmission, so as to improve the speed of data transmission and the quality of data transmission when the mobile device transmits and transmits communication commands.
  • the specific technical solutions are as follows:
  • an embodiment of the present invention provides a data transmission method, where the method is applied to a first terminal, and the method includes:
  • an embodiment of the present invention provides a data transmission method, where the method is applied to a second terminal, where the method includes:
  • the embodiment of the invention provides a data transmission device, and the device includes:
  • a first sending module configured to send a data sending request to the second terminal device by using a Bluetooth connection, where the data sending request is used to request to send the data file to be transmitted to the second terminal device;
  • a second sending module configured to send, by using a Wi-Fi connection, the data file to be transmitted to the second terminal
  • an interaction module configured to interact with the second terminal by using the Bluetooth connection with other information related to the data file to be transmitted.
  • the interaction module is specifically configured to exchange at least one of data transmission progress information, data receiving state information, and data attribute information with the second terminal by using the Bluetooth connection.
  • the embodiment of the invention provides a data transmission device, and the device includes:
  • a first receiving module configured to receive, by using a Bluetooth connection, a data sending request sent by the first terminal device, where the data sending request is used to request to send a data file to be transmitted;
  • a sending module configured to send a data transmission confirmation to the first terminal device by using the Bluetooth connection
  • a first receiving module configured to receive, by using a Wi-Fi connection, a data file to be transmitted sent by the first terminal
  • an interaction module configured to interact with the first terminal by using the Bluetooth connection with other information related to the data file to be transmitted.
  • the interaction module is specifically configured to exchange at least one of data transmission progress information, data receiving state information, and data attribute information with the second terminal by using the Bluetooth connection.
  • An embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete communication with each other through the communication bus;
  • the memory is configured to store a computer program
  • the processor when used to execute a program stored on the memory, implements the method steps of data transmission as described in the first aspect above.
  • Embodiments of the present invention provide a computer readable storage medium having stored therein a computer program, the computer program being executed by a processor to implement the method steps of data transmission as described in the first aspect above.
  • the memory is configured to store a computer program
  • the processor when used to execute a program stored on the memory, implements the method steps of data transmission as described in the second aspect above.
  • Embodiments of the present invention provide a computer readable storage medium having stored therein a computer program, the computer program being executed by a processor to implement the method steps of data transmission as described in the second aspect above.
  • the method, device, and electronic device for data transmission provided by the embodiment of the present invention, for the first terminal device, send a data transmission request to the second terminal device through a Bluetooth connection, where the data transmission request is used to request to send to the second terminal device Transmitting the data file; receiving the data transmission confirmation sent by the second terminal device through the Bluetooth connection; transmitting the data file to be transmitted to the second terminal through the Wi-Fi connection; interacting with the second terminal through the Bluetooth connection and the data file to be transmitted Additional information.
  • Other information related to the data file to be transmitted such as data transmission progress information, data reception status information, data attribute information, etc., is exchanged with the second terminal device through the Bluetooth connection, and other information related to the data file to be transmitted is utilized.
  • the Bluetooth connection interacts with the second terminal device and the data file is transmitted to the second terminal using a Wi-Fi connection.
  • the Bluetooth connection and the Wi-Fi connection work independently, and the data transmission request and the reception data transmission confirmation are transmitted by using the Bluetooth connection, and the data file to be transmitted is transmitted by using the Wi-Fi connection, and the Bluetooth connection is used to exchange between the first terminal and the second terminal.
  • Information related to the data file the information memory is small, the transmission speed is fast using the Bluetooth connection, and the Wi-Fi connection transmits the data file with large memory, the transmission speed is fast, and is not interfered by other information related to the transmission file. .
  • the data transmission method provided by the embodiment of the invention can realize that the mobile device transmits other information related to the data file when transmitting the data file, and the Bluetooth connection and the Wi-Fi connection do not interfere with each other, thereby improving the data transmission speed and data.
  • the quality of the transmission can realize that any product or method embodying the present invention necessarily does not necessarily require all of the advantages described above to be achieved at the same time.
  • FIG. 1 is a flowchart of a data transmission method applied to a first terminal according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a data transmission method applied to a second terminal according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a data transmission method between a first terminal and a second terminal according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a first terminal device according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a second terminal device according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of a first terminal electronic device according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of a second terminal electronic device according to an embodiment of the present invention.
  • embodiments of the present invention provide a method, an apparatus, and an electronic device for data transmission, which are separately described below.
  • FIG. 1 is a flowchart of the method, and includes the following steps:
  • Step 101 Send a data transmission request to the second terminal device through a Bluetooth connection.
  • the first terminal device may be an electronic terminal device such as a smart mobile terminal or a portable computer
  • the second terminal device may be a smart mobile terminal, a portable computer, a smart projection device, or the like.
  • the first terminal device sends a data transmission request to the second terminal device through the Bluetooth connection, and the data transmission request is used to request to send the data file to be transmitted to the second terminal device.
  • the first terminal device has a data file sending function
  • the second terminal device has a data file receiving function
  • the first terminal device establishes a Bluetooth connection with the second terminal device.
  • the first terminal device enters a data file sending function state. Sending a data transmission request to the second terminal device through the Bluetooth connection, indicating that the first terminal device wants to send the data file to the second terminal device.
  • Step 102 Receive a data transmission confirmation sent by the second terminal device by using a Bluetooth connection.
  • the second terminal device receives a data transmission request sent from the first terminal to determine whether the data file can be received.
  • the second terminal device determines whether the data file can be accepted by itself, and the method for determining may be self-detecting the memory of the memory in the second terminal device, and sending a data sending confirmation message to the first terminal device through the Bluetooth connection when the memory is sufficient, indicating
  • the second terminal device may receive the data file requested to be sent in step 101; or may detect whether the file can be received from other terminal devices, and check the security of the data transmission request information, and in a secure situation, connect through the Bluetooth connection.
  • the first terminal device sends a data sending confirmation message, indicating that the data file requested to be sent in step 101 can be received; and determining the working status of the second terminal device to determine whether to receive the data file, for example, the second terminal device receives the other data.
  • the data transmission confirmation is not sent temporarily, and after the data file is received, the data transmission confirmation information is transmitted to the first terminal device through the Bluetooth connection.
  • the second terminal device may further determine, according to the content of the data transmission request, whether the data file requested to be sent already exists. If not, the second terminal device sends the data transmission confirmation information to the first terminal device through the Bluetooth connection.
  • the first terminal device receives the data file sending confirmation sent by the second terminal device through the Bluetooth connection, and receives the confirmation message that the second terminal can receive the data file, indicating that the data file can be sent to the second terminal device.
  • Step 103 Establish a Wi-Fi connection with the second terminal device.
  • the first terminal device After receiving the data transmission confirmation sent by the second terminal device, the first terminal device confirms that the second terminal device can receive the data file corresponding to the data transmission request.
  • the Wi-Fi connection established after receiving the data transmission confirmation sent by the second terminal device, and transmitting the data file to be transmitted.
  • Step 104 Send a data file to be transmitted to the second terminal by using a Wi-Fi connection.
  • the first terminal device may establish a Wi-Fi connection with the second terminal device when the data transmission request is sent to the second terminal device through the Bluetooth connection, or may receive the second terminal device by using the Bluetooth connection at the first terminal device. After the data transmission is confirmed, a Wi-Fi connection is established with the second terminal device. After the first terminal device receives the data transmission confirmation sent by the second terminal device, establishing the Wi-Fi connection can save the power of the first terminal device and the second terminal device, and does not affect the transmission of the Bluetooth connection.
  • the Bluetooth connection and the Wi-Fi connection are respectively two common communication connections for data transmission.
  • other communication connections such as ZigBee and far infrared transmission, can also be used. The above data transmission method is implemented.
  • Step 105 Interact with the second terminal and the related information of the data file to be transmitted through the Bluetooth connection.
  • the first terminal device When the first terminal device sends the data file to be transmitted to the second terminal device, it receives other information related to the data file to be transmitted sent by the second terminal device through the Bluetooth connection, such as data transmission progress information and data receiving status. At least one of information and data attribute information.
  • the data transmission progress information is progress information when the first terminal device sends the data file to be transmitted to the second terminal device, including the completion degree of the transmission data file, and is sent by the second terminal device to the first terminal device through the Bluetooth connection;
  • the status information is the receiving status of the data file sent by the second terminal device through the Bluetooth connection received by the first terminal device, for example, the receiving is completed or not completed.
  • the embodiment of the present invention uses two communication connections to transmit different types of information, and the Bluetooth connection transmits a data transmission request and a data transmission confirmation, which is a communication connection between the first terminal and the second terminal and other information related to the data file to be transmitted.
  • the information transmitted by the Bluetooth connection occupies less memory and has a faster transmission rate;
  • the Wi-Fi connection transmits data files, and the data files are important contents for transmission, and are transmitted by using a Wi-Fi connection, and are not interfered by the information transmitted by the Bluetooth connection, and It does not affect the speed of data file transfer and improves the quality of data transfer.
  • Two communication connections work in parallel, and separate two different types of messages are transmitted separately from the transmission of data transmission request and data transmission confirmation, interaction with other instructional information or core data content by using a Bluetooth connection or a Wi-Fi connection alone, Will affect each other and improve the quality of data transmission.
  • the data transmission method provided by the embodiment of the present invention includes two communication connections in the process of data transmission.
  • a data transmission request is sent to the second terminal device through a Bluetooth connection, and the data transmission request is used for Requesting to send the data file to be transmitted to the second terminal device; receiving the data transmission confirmation sent by the second terminal device through the Bluetooth connection; transmitting the data file to be transmitted to the second terminal through the Wi-Fi connection; connecting to the second terminal through the Bluetooth connection Interacting information related to the data file to be transmitted.
  • Other information related to the data file to be transmitted such as data transmission progress information, data reception status information, data attribute information, etc., is exchanged with the second terminal device through the Bluetooth connection, and other information related to the data file to be transmitted is utilized.
  • the first terminal device uses a Bluetooth connection to transmit a data transmission request and a received data transmission confirmation, and uses a Wi-Fi connection to send a data file to be transmitted, compared with a traditional single communication connection method.
  • the Bluetooth connection transmits data, and the transmission rate is slow when sending large files. If a single Wi-Fi connection is used to transmit data, in the process of data transmission, other information related to the transmission file, such as the receiving progress of the data file, may be mixed. The attribute information of the data file, frequent communication messages will affect the transmission of the data file, causing the file transmission to be slow or even stopped.
  • the terminal device receiving the data file may receive the damaged file and affect the quality of the transmission.
  • two communication connections are used for independent transmission.
  • the Bluetooth connection transmits other information related to the data file to be transmitted.
  • the Wi-Fi connection transmits the data file.
  • the two communication connections work in parallel, and respectively transmit different types of content, and the Bluetooth connection only transmits.
  • Other information related to the data file the size of the information is small, does not affect the transmission speed
  • the Wi-Fi connection transmits the data file
  • the data file occupies a large memory, and does not affect the transmission speed, and is not affected by other transmission files. Interference with related information.
  • FIG. 2 is a flowchart of the method, including the following steps:
  • Step 201 Receive a data transmission request sent by the first terminal device by using a Bluetooth connection.
  • the first terminal device may be an electronic terminal device such as a smart mobile terminal or a portable computer
  • the second terminal device may be a smart mobile terminal, a portable computer, a smart projection device, or the like.
  • the second terminal device receives a data transmission request sent by the first terminal device through the Bluetooth connection, and receives a request that the first terminal device requests to send the data file to be transmitted.
  • Step 202 Send a data transmission confirmation to the first terminal device through a Bluetooth connection.
  • the second terminal device receives a data transmission request sent from the first terminal to determine whether the data file can be received.
  • the method for determining may be self-detecting the memory of the second terminal device.
  • the second terminal device sends a data transmission confirmation message to the first terminal device through the Bluetooth connection, indicating that the second terminal device can receive the request in step 101.
  • the second terminal device may further determine, according to the data transmission request, whether the data file requested to be sent already exists. If not, the second terminal device sends the data transmission confirmation information to the first terminal device through the Bluetooth connection.
  • the second terminal device may establish a Wi-Fi connection with the first terminal device when transmitting a data transmission confirmation to the first terminal device through the Bluetooth connection, or may receive the second terminal device for sending the first terminal device through the Bluetooth connection. After the data transmission is confirmed, a Wi-Fi connection is established with the first terminal device. After the first terminal device receives the data transmission confirmation sent by the second terminal device, establishing the Wi-Fi connection can save the power of the first terminal device and the second terminal device, and does not affect the transmission of the Bluetooth connection.
  • Step 203 Establish a Wi-Fi connection with the first terminal device.
  • the second terminal device After transmitting the data transmission confirmation to the first terminal device, the second terminal device establishes a Wi-Fi connection with the first terminal device, and receives the data file to be transmitted sent by the first terminal through the Wi-Fi connection.
  • Step 204 Receive, by using a Wi-Fi connection, a data file to be transmitted sent by the first terminal.
  • the first terminal device uses a Bluetooth connection to transmit a data transmission request and a received data transmission confirmation, and uses a Wi-Fi connection to transmit a data file to be transmitted, two communication connections are independently transmitted, and the Bluetooth connection transmits other information related to the data file to be transmitted,
  • the Wi-Fi connection transmits data files, and when the two communication connections work simultaneously, it does not affect each other's transmission speed and does not interfere with each other.
  • the Bluetooth connection and the Wi-Fi connection are respectively two common communication connections for data transmission.
  • other communication connections such as ZigBee and far infrared transmission, can also be used. The above data transmission method is implemented.
  • Step 205 Interact with the first terminal and the related information of the data file to be transmitted through a Bluetooth connection.
  • the second terminal device When the second terminal device receives the data file sent by the first terminal device, it receives other information related to the data file to be transmitted sent by the first terminal device through the Bluetooth connection, such as data sending progress information, data receiving status information, At least one of the data attribute information.
  • the data transmission progress information is that the second terminal device receives the progress information of the data file sent by the first terminal device, including the completion degree of the data file, and is sent by the second terminal device to the first terminal device through the Bluetooth connection;
  • the data receiving status information is Receiving, by the second terminal device, the receiving status of the data file sent by the first terminal device through the Bluetooth connection, for example, the receiving is completed or not completed, and when the receiving is completed, the second terminal device sends the receiving completion status information to the first terminal device, Continue to receive the first terminal device to send the next data file or the first terminal device sends a data transmission request to the second terminal device through the Bluetooth connection, and repeat the data transmission process of steps 201 to 204;
  • the data attribute information is the name of the data file
  • the data transmission method provided by the embodiment of the present invention receives a data transmission request sent by the first terminal device by using a Bluetooth connection, where the data transmission request is used to request to send a data file to be transmitted; the Bluetooth connection sends a data transmission confirmation to the first terminal device;
  • the Wi-Fi connection receives the data file to be transmitted sent by the first terminal; and interacts with the first terminal through the Bluetooth connection with other information related to the data file to be transmitted.
  • Other information related to the data file to be transmitted such as data transmission progress information, data reception status information, data attribute information, etc., is exchanged with the first terminal device through the Bluetooth connection, and other information related to the data file to be transmitted is utilized.
  • the Bluetooth connection interacts with the first terminal device and receives the data file using the Wi-Fi connection.
  • the first terminal device uses a Bluetooth connection to transmit a data transmission request and a received data transmission confirmation, and uses a Wi-Fi connection to send a data file to be transmitted, compared with a traditional single communication connection method.
  • the Bluetooth connection transmits data, and the transmission rate is slow when sending large files. If a single Wi-Fi connection is used to transmit data, in the process of data transmission, other information related to the transmission file, such as the receiving progress of the data file, may be mixed. The attribute information of the data file, frequent communication messages will affect the transmission of the data file, causing the file transmission to be slow or even stopped.
  • the terminal device receiving the data file may receive the damaged file and affect the quality of the transmission.
  • two communication connections are used for independent transmission.
  • the Bluetooth connection transmits other information related to the data file to be transmitted.
  • the Wi-Fi connection transmits the data file.
  • the two communication connections work in parallel, and respectively transmit different types of content, and the Bluetooth connection only transmits.
  • Other information related to the data file the size of the information is small, does not affect the transmission speed
  • the Wi-Fi connection transmits the data file
  • the data file occupies a large memory, and does not affect the transmission speed, and is not affected by other transmission files. Interference with related information.
  • the transmission rate is increased and the transmission quality is guaranteed.
  • FIG. 3 is a schematic diagram of a data transmission method between a first terminal and a second terminal, where the specific transmission process is as follows:
  • the first terminal sends a data transmission request to the second terminal through the Bluetooth connection.
  • a Bluetooth connection is established between the first terminal device and the second terminal device.
  • the first terminal sends a data transmission request to the second terminal through a Bluetooth connection, and the data transmission request is used to request to send the data file to be transmitted.
  • the second terminal sends a data transmission confirmation to the first terminal through the Bluetooth connection.
  • the second terminal device sends a data transmission confirmation message to the first terminal device through the Bluetooth connection, indicating that the second terminal device can receive the data file requested to be sent.
  • the second terminal device may further determine, according to the data sending request, whether the data file requested to be sent already exists. If not, the second terminal device sends the data sending confirmation information to the first terminal device by using a Bluetooth connection.
  • a Wi-Fi connection is established between the first terminal and the second terminal. After receiving the data transmission confirmation sent by the second terminal device, the first terminal device confirms that the second terminal device can receive the data file corresponding to the data transmission request. After receiving the data transmission confirmation sent by the second terminal device, a Wi-Fi connection is established, and the data file to be transmitted is transmitted.
  • the second terminal receives the data file to be transmitted sent by the first terminal by using a Wi-Fi connection. After transmitting the data transmission confirmation to the first terminal device, the second terminal device establishes a Wi-Fi connection with the first terminal device, and receives the data file to be transmitted sent by the first terminal through the Wi-Fi connection.
  • the first terminal device uses a Bluetooth connection to transmit a data transmission request and a received data transmission confirmation, and uses a Wi-Fi connection to transmit a data file to be transmitted, two communication connections are independently transmitted, and the Bluetooth connection transmits other information related to the data file to be transmitted,
  • the Wi-Fi connection transmits data files, and when the two communication connections work simultaneously, it does not affect each other's transmission speed and does not interfere with each other.
  • the first terminal device When the receiving is completed, the first terminal device receives the receiving completion status information, and may And continuing to send the next data file to the first terminal device or sending a data transmission request to the second terminal device by using a Bluetooth connection;
  • the data attribute information is attribute information such as a name, a file size, and the like of the data file to be transmitted.
  • the first terminal device interacts with the second terminal through the Bluetooth connection to at least one of data transmission progress information, data reception status information, and data attribute information.
  • the embodiment of the invention provides a data transmission device.
  • the device structure diagram is as shown in FIG. 4, and includes:
  • the first sending module 401 is configured to send a data sending request to the second terminal device by using a Bluetooth connection, where the data sending request is used to request to send the data file to be transmitted to the second terminal device;
  • the receiving module 402 is configured to receive, by using a Bluetooth connection, a data transmission confirmation sent by the second terminal device;
  • the establishing module 403 is configured to establish a Wi-Fi connection with the second terminal.
  • the Bluetooth connection interacts with the second terminal device and the data file is transmitted to the second terminal using a Wi-Fi connection.
  • the Bluetooth connection and the Wi-Fi connection work independently, and the data transmission request and the reception data transmission confirmation are transmitted by using the Bluetooth connection, and the data file to be transmitted is transmitted by using the Wi-Fi connection, and the Bluetooth connection is used to exchange between the first terminal and the second terminal.
  • Information related to the data file the information memory is small, the transmission speed is fast using the Bluetooth connection, and the Wi-Fi connection transmits the data file with large memory, the transmission speed is fast, and is not interfered by other information related to the transmission file. .
  • the data transmission method provided by the embodiment of the invention can realize that the mobile device transmits other information related to the data file when transmitting the data file, and the Bluetooth connection and the Wi-Fi connection do not interfere with each other, thereby improving the data transmission speed and data.
  • the quality of the transmission can realize that the mobile device transmits other information related to the data file when transmitting the data file, and the Bluetooth connection and the Wi-Fi connection do not interfere with each other, thereby improving the data transmission speed and data. The quality of the transmission.
  • the interaction module 404 is specifically configured to exchange at least one of data transmission progress information, data reception status information, and data attribute information with the second terminal by using a Bluetooth connection.
  • the first receiving module 501 is configured to receive, by using a Bluetooth connection, a data sending request sent by the first terminal device, where the data sending request is used to request to send the data file to be transmitted;
  • the establishing module 503 is configured to establish a Wi-Fi connection with the first terminal.
  • the first receiving module 504 is configured to receive, by using a Wi-Fi connection, a data file to be transmitted sent by the first terminal;
  • the data transmission device receives a data transmission request sent by the first terminal device by using a Bluetooth connection, where the data transmission request is used to request to send a data file to be transmitted; the Bluetooth connection sends a data transmission confirmation to the first terminal device;
  • the Wi-Fi connection receives the data file to be transmitted sent by the first terminal; and interacts with the first terminal through the Bluetooth connection with other information related to the data file to be transmitted.
  • Other information related to the data file to be transmitted such as data transmission progress information, data reception status information, data attribute information, etc., is exchanged with the first terminal device through the Bluetooth connection, and other information related to the data file to be transmitted is utilized.
  • the Bluetooth connection interacts with the first terminal device and receives the data file using the Wi-Fi connection.
  • the Bluetooth connection and the Wi-Fi connection work independently, and the data transmission request and the reception data transmission confirmation are transmitted by using the Bluetooth connection, and the data file to be transmitted is transmitted by using the Wi-Fi connection, and the Bluetooth connection is used to exchange between the first terminal and the second terminal.
  • Information related to the data file the information memory is small, the transmission speed is fast using the Bluetooth connection, and the Wi-Fi connection transmits the data file with large memory, the transmission speed is fast, and is not interfered by other information related to the transmission file.
  • the data transmission method provided by the embodiment of the invention can realize that the mobile device transmits other information related to the data file when transmitting the data file, and the Bluetooth connection and the Wi-Fi connection do not interfere with each other, thereby improving the data transmission speed and data. The quality of the transmission.
  • the interaction module 504 is specifically configured to exchange at least one of data transmission progress information, data reception status information, and data attribute information with the second terminal by using a Bluetooth connection.
  • the embodiment of the present invention provides an electronic device, including a processor 601, a communication interface 602, a memory 603, and a communication bus 604.
  • the processor 601, the communication interface 602, and the memory 603 complete communication with each other through the communication bus 604.
  • the communication interface is used for communication between the above electronic device and other devices.
  • the memory may include a random access memory (RAM), and may also include a non-volatile memory (NVM), such as at least one disk storage.
  • RAM random access memory
  • NVM non-volatile memory
  • the memory may also be at least one storage device located away from the aforementioned processor.
  • the above processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; or may be a digital signal processing (DSP), dedicated integration.
  • CPU central processing unit
  • NP network processor
  • DSP digital signal processing
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • the embodiments of the present invention provide a computer readable storage medium.
  • the computer readable storage medium stores therein a computer program.
  • the computer program is executed by the processor, the method steps of the data transmission according to the first aspect are implemented.
  • An embodiment of the present invention provides an electronic device, including a processor 701, a communication interface 702, a memory 703, and a communication bus 704, wherein the processor, the communication interface, and the memory complete communication with each other through the communication bus;
  • a memory for storing a computer program
  • the processor when used to execute a program stored on the memory, implements the following method steps of data transmission:
  • the embodiment of the present invention provides a computer readable storage medium.
  • the computer readable storage medium stores therein a computer program.
  • the computer program is executed by the processor, the method steps of the data transmission according to the second aspect are implemented.
  • the apparatus, the electronic device, and the computer readable storage medium of the embodiments of the present invention are the apparatus, the electronic device, and the computer readable storage medium applying the data transmission method, and all the embodiments of the data transmission method are applicable to The device, the electronic device, and the computer readable storage medium all achieve the same or similar benefits.

Landscapes

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

Abstract

本发明提供的数据传输方法包括:通过蓝牙连接向第二终端设备发送数据发送请求,通过所述蓝牙连接接收所述第二终端设备发送的数据发送确认,与所述第二终端设备建立Wi-Fi连接;通过所述Wi-Fi连接向所述第二终端发送所述待传输的数据文件;通过所述蓝牙连接与所述第二终端交互与所述待传输的数据文件的相关信息。

Description

一种数据传输的方法、装置及电子设备
本申请要求了申请日为2017年05月25日,申请号为201710378738.5,发明名称为“一种数据传输的方法、装置及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及通信技术领域,特别是涉及一种数据传输的方法、装置及电子设备。
背景技术
随着通信技术的发展,人们越来越倾向于利用移动设备进行数据传输,采用移动设备进行数据传输可以满足人们随时传输数据的需求。常用的移动设备间的数据传输方式有:通过蓝牙技术实现移动终端间的数据传输;在无线通信网络技术(Wireless Fidelity,简称Wi-Fi)下传输数据文件。
在现有技术中,可以通过蓝牙技术实现移动设备间的数据传输,但当用户想要传输多个文件时,传输速度慢。通常我们使用Wi-Fi连接进行数据传输,Wi-Fi信道在传输数据的同时,需要不断地传输来自于发送端和接收端的通信指令,完成发送端和接收端的数据交互。在使用Wi-Fi信道既传输数据又传输通信指令时,会影响数据传输的速度,在通信指令较多时,容易造成接收端的数据传输不完整,影响数据传输的质量。
发明内容
本发明实施例的目的在于提供一种数据传输的方法、装置及电子设备,以实现移动设备在既传输数据又传输通信指令时,提高数据传输的速度和数据传输的质量。具体技术方案如下:
第一方面,本发明实施例提供了一种数据传输方法,所述方法应用于第一终端,所述方法包括:
通过蓝牙连接向第二终端设备发送数据发送请求,所述数据发送请求用于请求向所述第二终端设备发送待传输的数据文件;
通过所述蓝牙连接接收所述第二终端设备发送的数据发送确认;
与所述第二终端设备建立Wi-Fi连接;
通过所述Wi-Fi连接向所述第二终端发送所述待传输的数据文件;
通过所述蓝牙连接与所述第二终端交互与所述待传输的数据文件的相关信息。
可选的,所述通过所述蓝牙连接与所述第二终端交互与所述待传输的数据文件相关的其他信息,包括:
通过所述蓝牙连接与所述第二终端交互数据发送进度信息、数据接收状态信息、数据属性信息中的至少一种。
第二方面,本发明实施例提供了一种数据传输方法,所述方法应用于第二终端,所述方法包括:
通过蓝牙连接接收第一终端设备发送的数据发送请求,所述数据发送请求用于请求发送待传输的数据文件;
通过所述蓝牙连接向所述第一终端设备发送数据发送确认;
与所述第一终端设备建立Wi-Fi连接;
通过所述Wi-Fi连接接收所述第一终端发送的待传输的数据文件;
通过所述蓝牙连接与所述第一终端交互与所述待传输的数据文件的相关信息。
可选的,所述通过所述蓝牙连接与所述第二终端交互与所述待传输的数据文件相关的其他信息,包括:
通过所述蓝牙连接与所述第二终端交互数据发送进度信息、数据接收状态信息、数据属性信息中的至少一种。
本发明实施例提供了一种数据传输装置,所述装置包括:
第一发送模块,用于通过蓝牙连接向第二终端设备发送数据发送请求,所述数据发送请求用于请求向所述第二终端设备发送待传输的数据文件;
接收模块,用于通过所述蓝牙连接接收所述第二终端设备发送的数据发送确认;
建立模块,用于与所述第二终端建立Wi-Fi连接;
第二发送模块,用于通过Wi-Fi连接向所述第二终端发送所述待传输的数据文件;
交互模块,用于通过所述蓝牙连接与所述第二终端交互与所述待传输的数据文件相关的其他信息。
可选的,所述交互模块具体用于通过所述蓝牙连接与所述第二终端交互数据发送进度信息、数据接收状态信息、数据属性信息中的至少一种。
本发明实施例提供了一种数据传输装置,所述装置包括:
第一接收模块,用于通过蓝牙连接接收第一终端设备发送的数据发送请求,所述数据 发送请求用于请求发送待传输的数据文件;
发送模块,用于通过所述蓝牙连接向所述第一终端设备发送数据发送确认;
建立模块,用于与所述第一终端建立Wi-Fi连接;
第一接收模块,用于通过Wi-Fi连接接收所述第一终端发送的待传输的数据文件;
交互模块,用于通过所述蓝牙连接与所述第一终端交互与所述待传输的数据文件相关的其他信息。
可选的,所述交互模块具体用于通过所述蓝牙连接与所述第二终端交互数据发送进度信息、数据接收状态信息、数据属性信息中的至少一种。
本发明实施例提供了一种电子设备,包括处理器、通信接口、存储器和通信总线,其中,所述处理器,所述通信接口,所述存储器通过所述通信总线完成相互间的通信;
所述存储器,用于存放计算机程序;
所述处理器,用于执行所述存储器上所存放的程序时,实现如上第一方面所述的数据传输的方法步骤。
本发明实施例提供了一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现如上第一方面所述的数据传输的方法步骤。
本发明实施例提供了一种电子设备,包括处理器、通信接口、存储器和通信总线,其中,所述处理器,所述通信接口,所述存储器通过所述通信总线完成相互间的通信;
所述存储器,用于存放计算机程序;
所述处理器,用于执行所述存储器上所存放的程序时,实现如上第二方面所述的数据传输的方法步骤。
本发明实施例提供了一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现如上第二方面所述的数据传输的方法步骤。
本发明实施例提供的数据传输的方法、装置及电子设备,对于第一终端设备来说,通过蓝牙连接向第二终端设备发送数据发送请求,数据发送请求用于请求向第二终端设备发送待传输的数据文件;通过蓝牙连接接收第二终端设备发送的数据发送确认;通过Wi-Fi连接向第二终端发送待传输的数据文件;通过蓝牙连接与第二终端交互与待传输的数据文件相关的其他信息。通过蓝牙连接与第二终端设备之间交互与待传输的数据文件相关的其他信息,比如数据发送进度信息、数据接收状态信息、数据属性信息等,把与待传输的数 据文件相关的其他信息利用蓝牙连接与第二终端设备交互,而把数据文件利用Wi-Fi连接向与第二终端传输。蓝牙连接和Wi-Fi连接独立工作,采用蓝牙连接传输数据发送请求和接收数据发送确认,采用Wi-Fi连接发送待传输的数据文件,蓝牙连接用于交互第一终端和第二终端之间的、与数据文件相关的信息,信息内存较小,使用蓝牙连接传输速度快,而Wi-Fi连接传输内存较大的数据文件,传输速度快,并且不会受其他与传输文件相关的信息的干扰。本发明实施例提供的数据传输的方法可以实现移动设备在既传输数据文件时,又传输与数据文件相关的其他信息,蓝牙连接和Wi-Fi连接互不干扰,提高了数据传输的速度和数据传输的质量。当然,实施本发明的任一产品或方法必不一定需要同时达到以上所述的所有优点。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例提供的应用于第一终端的数据传输方法的流程图;
图2为本发明实施例提供的应用于第二终端数据传输方法的流程图;
图3为本发明实施例提供的第一终端和第二终端之间数据传输方法的示意图;
图4为本发明实施例提供的第一终端装置结构示意图;
图5为本发明实施例提供的第二终端装置结构示意图;
图6为本发明实施例提供的第一终端电子设备结构示意图;
图7为本发明实施例提供的第二终端电子设备结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
为了提高数据传输的速度和数据传输的质量,本发明实施例提供了数据传输的方法、装置及电子设备,以下分别进行说明。
本发明实施例提供了一种数据传输方法,应用于第一终端,图1为本方法的流程图,包括如下步骤:
步骤101,通过蓝牙连接向第二终端设备发送数据发送请求。
本发明实施例提供的方法可以应用于电子终端设备。具体地,第一终端设备可以为智能移动终端、便携式计算机等电子终端设备,第二终端设备可以为智能移动终端、便携式计算机、智能投影设备等。
第一终端设备通过蓝牙连接向第二终端设备发送数据发送请求,数据发送请求用于请求向第二终端设备发送待传输的数据文件。首先,第一终端设备具有数据文件发送功能,第二终端设备具有数据文件接收功能,第一终端设备与第二终端设备建立蓝牙连接,建立完成后,第一终端设备进入数据文件发送功能状态,通过蓝牙连接向第二终端设备发送数据发送请求,表明第一终端设备想要向第二终端设备发送数据文件。
步骤102,通过蓝牙连接接收第二终端设备发送的数据发送确认。
在步骤101中,第二终端设备接收来自于第一终端发送的数据发送请求,判断是否可以接收数据文件。第二终端设备判断自身是否可以接受数据文件,判断的方法可以为自检测第二终端设备中存储器的内存,在内存充足的情况下,通过蓝牙连接向第一终端设备发送数据发送确认信息,表明第二终端设备可以接收步骤101中请求发送的数据文件;也可以为检测自身是否可以接收来自于其他终端设备的文件,检测数据发送请求信息的安全性,在安全的情况下,通过蓝牙连接向第一终端设备发送数据发送确认信息,表明可以接收步骤101中请求发送的数据文件;还可以判断第二终端设备的自身工作状态来决定是否接收数据文件,例如,第二终端设备这是接收其他数据文件时,则暂时不发送数据发送确认,在数据文件接收完成后,通过蓝牙连接向第一终端设备发送数据发送确认信息。
第二终端设备还可以根据数据发送请求的内容,判断请求发送的数据文件是否已存在,在不存在的情况下,第二终端设备通过蓝牙连接向第一终端设备发送数据发送确认信息。
第一终端设备通过蓝牙连接接收第二终端设备发送的数据文件发送确认,接收到第二终端可以接收数据文件的确认消息,表明可以向第二终端设备发送数据文件。
步骤103,与第二终端设备建立Wi-Fi连接。
第一终端设备接收到来自于第二终端设备发送的数据发送确认之后,确认第二终端设备可以接收数据发送请求对应的数据文件。在接收第二终端设备发送的数据发送确认之后建立的Wi-Fi连接,发送待传输的数据文件。
步骤104,通过Wi-Fi连接向第二终端发送待传输的数据文件。
第一终端设备可以在通过蓝牙连接向第二终端设备发送数据发送请求时,与第二终端设备之间建立Wi-Fi连接,也可以在第一终端设备通过蓝牙连接接收第二终端设备发送的数据发送确认之后,与第二终端设备建立Wi-Fi连接。在第一终端设备接收第二终端设备发送的数据发送确认之后,建立Wi-Fi连接可以节约第一终端设备和第二终端设备的电量,并且不会影响蓝牙连接的传输。
需要说明的是,蓝牙连接和Wi-Fi连接分别为两种常用的用于数据传输的通信连接,除了蓝牙连接和Wi-Fi连接以外,其他的通信连接还有ZigBee、远红外传输等也能实现上述数据传输方法。
步骤105,通过蓝牙连接与第二终端交互与待传输的数据文件的相关信息。
在第一终端设备向第二终端设备发送待传输的数据文件时,会接收到第二终端设备通过蓝牙连接发送的与待传输的数据文件相关的其他信息,例如数据发送进度信息、数据接收状态信息、数据属性信息中的至少一种。数据发送进度信息为第一终端设备向第二终端设备发送待传输的数据文件时的进度信息,包括传输数据文件的完成度,由第二终端设备通过蓝牙连接发给第一终端设备;数据接收状态信息为第一终端设备接收到的由第二终端设备通过蓝牙连接发送的数据文件的接收状态,例如接收完成或者未完成,在接收完成时,第一终端设备接收到接收完成状态信息,可以继续向第一终端设备发送下一个数据文件或者通过通过蓝牙连接向第二终端设备发送数据发送请求,重复步骤101到104的数据传输过程;数据属性信息为待传输的数据文件的名称、文件大小等属性信息。第一终端设备通过蓝牙连接与第二终端交互数据发送进度信息、数据接收状态信息、数据属性信息中的至少一种。
本发明实施例采用两个通信连接传输不同类型的信息,蓝牙连接传输数据发送请求和数据发送确认,是第一终端和第二终端交互与待传输的数据文件相关的其他信息的通信连接,通过蓝牙连接传输的信息,占用内存小,传输速率较快;Wi-Fi连接传输数据文件,数据文件是传输的重要内容,采用Wi-Fi连接进行传输,不会受到蓝牙连接传输信息的干扰,并且不会影响数据文件传输的速度,提高了数据传输的质量。两个通信连接并行工作,与单独采用蓝牙连接或者Wi-Fi连接进行传输数据发送请求和数据发送确认、交互其他指令式信息或者核心数据内容相比,将两种不同类型的消息分开传输,不会相互影响,提高了数据传输的质量。
本发明实施例提供的数据传输方法,在数据传输的过程中,包含有两个通信连接,对 于第一终端设备来说,通过蓝牙连接向第二终端设备发送数据发送请求,数据发送请求用于请求向第二终端设备发送待传输的数据文件;通过蓝牙连接接收第二终端设备发送的数据发送确认;通过Wi-Fi连接向第二终端发送待传输的数据文件;通过蓝牙连接与第二终端交互与待传输的数据文件的相关信息。通过蓝牙连接与第二终端设备之间交互与待传输的数据文件相关的其他信息,比如数据发送进度信息、数据接收状态信息、数据属性信息等,把与待传输的数据文件相关的其他信息利用蓝牙连接与第二终端设备交互,而把数据文件利用Wi-Fi连接向与第二终端传输。采用两个通信连接独立工作,可以实现移动设备在既传输数据文件时,又传输与数据文件相关的其他信息,两个通信连接互不干扰,提高数据传输的速度和数据传输的质量。
在本发明实施例中,第一终端设备采用蓝牙连接传输数据发送请求和接收数据发送确认,采用Wi-Fi连接发送待传输的数据文件,与传统单一的通信连接的方式相比,如果采取单一的蓝牙连接传输数据,在发送大文件时传输速率慢,如果采取单一的Wi-Fi连接传输数据,在数据传输的过程中,会夹杂其他与传输文件相关的信息,比如数据文件的接收进度,数据文件的属性信息,频繁的通信消息会影响数据文件的传输,导致文件传输缓慢甚至停止,接收数据文件的终端设备有可能接收到损坏的文件,而影响传输的质量。但是采用两个通信连接独立传输,蓝牙连接传输与待传输的数据文件相关的其他信息,Wi-Fi连接传输数据文件,两个通信连接并行工作,而且分别传输不同类型的内容,蓝牙连接只传输与数据文件相关的其他信息,信息的大小较小,不影响传输速度,Wi-Fi连接传输数据文件,数据文件占用内存较大时,也不会影响传输速度,并且不会受其他与传输文件相关的信息的干扰。当蓝牙连接和Wi-Fi连接同时工作时,既提高了数据传输速率,又保证了数据传输质量。
第二方面,本发明实施例提供了一种数据传输方法,应用于第二终端,图2为本方法的流程图,包括如下步骤:
步骤201,通过蓝牙连接接收第一终端设备发送的数据发送请求。
本发明实施例提供的方法可以应用于电子终端设备。具体地,第一终端设备可以为智能移动终端、便携式计算机等电子终端设备,第二终端设备可以为智能移动终端、便携式计算机、智能投影设备等。
第一终端设备通过蓝牙连接向第二终端设备发送数据发送请求,数据发送请求用于请求向第二终端设备发送待传输的数据文件。首先,第一终端设备具有数据文件发送功能,第二终端设备具有数据文件接收功能,第一终端设备与第二终端设备建立蓝牙连接,建立 完成后,第一终端设备进入数据文件发送功能状态,通过蓝牙连接向第二终端设备发送数据发送请求,表明第一终端设备想要向第二终端设备发送数据文件。
第二终端设备接收来自于第一终端设备通过蓝牙连接发送的数据发送请求,接收第一终端设备请求发送待传输的数据文件的请求。
步骤202,通过蓝牙连接向第一终端设备发送数据发送确认。
在步骤201中,第二终端设备接收来自于第一终端发送的数据发送请求,判断是否可以接收数据文件。判断的方法可以为自检测第二终端设备的内存,在内存充足的情况下,第二终端设备通过蓝牙连接向第一终端设备发送数据发送确认信息,表明第二终端设备可以接收步骤101中请求发送的数据文件。第二终端设备还可以根据数据发送请求,判断请求发送的数据文件是否已存在,在不存在的情况下,第二终端设备通过蓝牙连接向第一终端设备发送数据发送确认信息。
第二终端设备可以在通过蓝牙连接向第一终端设备发送数据发送确认时,与第一终端设备之间建立Wi-Fi连接,也可以在第一终端设备通过蓝牙连接接收第二终端设备发送的数据发送确认之后,与第一终端设备建立Wi-Fi连接。在第一终端设备接收第二终端设备发送的数据发送确认之后,建立Wi-Fi连接可以节约第一终端设备和第二终端设备的电量,并且不会影响蓝牙连接的传输。
步骤203,与第一终端设备建立Wi-Fi连接。
第二终端设备在向第一终端设备发送数据发送确认后,与第一终端设备建立Wi-Fi连接,通过Wi-Fi连接接收第一终端发送的待传输的数据文件。
步骤204,通过Wi-Fi连接接收第一终端发送的待传输的数据文件。
第一终端设备采用蓝牙连接传输数据发送请求和接收数据发送确认,采用Wi-Fi连接发送待传输的数据文件,两个通信连接独立传输,蓝牙连接传输与待传输的数据文件相关的其他信息,Wi-Fi连接传输数据文件,在两个通信连接同时工作时,不会影响彼此的传输速度,并且互不干扰。
需要说明的是,蓝牙连接和Wi-Fi连接分别为两种常用的用于数据传输的通信连接,除了蓝牙连接和Wi-Fi连接以外,其他的通信连接还有ZigBee、远红外传输等也能实现上述数据传输方法。
步骤205,通过蓝牙连接与第一终端交互与待传输的数据文件的相关信息。
在第二终端设备接收第一终端设备发送的数据文件时,会接收到第一终端设备通过蓝牙连接发送的与待传输的数据文件相关的其他信息,例如数据发送进度信息、数据接收状 态信息、数据属性信息中的至少一种。数据发送进度信息为第二终端设备接收第一终端设备发送数据文件的进度信息,包括传输数据文件的完成度,由第二终端设备通过蓝牙连接发给第一终端设备;数据接收状态信息为第二终端设备接收到的由第一终端设备通过蓝牙连接发送的数据文件的接收状态,例如接收完成或者未完成,在接收完成时,第二终端设备向第一终端设备发送接收完成状态信息,可以继续接收第一终端设备发送下一个数据文件或者第一终端设备通过蓝牙连接向第二终端设备发送数据发送请求,重复步骤201到204的数据传输过程;数据属性信息为待传输的数据文件的名称、文件大小等属性信息。第一终端设备通过蓝牙连接与第二终端交互数据发送进度信息、数据接收状态信息、数据属性信息中的至少一种。
本发明实施例提供的数据传输方法,通过蓝牙连接接收第一终端设备发送的数据发送请求,数据发送请求用于请求发送待传输的数据文件;蓝牙连接向第一终端设备发送数据发送确认;通过Wi-Fi连接接收第一终端发送的待传输的数据文件;通过蓝牙连接与第一终端交互与待传输的数据文件相关的其他信息。通过蓝牙连接与第一终端设备之间交互与待传输的数据文件相关的其他信息,比如数据发送进度信息、数据接收状态信息、数据属性信息等,把与待传输的数据文件相关的其他信息利用蓝牙连接与第一终端设备交互,而利用Wi-Fi连接接收数据文件。采用两个通信连接独立工作,可以实现移动设备在既传输数据文件时,又传输与数据文件相关的其他信息,两个通信连接互不干扰,提高数据传输的速度和数据传输的质量。
在本发明实施例中,第一终端设备采用蓝牙连接传输数据发送请求和接收数据发送确认,采用Wi-Fi连接发送待传输的数据文件,与传统单一的通信连接的方式相比,如果采取单一的蓝牙连接传输数据,在发送大文件时传输速率慢,如果采取单一的Wi-Fi连接传输数据,在数据传输的过程中,会夹杂其他与传输文件相关的信息,比如数据文件的接收进度,数据文件的属性信息,频繁的通信消息会影响数据文件的传输,导致文件传输缓慢甚至停止,接收数据文件的终端设备有可能接收到损坏的文件,而影响传输的质量。但是采用两个通信连接独立传输,蓝牙连接传输与待传输的数据文件相关的其他信息,Wi-Fi连接传输数据文件,两个通信连接并行工作,而且分别传输不同类型的内容,蓝牙连接只传输与数据文件相关的其他信息,信息的大小较小,不影响传输速度,Wi-Fi连接传输数据文件,数据文件占用内存较大时,也不会影响传输速度,并且不会受其他与传输文件相关的信息的干扰。当两个通信连接同时工作时,即提高了影响传输速率,并且保证了传输质量。
作为本发明实施例的一种具体实施方式,图3为第一终端和第二终端之间数据传输方法的示意图,具体传输过程如下:
第一终端通过蓝牙连接向第二终端发送数据发送请求。首先,第一终端设备与第二终端设备之间建立蓝牙连接。第一终端通过蓝牙连接向第二终端发送数据发送请求,数据发送请求用于请求发送待传输的数据文件。
第二终端通过蓝牙连接接收第一终端设备发送的数据发送请求。第二终端设备接收来自于第一终端发送的数据发送请求,判断是否可以接收数据文件。判断的方法可以为自检测第二终端设备的内存或者请求发送的数据文件是否已存在。
第二终端通过蓝牙连接向第一终端发送数据发送确认。在内存充足的情况下,第二终端设备通过蓝牙连接向第一终端设备发送数据发送确认信息,表明第二终端设备可以接收请求发送的数据文件。第二终端设备还可以根据数据发送请求,判断请求发送的数据文件是否已经存在,在不存在的情况下,第二终端设备通过蓝牙连接向第一终端设备发送数据发送确认信息。
第一终端与第二终端之间建立Wi-Fi连接。第一终端设备接收到来自于第二终端设备发送的数据发送确认之后,确认第二终端设备可以接收数据发送请求对应的数据文件。在接收第二终端设备发送的数据发送确认之后建立Wi-Fi连接,发送待传输的数据文件。
第一终端通过蓝牙连接接收第二终端发送的数据发送确认,第一终端通过Wi-Fi连接向第二终端发送待传输的数据文件。第一终端设备接收到来自于第二终端设备发送的数据发送确认之后,确认第二终端设备可以接收数据发送请求对应的数据文件。在接收第二终端设备发送的数据发送确认之后建立的Wi-Fi连接,发送待传输的数据文件。
第二终端通过Wi-Fi连接接收第一终端发送的待传输的数据文件。第二终端设备在向第一终端设备发送数据发送确认后,与第一终端设备建立Wi-Fi连接,通过Wi-Fi连接接收第一终端发送的待传输的数据文件。
第一终端设备采用蓝牙连接传输数据发送请求和接收数据发送确认,采用Wi-Fi连接发送待传输的数据文件,两个通信连接独立传输,蓝牙连接传输与待传输的数据文件相关的其他信息,Wi-Fi连接传输数据文件,在两个通信连接同时工作时,不会影响彼此的传输速度,并且互不干扰。
第一终端与第二终端通过蓝牙连接交互与待传输的数据文件相关的其他信息。在第一终端设备向第二终端设备发送待传输的数据文件时,会接收到第二终端设备通过蓝牙连接发送的与待传输的数据文件相关的其他信息,例如数据发送进度信息、数据接收状态信息、 数据属性信息中的至少一种。数据发送进度信息为第一终端设备向第二终端设备发送待传输的数据文件时的进度信息,包括传输数据文件的完成度,由第二终端设备通过蓝牙连接发给第一终端设备;数据接收状态信息为第一终端设备接收到的由第二终端设备通过蓝牙连接发送的数据文件的接收状态,例如接收完成或者未完成,在接收完成时,第一终端设备接收到接收完成状态信息,可以继续向第一终端设备发送下一个数据文件或者通过通过蓝牙连接向第二终端设备发送数据发送请求;数据属性信息为待传输的数据文件的名称、文件大小等属性信息。第一终端设备通过蓝牙连接与第二终端交互数据发送进度信息、数据接收状态信息、数据属性信息中的至少一种。
在第二终端设备接收第一终端设备发送的数据文件时,会接收到第一终端设备通过蓝牙连接发送的与待传输的数据文件相关的其他信息,例如数据发送进度信息、数据接收状态信息、数据属性信息中的至少一种。数据发送进度信息为第二终端设备接收第一终端设备发送数据文件的进度信息,包括传输数据文件的完成度,由第二终端设备通过蓝牙连接发给第一终端设备;数据接收状态信息为第二终端设备接收到的由第一终端设备通过蓝牙连接发送的数据文件的接收状态,例如接收完成或者未完成,在接收完成时,第二终端设备向第一终端设备发送接收完成状态信息,可以继续接收第一终端设备发送下一个数据文件或者第一终端设备通过蓝牙连接向第二终端设备发送数据发送请求;数据属性信息为待传输的数据文件的名称、文件大小等属性信息。第一终端设备通过蓝牙连接与第二终端交互数据发送进度信息、数据接收状态信息、数据属性信息中的至少一种。
本发明实施例提供了一种数据传输装置,装置结构示意图,如图4所示,包括:
第一发送模块401,用于通过蓝牙连接向第二终端设备发送数据发送请求,数据发送请求用于请求向第二终端设备发送待传输的数据文件;
接收模块402,用于通过蓝牙连接接收第二终端设备发送的数据发送确认;
建立模块403,用于与第二终端建立Wi-Fi连接;
第二发送模块404,用于通过Wi-Fi连接向第二终端发送待传输的数据文件;
交互模块405,用于通过蓝牙连接与第二终端交互与待传输的数据文件的相关信息。
本发明实施例提供的数据传输装置,在数据传输的过程中,包含有两个通信连接,对于第一终端设备来说,通过蓝牙连接向第二终端设备发送数据发送请求,数据发送请求用于请求向第二终端设备发送待传输的数据文件;通过蓝牙连接接收第二终端设备发送的数据发送确认;通过Wi-Fi连接向第二终端发送待传输的数据文件;通过蓝牙连接与第二终端交互与待传输的数据文件相关的其他信息。通过蓝牙连接与第二终端设备之间交互与待 传输的数据文件相关的其他信息,比如数据发送进度信息、数据接收状态信息、数据属性信息等,把与待传输的数据文件相关的其他信息利用蓝牙连接与第二终端设备交互,而把数据文件利用Wi-Fi连接向与第二终端传输。蓝牙连接和Wi-Fi连接独立工作,采用蓝牙连接传输数据发送请求和接收数据发送确认,采用Wi-Fi连接发送待传输的数据文件,蓝牙连接用于交互第一终端和第二终端之间的、与数据文件相关的信息,信息内存较小,使用蓝牙连接传输速度快,而Wi-Fi连接传输内存较大的数据文件,传输速度快,并且不会受其他与传输文件相关的信息的干扰。本发明实施例提供的数据传输的方法可以实现移动设备在既传输数据文件时,又传输与数据文件相关的其他信息,蓝牙连接和Wi-Fi连接互不干扰,提高了数据传输的速度和数据传输的质量。
可选的,交互模块404具体用于通过蓝牙连接与第二终端交互数据发送进度信息、数据接收状态信息、数据属性信息中的至少一种。
本发明实施例还提供了一种数据传输装置,装置装置结构示意图如图5所示包括:
第一接收模块501,用于通过蓝牙连接接收第一终端设备发送的数据发送请求,数据发送请求用于请求发送待传输的数据文件;
发送模块502,用于通过蓝牙连接向第一终端设备发送数据发送确认;
建立模块503,用于与第一终端建立Wi-Fi连接;
第一接收模块504,用于通过Wi-Fi连接接收第一终端发送的待传输的数据文件;
交互模块505,用于通过蓝牙连接与所述第一终端交互与待传输的数据文件的相关信息。
本发明实施例提供的数据传输装置,通过蓝牙连接接收第一终端设备发送的数据发送请求,数据发送请求用于请求发送待传输的数据文件;蓝牙连接向第一终端设备发送数据发送确认;通过Wi-Fi连接接收第一终端发送的待传输的数据文件;通过蓝牙连接与第一终端交互与待传输的数据文件相关的其他信息。通过蓝牙连接与第一终端设备之间交互与待传输的数据文件相关的其他信息,比如数据发送进度信息、数据接收状态信息、数据属性信息等,把与待传输的数据文件相关的其他信息利用蓝牙连接与第一终端设备交互,而利用Wi-Fi连接接收数据文件。蓝牙连接和Wi-Fi连接独立工作,采用蓝牙连接传输数据发送请求和接收数据发送确认,采用Wi-Fi连接发送待传输的数据文件,蓝牙连接用于交互第一终端和第二终端之间的、与数据文件相关的信息,信息内存较小,使用蓝牙连接传输速度快,而Wi-Fi连接传输内存较大的数据文件,传输速度快,并且不会受其他与传输文件相关的信息的干扰。本发明实施例提供的数据传输的方法可以实现移动设备在既传输 数据文件时,又传输与数据文件相关的其他信息,蓝牙连接和Wi-Fi连接互不干扰,提高了数据传输的速度和数据传输的质量。
可选的,交互模块504具体用于通过蓝牙连接与第二终端交互数据发送进度信息、数据接收状态信息、数据属性信息中的至少一种。
本发明实施例提供了一种电子设备,包括处理器601、通信接口602、存储器603和通信总线604,其中,处理器601,通信接口602,存储器603通过通信总线604完成相互间的通信;
存储器603,用于存放计算机程序;
处理器601,用于执行存储器603上所存放的程序时,实现如下的数据传输的方法步骤:
通过蓝牙连接向第二终端设备发送数据发送请求,数据发送请求用于请求向第二终端设备发送待传输的数据文件;
通过蓝牙连接接收第二终端设备发送的数据发送确认;
与第二终端设备建立Wi-Fi连接;
通过Wi-Fi连接向第二终端发送待传输的数据文件;
通过蓝牙连接与第二终端交互与待传输的数据文件的相关信息。
上述电子设备提到的通信总线可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
通信接口用于上述电子设备与其他设备之间的通信。
存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。
上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital Signal Processing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件
本发明实施例提供了一种计算机可读存储介质,计算机可读存储介质内存储有计算机 程序,计算机程序被处理器执行时实现如上第一方面所述的数据传输的方法步骤。
本发明实施例提供了一种电子设备,包括处理器701、通信接口702、存储器703和通信总线704,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;
存储器,用于存放计算机程序;
处理器,用于执行存储器上所存放的程序时,实现如下的数据传输的方法步骤:
通过蓝牙连接向第二终端设备发送数据发送请求,数据发送请求用于请求向第二终端设备发送待传输的数据文件;
通过蓝牙连接接收第二终端设备发送的数据发送确认;
与第一终端设备建立Wi-Fi连接;
通过Wi-Fi连接向第二终端发送待传输的数据文件;
通过蓝牙连接与第二终端交互与待传输的数据文件相关的其他信息。
本发明实施例提供了一种计算机可读存储介质,计算机可读存储介质内存储有计算机程序,计算机程序被处理器执行时实现如上第二方面所述的数据传输的方法步骤。
需要说明的是,本发明实施例的装置、电子设备及计算机可读存储介质是应用上述数据传输方法的装置、电子设备及计算机可读存储介质,则上述数据传输方法的所有实施例均适用于该装置、电子设备及计算机可读存储介质,且均能达到相同或相似的有益效果。
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。

Claims (4)

  1. 一种数据传输方法,其特征在于,所述方法应用于第一终端,所述方法包括:
    通过蓝牙连接向第二终端设备发送数据发送请求,所述数据发送请求用于请求向所述第二终端设备发送待传输的数据文件;
    通过所述蓝牙连接接收所述第二终端设备发送的数据发送确认;
    与所述第二终端设备建立Wi-Fi连接;
    通过所述Wi-Fi连接向所述第二终端发送所述待传输的数据文件;
    通过所述蓝牙连接与所述第二终端交互与所述待传输的数据文件的相关信息。
  2. 根据权利要求1所述的方法,其特征在于,所述通过所述蓝牙连接与所述第二终端交互与所述待传输的数据文件相关的相关信息,包括:
    通过所述蓝牙连接与所述第二终端交互数据发送进度信息、数据接收状态信息、数据属性信息中的至少一种。
  3. 一种数据传输方法,其特征在于,所述方法应用于第二终端,所述方法包括:
    通过蓝牙连接接收第一终端设备发送的数据发送请求,所述数据发送请求用于请求发送待传输的数据文件;
    通过所述蓝牙连接向所述第一终端设备发送数据发送确认;
    与所述第一终端设备建立Wi-Fi连接;
    通过所述Wi-Fi连接接收所述第一终端发送的待传输的数据文件;
    通过所述蓝牙连接与所述第一终端交互与所述待传输的数据文件的相关信息。
  4. 根据权利要求3所述的方法,其特征在于,所述通过所述蓝牙连接与所述第二终端交互与所述待传输的数据文件的相关信息,包括:
    通过所述蓝牙连接与所述第二终端交互数据发送进度信息、数据接收状态信息、数据属性信息中的至少一种。
PCT/CN2018/088024 2017-05-25 2018-05-23 一种数据传输的方法、装置及电子设备 WO2018214911A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710378738.5A CN107135472A (zh) 2017-05-25 2017-05-25 一种数据传输的方法、装置及电子设备
CN201710378738.5 2017-05-25

Publications (1)

Publication Number Publication Date
WO2018214911A1 true WO2018214911A1 (zh) 2018-11-29

Family

ID=59732172

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/088024 WO2018214911A1 (zh) 2017-05-25 2018-05-23 一种数据传输的方法、装置及电子设备

Country Status (2)

Country Link
CN (1) CN107135472A (zh)
WO (1) WO2018214911A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107135472A (zh) * 2017-05-25 2017-09-05 北京数科技有限公司 一种数据传输的方法、装置及电子设备
CN111316681A (zh) * 2017-09-11 2020-06-19 深圳传音通讯有限公司 文件传输方法与系统
CN107770881A (zh) * 2017-10-27 2018-03-06 三星(中国)半导体有限公司 传输数据的方法及装置
CN110418430B (zh) * 2018-04-28 2023-02-17 中兴通讯股份有限公司 应用的发送、接收方法及装置、存储介质、电子装置
CN111641431B (zh) 2019-11-08 2022-04-05 广州视源电子科技股份有限公司 数据传输方法及数据传输设备
CN114826591A (zh) * 2022-05-26 2022-07-29 京东方科技集团股份有限公司 一种跨设备的数据传输方法、系统及终端

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120134310A1 (en) * 2008-04-24 2012-05-31 Maarten Menzo Wentink Systems and methods of combined bluetooth and wlan signaling
CN104519458A (zh) * 2014-12-29 2015-04-15 宇龙计算机通信科技(深圳)有限公司 一种网络连接的方法、终端、无线路由器及系统
CN105101055A (zh) * 2015-07-03 2015-11-25 惠州Tcl移动通信有限公司 文件传输的方法及智能设备
CN107135472A (zh) * 2017-05-25 2017-09-05 北京数科技有限公司 一种数据传输的方法、装置及电子设备

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103874063A (zh) * 2012-12-17 2014-06-18 鸿富锦精密工业(深圳)有限公司 电子设备及建立电子设备之间通信的方法
CN103580842A (zh) * 2013-11-04 2014-02-12 惠州Tcl移动通信有限公司 一种多类型无线链路并行传输的方法和系统
CN104394600B (zh) * 2014-10-24 2018-03-16 小米科技有限责任公司 传输文件的方法及装置
CN105722244B (zh) * 2014-12-02 2020-07-24 联想(北京)有限公司 一种信息处理方法及电子设备
CN105843730A (zh) * 2016-03-17 2016-08-10 广东欧珀移动通信有限公司 一种基于指示灯的信息提示方法和装置
CN106255230A (zh) * 2016-07-29 2016-12-21 广东美的厨房电器制造有限公司 数据传输方法及数据传输装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120134310A1 (en) * 2008-04-24 2012-05-31 Maarten Menzo Wentink Systems and methods of combined bluetooth and wlan signaling
CN104519458A (zh) * 2014-12-29 2015-04-15 宇龙计算机通信科技(深圳)有限公司 一种网络连接的方法、终端、无线路由器及系统
CN105101055A (zh) * 2015-07-03 2015-11-25 惠州Tcl移动通信有限公司 文件传输的方法及智能设备
CN107135472A (zh) * 2017-05-25 2017-09-05 北京数科技有限公司 一种数据传输的方法、装置及电子设备

Also Published As

Publication number Publication date
CN107135472A (zh) 2017-09-05

Similar Documents

Publication Publication Date Title
WO2018214911A1 (zh) 一种数据传输的方法、装置及电子设备
WO2018126853A1 (zh) 数据传输方法及装置
US9330047B2 (en) Wireless docking service with direct connection to peripherals
WO2017045276A1 (zh) 终端互联方法、装置和存储介质
US9762662B2 (en) Mass re-formation of groups in a peer-to-peer network
JP6293874B2 (ja) ワイヤレスドッキングアーキテクチャ
WO2019134306A1 (zh) 消息处理方法、装置、终端设备及可读存储介质
WO2017050015A1 (zh) 数据传输方法、装置以及终端
US11985198B2 (en) Method, apparatus, and system for session reestablishment or session sharing, and storage medium
WO2019144742A1 (zh) 用户终端和设备的绑定方法、装置和系统
TW201348970A (zh) 用於促進無線對接系統中的直接配對的設備和方法
WO2019205557A1 (zh) 物联网设备的资源订阅
JP6339207B2 (ja) Wifiによるネットワークアクセスを実現する方法、システム及び端末
EP2779477A1 (en) Method, device and system for establishing conversation relation
WO2016090120A1 (en) Discovery and management of synchronous audio or video streaming service to multiple sinks in wireless display system
WO2013174265A1 (zh) 数据传输方法和装置
WO2017101186A1 (zh) 用于为用户设备的应用建立无线连接的方法
WO2014110855A1 (zh) 一种数据传输的方法及终端
WO2016011885A1 (zh) 一种信息传输方法及装置
KR20220045115A (ko) 차량-기계 상호연결 방법 및 장치
TW201438498A (zh) 無線網路系統及其連線方法
JP2015516715A (ja) ピアツーピア接続を実行するためのシステム及び方法
WO2018058862A1 (zh) 一种基于spi的数据传输方法及装置
CN103607421A (zh) 一种数据交互的方法及智能终端
WO2023197315A1 (zh) 感知测量方法和通信装置

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: 18806323

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18806323

Country of ref document: EP

Kind code of ref document: A1