[go: up one dir, main page]

CN108696547A - Document transmission method, apparatus and system - Google Patents

Document transmission method, apparatus and system Download PDF

Info

Publication number
CN108696547A
CN108696547A CN201710113909.1A CN201710113909A CN108696547A CN 108696547 A CN108696547 A CN 108696547A CN 201710113909 A CN201710113909 A CN 201710113909A CN 108696547 A CN108696547 A CN 108696547A
Authority
CN
China
Prior art keywords
receiving terminal
parameter information
terminal
connection
sending
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710113909.1A
Other languages
Chinese (zh)
Inventor
何祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201710113909.1A priority Critical patent/CN108696547A/en
Priority to PCT/CN2017/115682 priority patent/WO2018157646A1/en
Publication of CN108696547A publication Critical patent/CN108696547A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

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

Abstract

本发明提供了一种文件传输方法、装置及系统,其中该方法包括:发送终端将本地用于与接收终端连接的参数信息通过声码的方式发送到接收终端;发送终端接收到接收终端响应于参数信息的连接请求;发送终端根据连接请求与接收终端建立无线保真Wi‑Fi连接;发送终端基于Wi‑Fi连接向接收终端传输文件。通过本发明,解决了相关技术中采用近距离文件传输的方式需要对终端硬件进行改进导致成本增加的问题,达到了节约成本以及提升用户体验的效果。

The present invention provides a file transmission method, device and system, wherein the method includes: the sending terminal sends the local parameter information used to connect with the receiving terminal to the receiving terminal through voice code; the sending terminal receives the receiving terminal's response A connection request for parameter information; the sending terminal establishes a wireless fidelity Wi-Fi connection with the receiving terminal according to the connection request; the sending terminal transmits files to the receiving terminal based on the Wi-Fi connection. The present invention solves the problem in the related art that the short-distance file transmission method needs to improve the terminal hardware, resulting in cost increase, and achieves the effects of cost saving and user experience improvement.

Description

文件传输方法、装置及系统File transfer method, device and system

技术领域technical field

本发明涉及通信领域,具体而言,涉及一种文件传输方法、装置及系统。The present invention relates to the communication field, in particular to a file transmission method, device and system.

背景技术Background technique

如今智能终端发展迅速,尤其是智能手机,而在智能手机的各种功能中除了电话、信息和存储名片等基础功能之外,各种社交、分享功能的应用也越来越多。例如,在两个人之间,通过移动终端近距离地进行音视频文件、各种应用软件的分享、传输,是一个比较典型的应用场景。Nowadays, smart terminals are developing rapidly, especially smart phones. Among the various functions of smart phones, in addition to basic functions such as phone calls, information, and storage of business cards, there are more and more applications for various social and sharing functions. For example, sharing and transmitting audio and video files and various application software between two people at close range through a mobile terminal is a typical application scenario.

对于近距离文件传输方式,常见的蓝牙、无线保真Wi-Fi这两种,这两种都需要用户在打开控制开关之后,搜索附近设备列表,找到对应的设备名称,然后再点击连接/配对,然后再进行文件传输操作,使用起来比较繁琐,不够方便。For short-distance file transfer methods, there are two common Bluetooth and Wi-Fi, both of which require the user to search the list of nearby devices after turning on the control switch, find the corresponding device name, and then click Connect/Pairing , and then perform the file transfer operation, which is cumbersome to use and not convenient enough.

具体地,在相关技术中常用的两种文件传输方式为:一种是通过NFC来实现快捷配对。另一种是基于触摸屏的HotKnot技术,将两部同时支持该技术的手机屏幕贴在一起,然后通过Wi-Fi(热点或者直连)来实现文件传输。Specifically, two commonly used file transfer methods in related technologies are: one is to realize quick pairing through NFC. The other is the HotKnot technology based on the touch screen, which pastes the screens of two mobile phones that support this technology together, and then realizes file transfer through Wi-Fi (hot spot or direct connection).

然而上述已有技术存在如下缺点或问题:Yet there is following shortcoming or problem in above-mentioned prior art:

(1)基于NFC的快捷配对与传输,首先需要硬件设备支持NFC,同样的也需要硬件外设配置的支持,进而会增加成本。(1) Fast pairing and transmission based on NFC first requires hardware devices to support NFC, and also requires hardware peripheral configuration support, which will increase costs.

(2)基于HotKnot的快捷配对技术,对触摸屏部件及其芯片固件、以及终端的软件平台有要求,也会增加整体成本。(2) The quick pairing technology based on HotKnot has requirements for the touch screen components and their chip firmware, as well as the software platform of the terminal, which will also increase the overall cost.

针对相关技术中的上述问题,目前尚未存在有效的解决方案。For the above-mentioned problems in related technologies, there is no effective solution at present.

发明内容Contents of the invention

本发明实施例提供了一种文件传输方法、装置及系统,以至少解决相关技术中采用近距离文件传输的方式需要对终端硬件进行改进导致成本增加的问题。Embodiments of the present invention provide a file transmission method, device, and system to at least solve the problem in the related art that the short-distance file transmission method needs to improve terminal hardware and cause cost increase.

根据本发明的一个方面,提供了一种文件传输方法,包括:发送终端将本地用于与接收终端连接的参数信息通过声码的方式发送到所述接收终端;所述发送终端接收到所述接收终端响应于所述参数信息的连接请求;所述发送终端根据所述连接请求与所述接收终端建立无线保真Wi-Fi连接;所述发送终端基于所述Wi-Fi连接向所述接收终端传输文件。According to one aspect of the present invention, a file transmission method is provided, including: the sending terminal sends the local parameter information used to connect with the receiving terminal to the receiving terminal in the form of vocoder; the sending terminal receives the The receiving terminal responds to the connection request of the parameter information; the sending terminal establishes a wireless fidelity Wi-Fi connection with the receiving terminal according to the connection request; the sending terminal sends a message to the receiving terminal based on the Wi-Fi connection Terminal transfers files.

可选地,所述发送终端将本地用于与接收终端连接的参数信息通过声码的方式发送到所述接收终端包括:所述发送终端通过指定格式对所述参数信息进行封装;所述发送终端将封装后的所述参数信息通过音频资源循环向所述接收终端发送。Optionally, the transmitting terminal sending the parameter information locally used to connect with the receiving terminal to the receiving terminal through vocoding includes: the sending terminal encapsulating the parameter information in a specified format; the sending The terminal sends the encapsulated parameter information to the receiving terminal in a loop through audio resources.

可选地,在发送终端将本地用于与接收终端连接的参数信息通过声码的方式发送到所述接收终端之前,所述方法还包括:所述发送终端获取所述参数信息,其中,所述参数信息包括以下至少之一:所述发送终端的IP地址、设备标识ID、设备类型。Optionally, before the sending terminal sends the local parameter information used to connect with the receiving terminal to the receiving terminal through vocoding, the method further includes: the sending terminal acquires the parameter information, wherein the The parameter information includes at least one of the following: IP address of the sending terminal, device identification ID, and device type.

可选地,在所述发送终端根据所述连接请求与所述接收终端建立无线保真Wi-Fi连接之后,所述方法还包括:所述发送终端停止通过声码的方式向所述接收终端发送所述参数信息,并释放在传输过程中所占用的设备资源。Optionally, after the sending terminal establishes a wireless fidelity Wi-Fi connection with the receiving terminal according to the connection request, the method further includes: the sending terminal stops sending voice calls to the receiving terminal Send the parameter information, and release the device resources occupied during the transmission.

根据本发明的另一个方面,提供了一种文件传输方法,包括:接收终端通过声码的方式接收发送终端发送的用于与所述接收终端连接的参数信息;所述接收终端根据所述参数信息向所述发送连接请求;在所述发送终端根据所述连接请求建立与所述接收终端的Wi-Fi连接后,所述接收终端接收所述发送终端传输的文件。According to another aspect of the present invention, a file transmission method is provided, including: the receiving terminal receives the parameter information sent by the sending terminal for connecting with the receiving terminal through vocoder; Sending a connection request to the information; after the sending terminal establishes a Wi-Fi connection with the receiving terminal according to the connection request, the receiving terminal receives the file transmitted by the sending terminal.

可选地,所述接收终端通过声码的方式接收发送终端发送的用于与所述接收终端连接的参数信息包括:所述接收终端接收所述发送终端封装后的参数信息;所述接收终端对封装后的参数信息进行解析,并提取所述参数信息。Optionally, receiving, by the receiving terminal, the parameter information for connecting with the receiving terminal sent by the sending terminal through vocoding includes: the receiving terminal receiving the parameter information encapsulated by the sending terminal; the receiving terminal Parsing the encapsulated parameter information, and extracting the parameter information.

可选地,所述接收终端根据所述参数信息向所述发送连接请求包括:所述接收终端通过WI-FI直连接口向所述发送终端发送连接请求。Optionally, the receiving terminal sending a connection request to the sending terminal according to the parameter information includes: the receiving terminal sending a connection request to the sending terminal through a WI-FI direct connection interface.

可选地,在所述发送终端根据所述连接请求建立与所述接收终端的WI-FI连接之后,所述方法还包括:所述接收终端停止通过声码的方式接收所述发送终端发送的所述参数信息,并释放在传输过程中所占用的设备资源。Optionally, after the sending terminal establishes a WI-FI connection with the receiving terminal according to the connection request, the method further includes: the receiving terminal stops receiving the WI-FI message sent by the sending terminal in a vocoder manner. The parameter information, and release the device resources occupied during the transmission.

根据本发明的再一个方面,提供了一种文件传输装置,应用于发送终端侧,包括:第一配对管理模块,用于将本地用于与接收终端连接的参数信息通过声码的方式发送到所述接收终端;直连认证模块,用于接收到所述接收终端响应于所述参数信息的连接请求;第一Wi-Fi连接代理模块,用于根据所述连接请求与所述接收终端建立Wi-Fi连接;第一文件传输模块,用于基于所述Wi-Fi连接向所述接收终端传输文件。According to another aspect of the present invention, a file transmission device is provided, which is applied to the sending terminal side, including: a first pairing management module, configured to send local parameter information for connecting with the receiving terminal to the The receiving terminal; a direct connection authentication module, configured to receive a connection request from the receiving terminal in response to the parameter information; a first Wi-Fi connection agent module, configured to establish a connection with the receiving terminal according to the connection request Wi-Fi connection; a first file transmission module, configured to transmit files to the receiving terminal based on the Wi-Fi connection.

可选地,所述第一配对管理模块包括:封装单元,用于通过指定格式对所述参数信息进行封装;发送单元,用于将封装后的所述参数信息通过音频资源循环向所述接收终端发送。Optionally, the first pairing management module includes: an encapsulation unit, configured to encapsulate the parameter information in a specified format; a sending unit, configured to circulate the encapsulated parameter information to the receiver via audio resources Terminal sends.

可选地,在所述第一配对管理模块将本地用于与接收终端连接的参数信息通过声码的方式发送到所述接收终端之前,所述第一Wi-Fi连接代理模块,还用于获取所述参数信息,其中,所述参数信息包括以下至少之一:所述发送终端的IP地址、设备标识ID、设备类型。Optionally, before the first pairing management module sends the locally used parameter information for connecting with the receiving terminal to the receiving terminal through voice code, the first Wi-Fi connection agent module is also used to Acquiring the parameter information, where the parameter information includes at least one of the following: the IP address of the sending terminal, a device identification ID, and a device type.

可选地,所述第一Wi-Fi连接代理模块,还用于在根据所述连接请求与所述接收终端建立无线保真Wi-Fi连接之后,停止通过声码的方式向所述接收终端发送所述参数信息,并释放在传输过程中所占用的设备资源。Optionally, the first Wi-Fi connection agent module is further configured to stop sending voice messages to the receiving terminal after establishing a Wi-Fi Wi-Fi connection with the receiving terminal according to the connection request. Send the parameter information, and release the device resources occupied during the transmission.

根据本发明的又一个方面,提供了一种文件传输装置,应用于接收终端侧,包括:第二配对管理模块,用于通过声码的方式接收发送终端发送的用于与所述接收终端连接的参数信息;第二Wi-Fi连接代理模块,用于根据所述参数信息向所述发送连接请求;第二文件传输模块,用于在所述发送终端根据所述连接请求建立与所述接收终端的Wi-Fi连接后,接收所述发送终端传输的文件。According to yet another aspect of the present invention, a file transmission device is provided, which is applied to the receiving terminal side, and includes: a second pairing management module, configured to receive the information sent by the sending terminal through vocoder for connecting with the receiving terminal. parameter information; the second Wi-Fi connection agent module is used to send a connection request to the said parameter information; the second file transfer module is used to establish and receive the connection request according to the sending terminal After the Wi-Fi connection of the terminal is connected, the file transmitted by the sending terminal is received.

可选地,第二配对管理模块包括:接收单元,用于接收所述发送终端封装后的参数信息;处理单元,用于对封装后的参数信息进行解析,并提取所述参数信息。Optionally, the second pairing management module includes: a receiving unit, configured to receive the parameter information encapsulated by the sending terminal; a processing unit, configured to parse the encapsulated parameter information, and extract the parameter information.

可选地,所述第二Wi-Fi连接代理模块,还用于通过Wi-Fi直连接口向所述发送终端发送连接请求。Optionally, the second Wi-Fi connection agent module is further configured to send a connection request to the sending terminal through a Wi-Fi direct interface.

可选地,所述第二Wi-Fi连接代理模块,还用于在根据所述连接请求建立与所述接收终端的Wi-Fi连接之后,所述接收终端停止通过声码的方式接收所述发送终端发送的所述参数信息,并释放在传输过程中所占用的设备资源。Optionally, the second Wi-Fi connection agent module is further configured to, after establishing a Wi-Fi connection with the receiving terminal according to the connection request, the receiving terminal stops receiving the The parameter information sent by the terminal is sent, and the device resources occupied during the transmission are released.

根据本发明的又一个方面,提供了一种文件的传输系统,包括:上述应用于发送终端侧的文件传输装置,和上述应用于接收终端侧的文件传输装置。According to yet another aspect of the present invention, a file transmission system is provided, including: the above-mentioned file transmission device applied to the sending terminal side, and the above-mentioned file transmission device applied to the receiving terminal side.

本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:将本地用于与接收终端连接的参数信息通过声码的方式发送到接收终端;接收到接收终端响应于参数信息的连接请求;根据连接请求与接收终端建立无线保真Wi-Fi连接;基于Wi-Fi连接向接收终端传输文件。The embodiment of the invention also provides a storage medium. Optionally, in this embodiment, the above-mentioned storage medium may be set to store program codes for performing the following steps: sending the local parameter information used for connecting with the receiving terminal to the receiving terminal in voice code; receiving The receiving terminal responds to the connection request of the parameter information; establishes a wireless fidelity Wi-Fi connection with the receiving terminal according to the connection request; and transmits files to the receiving terminal based on the Wi-Fi connection.

通过本发明,发送终端与接收终端能够通过声码的方式与WI-FI相结合实现文件的传输,使得发送终端与接收终端无需设置热点认证属性和密码,进而无需对硬件进行改变,从而解决了相关技术中采用近距离文件传输的方式需要对终端硬件进行改进导致成本增加的问题,达到了节约成本以及提升用户体验的效果。Through the present invention, the sending terminal and the receiving terminal can realize the transmission of files through the combination of voice code and WI-FI, so that the sending terminal and the receiving terminal do not need to set the hotspot authentication attribute and password, and then do not need to change the hardware, thus solving the problem of In the related art, the method of short-distance file transmission needs to improve the terminal hardware, which leads to the problem of increased cost, which achieves the effect of saving cost and improving user experience.

附图说明Description of drawings

此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention and constitute a part of the application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations to the present invention. In the attached picture:

图1是根据本发明实施例的文件传输方法的流程图一;FIG. 1 is a flowchart one of a file transfer method according to an embodiment of the present invention;

图2是根据本发明实施例的文件传输方法流程图二;FIG. 2 is a second flowchart of a file transfer method according to an embodiment of the present invention;

图3是根据本发明实施例的文件传输装置的结构示意图一;FIG. 3 is a first structural schematic diagram of a file transmission device according to an embodiment of the present invention;

图4是根据本发明实施例的文件传输装置的结构示意图二;FIG. 4 is a second structural schematic diagram of a file transmission device according to an embodiment of the present invention;

图5是根据本发明实施例的直连认证管理模块状态迁移示意图;Fig. 5 is a schematic diagram of state transition of a direct connection authentication management module according to an embodiment of the present invention;

图6是根据本实施例的通过声码的方式来实现快捷文件传输的方法的流程图。Fig. 6 is a flow chart of a method for realizing quick file transmission through voice coding according to this embodiment.

具体实施方式Detailed ways

下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Hereinafter, the present invention will be described in detail with reference to the drawings and examples. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first" and "second" in the description and claims of the present invention and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence.

实施例1Example 1

在本实施例中提供了一种文件传输方法,图1是根据本发明实施例的文件传输方法的流程图一,如图1所示,该流程包括如下步骤:In this embodiment, a file transfer method is provided. FIG. 1 is a flowchart 1 of a file transfer method according to an embodiment of the present invention. As shown in FIG. 1 , the process includes the following steps:

步骤S102:发送终端将本地用于与接收终端连接的参数信息通过声码的方式发送到接收终端;Step S102: the sending terminal sends the locally used parameter information for connecting with the receiving terminal to the receiving terminal through vocoder;

步骤S104:发送终端接收到接收终端响应于参数信息的连接请求;Step S104: the sending terminal receives a connection request from the receiving terminal in response to the parameter information;

步骤S106:发送终端根据连接请求与接收终端建立无线保真Wi-Fi连接;Step S106: the sending terminal establishes a wireless fidelity Wi-Fi connection with the receiving terminal according to the connection request;

步骤S108:发送终端基于Wi-Fi连接向接收终端传输文件。Step S108: the sending terminal transmits the file to the receiving terminal based on the Wi-Fi connection.

通过本实施例的上述步骤S102至步骤S108,发送终端与接收终端能够通过声码的方式与Wi-Fi相结合实现文件的传输,使得发送终端与接收终端无需设置热点认证属性和密码,进而无需对硬件进行改变,从而解决了相关技术中采用近距离文件传输的方式需要对终端硬件进行改进导致成本增加的问题,达到了节约成本以及提升用户体验的效果。Through the above-mentioned steps S102 to S108 of this embodiment, the sending terminal and the receiving terminal can realize file transmission through the combination of vocoder and Wi-Fi, so that the sending terminal and the receiving terminal do not need to set hotspot authentication attributes and passwords, and thus do not need to The hardware is changed, so as to solve the problem of increasing the cost due to the improvement of the terminal hardware in the method of short-distance file transmission in the related technology, and achieve the effect of cost saving and user experience improvement.

在本实施例的可选实施方式中,本实施例中的S102发送终端将本地用于与接收终端连接的参数信息通过声码的方式发送到接收终端方式包括:In an optional implementation of this embodiment, the S102 sending terminal in this embodiment sends the local parameter information used to connect with the receiving terminal to the receiving terminal through vocoder, including:

步骤S102-1:发送终端通过指定格式对参数信息进行封装;Step S102-1: The sending terminal encapsulates the parameter information in a specified format;

步骤S102-2:发送终端将封装后的参数信息通过音频资源循环向接收终端发送。Step S102-2: The sending terminal sends the encapsulated parameter information to the receiving terminal in a loop through audio resources.

需要说明的是,在步骤S102之前,发送终端与接收终端都需要开启声码的方式,以便完成初始化。It should be noted that, before step S102, both the sending terminal and the receiving terminal need to enable the vocoder mode, so as to complete the initialization.

在本实施例的另一个可选实施方式中,在本实施例的步骤S02发送终端将本地用于与接收终端连接的参数信息通过声码的方式发送到接收终端之前,本实施例的方法还可以包括:发送终端获取参数信息,其中,参数信息包括以下至少之一:发送终端的IP地址、设备标识ID、设备类型。In another optional implementation manner of this embodiment, before step S02 of this embodiment, the sending terminal sends the parameter information locally used to connect with the receiving terminal to the receiving terminal through vocoder, the method of this embodiment further It may include: the sending terminal acquires parameter information, where the parameter information includes at least one of the following: an IP address of the sending terminal, a device identification ID, and a device type.

需要说明的是,在获取该参数信息之前需要开启Wi-Fi直连。It should be noted that the Wi-Fi direct connection needs to be enabled before obtaining the parameter information.

在本实施例的另一个可选实施方式中,在本实施例的S104发送终端根据连接请求与接收终端建立无线保真Wi-Fi连接之后,本实施例的方法还可以包括:发送终端停止通过声码的方式向接收终端发送参数信息,并释放在传输过程中所占用的设备资源。In another optional implementation manner of this embodiment, after S104 of this embodiment, the sending terminal establishes a wireless fidelity Wi-Fi connection with the receiving terminal according to the connection request, the method of this embodiment may further include: the sending terminal stops passing Send parameter information to the receiving terminal in the way of voice code, and release the equipment resources occupied during the transmission process.

需要说明的是,在具体的应用场景中,发送终端基于扬声器通过声码的方式向接收终端的mic进行数据传输;其中,声码传输在激活时,需要占用音频设备,在停止传输时,对应的就需要释放这些设备资源。It should be noted that, in a specific application scenario, the sending terminal transmits data to the mic of the receiving terminal through vocode based on the speaker; among them, when the vocode transmission is activated, the audio device needs to be occupied, and when the transmission is stopped, the corresponding It is necessary to release these device resources.

需要说明的是,上述发送终端与接收终端建立连接的过程相当于一次握手认证;在该握手认证完成后,发送终端与接收终端建立连接;因此,在发送终端与接收终端建立连接后双方需要更新连接状态。It should be noted that the process of establishing a connection between the sending terminal and the receiving terminal is equivalent to a handshake authentication; after the handshake authentication is completed, the sending terminal establishes a connection with the receiving terminal; therefore, after the connection between the sending terminal and the receiving terminal is established, both parties need to update Connection Status.

实施例二Embodiment two

本实施例提供了一种文件传输方法,图2是根据本发明实施例的文件传输方法流程图二,如图2所示,该方法的步骤包括:This embodiment provides a file transfer method. FIG. 2 is a flowchart 2 of the file transfer method according to an embodiment of the present invention. As shown in FIG. 2 , the steps of the method include:

步骤S202:接收终端通过声码的方式接收发送终端发送的用于与接收终端连接的参数信息;Step S202: the receiving terminal receives the parameter information for connecting with the receiving terminal sent by the sending terminal through vocoder;

步骤S204:接收终端根据参数信息向发送连接请求;Step S204: The receiving terminal sends a connection request to the server according to the parameter information;

步骤S206:在发送终端根据连接请求建立与接收终端的Wi-Fi连接后,接收终端接收发送终端传输的文件。Step S206: After the sending terminal establishes a Wi-Fi connection with the receiving terminal according to the connection request, the receiving terminal receives the file transmitted by the sending terminal.

需要说明的是,本实施例是从接收终端进行描述的,与上述实施例一中从发送终端是对应的。另外,由于发送终端在发送文件的情况下是发送终端,而在接收文件的情况下就是接收终端了。因此,发送终端也可以接收终端;也就是说,上述接收终端所执行的操作,发送终端也是可以执行的,而发送终端所执行的操作,接收终端也是可以执行的。It should be noted that this embodiment is described from the receiving terminal, which corresponds to the slave sending terminal in Embodiment 1 above. In addition, since the sending terminal is the sending terminal in the case of sending a file, it is the receiving terminal in the case of receiving a file. Therefore, the sending terminal can also be the receiving terminal; that is, the above operations performed by the receiving terminal can also be performed by the sending terminal, and the operations performed by the sending terminal can also be performed by the receiving terminal.

在本实施例的一个可选实施方式中,步骤S202接收终端通过声码的方式接收发送终端发送的用于与接收终端连接的参数信息的方式,可以包括:In an optional implementation of this embodiment, the manner in which the receiving terminal in step S202 receives the parameter information for connecting with the receiving terminal sent by the sending terminal through voice coding may include:

步骤S202-1:接收终端接收发送终端封装后的参数信息;Step S202-1: the receiving terminal receives the parameter information encapsulated by the sending terminal;

步骤S202-2:接收终端对封装后的参数信息进行解析,并提取参数信息。Step S202-2: The receiving terminal parses the encapsulated parameter information, and extracts the parameter information.

在本实施例的另一个可选实施方式中,接收终端根据参数信息向发送连接请求包括;接收终端通过Wi-Fi直连接口向发送终端发送连接请求。In another optional implementation manner of this embodiment, the receiving terminal sending the connection request to the sending terminal according to the parameter information includes: the receiving terminal sending the connection request to the sending terminal through the Wi-Fi direct interface.

在本实施例的再一个可选实施方式中,在发送终端根据连接请求建立与接收终端的Wi-Fi连接之后,本实施例的方法还可以包括:接收终端停止通过声码的方式接收发送终端发送的参数信息,并释放在传输过程中所占用的设备资源。In yet another optional implementation manner of this embodiment, after the sending terminal establishes a Wi-Fi connection with the receiving terminal according to the connection request, the method of this embodiment may further include: the receiving terminal stops receiving the sending terminal through voice code. Send the parameter information and release the device resources occupied during the transmission.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is Better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to enable a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in various embodiments of the present invention.

实施例三Embodiment Three

在本实施例中还提供了一种文件传输装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a file transmission device is also provided, which is used to implement the above embodiments and preferred implementation modes, and what has already been described will not be repeated. As used below, the term "module" may be a combination of software and/or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.

图3是根据本发明实施例的文件传输装置的结构示意图一,该装置应用于发送终端侧,如图3所示,该装置包括:FIG. 3 is a schematic structural diagram of a file transmission device according to an embodiment of the present invention. The device is applied to the sending terminal side. As shown in FIG. 3 , the device includes:

第一配对管理模块32,用于将本地用于与接收终端连接的参数信息通过声码的方式发送到接收终端;The first pairing management module 32 is configured to send the local parameter information used to connect with the receiving terminal to the receiving terminal through vocoder;

直连认证模块34,与第一配对管理模块32耦合连接,用于接收到接收终端响应于参数信息的连接请求;The direct connection authentication module 34 is coupled with the first pairing management module 32, and is used to receive a connection request from the receiving terminal in response to the parameter information;

第一Wi-Fi连接代理模块36,与直连认证模块34耦合连接,用于根据连接请求与接收终端建立Wi-Fi连接;The first Wi-Fi connection agent module 36 is coupled and connected with the direct connection authentication module 34, and is used to establish a Wi-Fi connection with the receiving terminal according to the connection request;

第一文件传输模块38,与第一Wi-Fi连接代理模块36耦合连接,用于基于WI-FI连接向接收终端传输文件。The first file transmission module 38 is coupled with the first Wi-Fi connection agent module 36, and is used for transmitting files to the receiving terminal based on the WI-FI connection.

可选地,该第一配对管理模块包括:封装单元,用于通过指定格式对参数信息进行封装;发送单元,与封装单元耦合连接,用于将封装后的参数信息通过音频资源循环向接收终端发送。Optionally, the first pairing management module includes: an encapsulation unit, configured to encapsulate parameter information in a specified format; a sending unit, coupled to the encapsulation unit, for circulating the encapsulated parameter information to the receiving terminal through audio resources send.

可选地,在第一配对管理模块32将本地用于与接收终端连接的参数信息通过声码的方式发送到接收终端之前,该第一Wi-Fi连接代理模块36,还用于获取参数信息,其中,参数信息包括以下至少之一:发送终端的IP地址、设备标识ID、设备类型。Optionally, before the first pairing management module 32 sends the local parameter information used to connect with the receiving terminal to the receiving terminal through voice code, the first Wi-Fi connection proxy module 36 is also used to obtain the parameter information , wherein the parameter information includes at least one of the following: IP address of the sending terminal, device identification ID, and device type.

可选地,第一Wi-Fi连接代理模块36,还用于在根据连接请求与接收终端建立无线保真Wi-Fi连接之后,停止通过声码的方式向接收终端发送参数信息,并释放在传输过程中所占用的设备资源。Optionally, the first Wi-Fi connection proxy module 36 is also configured to stop sending parameter information to the receiving terminal in the form of voice code after establishing a Wi-Fi Wi-Fi connection with the receiving terminal according to the connection request, and release the Device resources occupied during transmission.

实施例四Embodiment four

图4是根据本发明实施例的文件传输装置的结构示意图二,该装置应用于接收终端侧,如图4所示,该装置包括:FIG. 4 is a second structural schematic diagram of a file transmission device according to an embodiment of the present invention. The device is applied to the receiving terminal side. As shown in FIG. 4 , the device includes:

第二配对管理模块42,用于通过声码的方式接收发送终端发送的用于与接收终端连接的参数信息;The second pairing management module 42 is configured to receive the parameter information sent by the sending terminal for connecting with the receiving terminal through vocoder;

第二Wi-Fi连接代理模块44,与第二配对管理模块42耦合连接,用于根据参数信息向发送连接请求;The second Wi-Fi connection proxy module 44 is coupled and connected with the second pairing management module 42, and is used to send a connection request to China according to the parameter information;

第二文件传输模块46,与第二Wi-Fi连接代理模块44耦合连接,用于在发送终端根据连接请求建立与接收终端的Wi-Fi连接后,接收发送终端传输的文件。The second file transfer module 46 is coupled with the second Wi-Fi connection proxy module 44, and is used for receiving the file transmitted by the sending terminal after the sending terminal establishes a Wi-Fi connection with the receiving terminal according to the connection request.

需要说明的是,本实施例中的装置应用于接收终端侧,与上述实施例三中应用于发送终端侧装置对应。另外,由于发送终端在发送文件的情况下是发送终端,而在接收文件的情况下就是接收终端了。因此,发送终端也可以接收终端;也就是说,上述应用于接收终端的装置也有可能是应用于发送终端的装置,同样的,应用于发送终端的装置也有可能是应用于接收终端的装置。It should be noted that the device in this embodiment is applied to the receiving terminal side, and corresponds to the device applied to the sending terminal side in Embodiment 3 above. In addition, since the sending terminal is the sending terminal in the case of sending a file, it is the receiving terminal in the case of receiving a file. Therefore, the sending terminal may also be the receiving terminal; that is, the above-mentioned device applied to the receiving terminal may also be the device applied to the sending terminal, and similarly, the device applied to the sending terminal may also be the device applied to the receiving terminal.

因此,如果该装置既可以是发送方也可以接收方,那么实施例三中的第一配对管理模块32与本实施例中的第二配对管理模块42可以是同一模块;相同的理由,上述实施例三中的第一Wi-Fi连接代理模块36与第二Wi-Fi连接代理模块44,以及第一文件传输模块38与第二文件传输模块46均可以是同一模块。Therefore, if the device can be both a sender and a receiver, then the first pairing management module 32 in the third embodiment and the second pairing management module 42 in this embodiment can be the same module; The first Wi-Fi connection proxy module 36 and the second Wi-Fi connection proxy module 44 in Example 3, as well as the first file transfer module 38 and the second file transfer module 46 may be the same module.

当然,如果需要在同一终端可以将上述模块分开设置,作为单独的模块。Of course, if necessary, the above modules can be set separately on the same terminal as separate modules.

可选地,该第二配对管理模块42包括:接收单元,用于接收发送终端封装后的参数信息;处理单元,与接收单元耦合连接,用于对封装后的参数信息进行解析,并提取参数信息。Optionally, the second pairing management module 42 includes: a receiving unit, configured to receive parameter information encapsulated by the sending terminal; a processing unit, coupled to the receiving unit, configured to parse the encapsulated parameter information, and extract parameter information information.

可选地,第二Wi-Fi连接代理模块44,还用于通过Wi-Fi直连接口向发送终端发送连接请求。Optionally, the second Wi-Fi connection agent module 44 is also configured to send a connection request to the sending terminal through the Wi-Fi direct interface.

可选地,第二Wi-Fi连接代理模块44,还用于在根据连接请求建立与接收终端的Wi-Fi连接之后,接收终端停止通过声码的方式接收发送终端发送的参数信息,并释放在传输过程中所占用的设备资源。Optionally, the second Wi-Fi connection agent module 44 is also configured to stop receiving the parameter information sent by the sending terminal by the receiving terminal in the form of voice code after establishing the Wi-Fi connection with the receiving terminal according to the connection request, and release Device resources occupied during transmission.

实施例五Embodiment five

本实施例提供了一种文件的传输系统,该系统包括:实施例三中应用于发送终端侧的文件传输装置,和实施例四中应用于接收终端侧的文件传输装置。This embodiment provides a file transmission system, and the system includes: the file transmission device applied to the sending terminal side in Embodiment 3, and the file transmission device applied to the receiving terminal side in Embodiment 4.

需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that the above-mentioned modules can be realized by software or hardware. For the latter, it can be realized by the following methods, but not limited to this: the above-mentioned modules are all located in the same processor; or, the above-mentioned modules can be combined in any combination The forms of are located in different processors.

为使本发明的结构和优点更加清楚,下面将结合附图对本发明的结构作进一步地描述。In order to make the structure and advantages of the present invention clearer, the structure of the present invention will be further described below in conjunction with the accompanying drawings.

下面通过本发明的可选实施例对本发明的上述实施例一至四进行举例说明;The above-mentioned embodiments 1 to 4 of the present invention are illustrated below through optional embodiments of the present invention;

在本可选实施例中以Android平台为例,本可选实施例提供了一种基于声码和Wi-Fi直连的快捷文件传输装置,该装置从软件系统层面可以分为应用层和框架层(或者叫系统层)。In this optional embodiment, the Android platform is taken as an example. This optional embodiment provides a fast file transfer device based on voice code and Wi-Fi direct connection. The device can be divided into an application layer and a framework from the software system level. layer (or system layer).

其中,该装置在应用层中的功能模块包括:声码开关控制模块、配对管理模块(相当于上实施例三和四中的第一配对管理模块和第二配对管理模块)、Wi-Fi连接代理模块(相当于上实施例三和四中的第一Wi-Fi连接代理模块和第二Wi-Fi连接代理模块)、文件传输管理模块(相当于上实施例三和四中的第一文件传输管理模块和第二文件传输管理模块)。Wherein, the functional modules of the device in the application layer include: voice code switch control module, pairing management module (equivalent to the first pairing management module and the second pairing management module in the third and fourth embodiments above), Wi-Fi connection Proxy module (equivalent to the first Wi-Fi connection proxy module and the second Wi-Fi connection proxy module in the third and fourth embodiments above), file transfer management module (equivalent to the first file in the third and fourth embodiments above) transfer management module and a second file transfer management module).

该装置在框架层中的功能模块包括:直连接口管理模块、直连认证管理模块(相当于上述施例三和四中直连认证管理模块);其中,直接认证管理模块是在已有的软件系统基础上,结合声码配对的接口方案设计,加以扩展修改。The functional modules of the device in the frame layer include: a direct connection interface management module, a direct connection authentication management module (equivalent to the direct connection authentication management module in the third and fourth above-mentioned embodiments); wherein, the direct authentication management module is in the existing On the basis of the software system, combined with the design of the interface scheme of voice code pairing, it is extended and modified.

下面将对本实施例中的上述模块进行说明;The above modules in this embodiment will be described below;

声码开关控制模块,用于开启和关闭声码快捷配对操作;其中,在完成配对过程后自动终止相关流程并关闭相关外设,在配对过程中,如果需要也可以手动关闭,也即取消快捷配对操作。The voice code switch control module is used to open and close the voice code shortcut pairing operation; wherein, after the pairing process is completed, the related process is automatically terminated and the related peripherals are turned off. During the pairing process, if necessary, it can also be manually closed, that is, the shortcut pairing operation.

快捷配对管理模块,用于区分发送终端和接收终端;其中,对于发送终端,用于获取本机Wi-Fi直连信息(包括地址、id、设备类型等),并添加直连的标识信息,封装打包后,通过扬声器循环发送出去。接收终端,用于打开麦克风设备,监听收到的声波数据,匹配直连的标识信息并解析相关参数,得到直连信息。The shortcut pairing management module is used to distinguish the sending terminal and the receiving terminal; wherein, for the sending terminal, it is used to obtain the local Wi-Fi direct connection information (including address, id, device type, etc.), and add the identification information of the direct connection, After the package is packaged, it is sent out on a loop through the loudspeaker. The receiving terminal is used to turn on the microphone device, monitor the received sound wave data, match the identification information of the direct connection and analyze the relevant parameters to obtain the direct connection information.

需要说明的是,发送终端可以是声码发送终端,发送终端和声码发送终端也可以是两个单独的终端。It should be noted that the sending terminal may be a vocode sending terminal, and the sending terminal and the vocode sending terminal may also be two separate terminals.

Wi-Fi连接代理模块,用于作为快捷配对管理模块与框架层的直连状态管理模块的桥梁,提供了对框架层的直连相关功能接口的调用,包括开始直连、结束直连、连接状态变化的广播消息的监听、以及设备信息的获取等,并将这些信息或者数据转给快捷配对管理模块,以继续后面流程。The Wi-Fi connection agent module is used as a bridge between the quick pairing management module and the direct connection state management module of the framework layer, and provides calls to the direct connection related functional interfaces of the framework layer, including starting direct connection, ending direct connection, connecting Monitoring of broadcast messages of state changes, acquisition of device information, etc., and transferring these information or data to the shortcut pairing management module to continue the subsequent process.

文件传输模块,用于提供基于Wi-Fi P2P技术的传输功能,主要包括收发控制管理、文件保存、进度提示等功能。其中收发控制管理由快捷配对管理模块直接调用。重点是,在完成快捷配对流程后,启动文件发送或者接收处理流程。The file transfer module is used to provide the transfer function based on Wi-Fi P2P technology, mainly including sending and receiving control management, file saving, progress prompt and other functions. The transceiver control management is directly invoked by the shortcut pairing management module. The point is, after completing the quick pairing process, start the file sending or receiving process.

框架层的直连接口管理模块,用于处理应用层Wi-Fi连接代理模块的接口调用,直连参数的预处理以及异常判断,连接状态的通知回调等。The direct connection interface management module of the framework layer is used to process the interface call of the Wi-Fi connection proxy module of the application layer, the preprocessing of the direct connection parameters, the abnormal judgment, the notification callback of the connection status, etc.

直连认证管理模块,用于在系统平台原有的管理基础上,结合应用层通过声码技术传入的数据,扩展了对应Wi-Fi P2P快捷连接的子状态,并修改了Wi-Fi P2P连接、握手认证相关的逻辑迁移关系。The direct connection authentication management module is used to expand the sub-state corresponding to Wi-Fi P2P quick connection and modify the Wi-Fi P2P Logical migration relationship related to connection and handshake authentication.

图5是根据本发明实施例的直连认证管理模块状态迁移示意图,如图5所示,这里新增的子状态,也即快捷握手认证状态,专门对应这种快捷连接模式。在Wi-Fi直连已经开启的情况下,直连接口管理模块传入参数(前面提到的地址、id、设备类型等),发起直连的请求,这时候会迁移到快捷握手认证状态,中间跳过了扫描设备、邀请连接与确认邀请的过程。另外一点,就是进入快捷握手认证状态时,直接指定分组角色(Wi-Fi直连协议中的GO或者GC),跳过常规的分组协商状态,使得整个连接状态的迁移过程更为快捷,连接过程更为快速,进一步优化了用户体验。Fig. 5 is a schematic diagram of the state transition of the direct connection authentication management module according to an embodiment of the present invention. As shown in Fig. 5, the newly added sub-state here, that is, the shortcut handshake authentication state, is specially corresponding to this shortcut connection mode. When the Wi-Fi direct connection has been enabled, the direct connection interface management module passes in parameters (address, id, device type, etc. mentioned above), initiates a direct connection request, and then migrates to the quick handshake authentication state. The process of scanning the device, inviting the connection and confirming the invitation is skipped in the middle. Another point is that when entering the quick handshake authentication state, directly specify the group role (GO or GC in the Wi-Fi Direct protocol), skip the regular group negotiation state, and make the migration process of the entire connection state faster, and the connection process It is faster and further optimizes the user experience.

下面将结合具体实施例对本可选实施例进行详细说明;图6是根据本实施例的通过声码的方式来实现快捷文件传输的方法的流程图,该流程包括软件初始化与发送终端、接收终端的快捷配对与认证逻辑处理流程,步骤包括:This optional embodiment will be described in detail below in conjunction with specific embodiments; FIG. 6 is a flow chart of a method for realizing fast file transmission by means of vocoder according to this embodiment, and the process includes software initialization and a sending terminal and a receiving terminal. The quick pairing and authentication logic processing flow, the steps include:

步骤S601:发送终端打开声码快捷传输开关,完成相关初始化,主要包括音频资源的获取。同时,接收终端也打开声码开关,完成初始化工作。Step S601: The sending terminal turns on the voice code shortcut transmission switch to complete related initialization, mainly including the acquisition of audio resources. At the same time, the receiving terminal also turns on the voice code switch to complete the initialization work.

步骤S602:发送终端通过配对管理模块先通过Wi-Fi连接代理模块打开Wi-Fi直连开关(如果已经打开则自动忽略),并获取本机直连所需的参数信息,包括地址、id和设备类型等。Step S602: The sending terminal first turns on the Wi-Fi direct connection switch through the Wi-Fi connection agent module through the pairing management module (if it is already turned on, it is automatically ignored), and obtains the parameter information required for the local direct connection, including address, id and device type, etc.

步骤S603:发送终端通过配对管理模块将获取到的参数信息,加上快捷配对标识信息后,使用声码的方式按特定格式进行封装,然后调用音频资源,循环发送。Step S603: The sending terminal adds the obtained parameter information through the pairing management module to the quick pairing identification information, encapsulates it in a specific format by voice code, calls the audio resource, and sends it cyclically.

步骤S604:接收终端通过配对管理模块启动连接监听处理后,很快接收到上述声码数据并对应解析,根据标识信息提取出直连对应的参数信息。Step S604: After the receiving terminal starts the connection monitoring process through the pairing management module, it quickly receives the above-mentioned vocoded data and analyzes it correspondingly, and extracts the parameter information corresponding to the direct connection according to the identification information.

步骤S605:接收终端通过配对管理模块通过Wi-Fi连接代理模块,传入直连所需参数,再调用框架层的直连接口,尝试和发送终端建立快捷连接。Step S605: The receiving terminal connects to the proxy module through the pairing management module through Wi-Fi, passes in the parameters required for direct connection, and then calls the direct connection interface of the framework layer to try to establish a quick connection with the sending terminal.

步骤S606:发送终端收到接收终端发来的直连请求,通过直连认证管理模块检查相关参数,并启动对应的状态迁移。Step S606: The sending terminal receives the direct connection request from the receiving terminal, checks relevant parameters through the direct connection authentication management module, and starts the corresponding state transition.

步骤S607:发送终端与接收终端,通过握手认证建立连接,之后更新连接状态。Step S607: The sending terminal and the receiving terminal establish a connection through handshake authentication, and then update the connection status.

步骤S608:发送终端与接收终端,通过应用层Wi-Fi连接代理模块收到框架层发送的连接状态变化的通知之后,通过配对管理模块结束本次快捷配对流程,然后通过声码开关控制模块对应释放设备资源。Step S608: After the sending terminal and the receiving terminal receive the connection status change notification sent by the framework layer through the application layer Wi-Fi connection proxy module, the pairing management module ends this quick pairing process, and then controls the module correspondence through the voice code switch. Release device resources.

步骤S609:发送终端,应用层文件传输模块,将待传输的文件信息以及相关标志数据发给接收终端,在用户确认后,通过已建立的连接,开始文件传输。Step S609: the sending terminal, the application layer file transfer module, sends the file information to be transferred and related flag data to the receiving terminal, and starts file transfer through the established connection after confirmation by the user.

本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:The embodiment of the invention also provides a storage medium. Optionally, in this embodiment, the above-mentioned storage medium may be configured to store program codes for performing the following steps:

S1,将本地用于与接收终端连接的参数信息通过声码的方式发送到接收终端;S1, sending the local parameter information used to connect with the receiving terminal to the receiving terminal through vocoder;

S2,接收到接收终端响应于参数信息的连接请求;S2, receiving a connection request from the receiving terminal in response to the parameter information;

S3,根据连接请求与接收终端建立无线保真Wi-Fi连接;S3, establishing a wireless fidelity Wi-Fi connection with the receiving terminal according to the connection request;

S4,基于Wi-Fi连接向接收终端传输文件。S4, transmitting the file to the receiving terminal based on the Wi-Fi connection.

可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the above-mentioned storage medium may include but not limited to: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk Various media that can store program codes such as discs or optical discs.

可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。Optionally, for specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and optional implementation manners, and details are not repeated in this embodiment.

显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the above-mentioned present invention can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network formed by multiple computing devices Alternatively, they may be implemented in program code executable by a computing device so that they may be stored in a storage device to be executed by a computing device, and in some cases in an order different from that shown here The steps shown or described are carried out, or they are separately fabricated into individual integrated circuit modules, or multiple modules or steps among them are fabricated into a single integrated circuit module for implementation. As such, the present invention is not limited to any specific combination of hardware and software.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (17)

1.一种文件传输方法,其特征在于,包括:1. A file transfer method, characterized in that, comprising: 发送终端将本地用于与接收终端连接的参数信息通过声码的方式发送到所述接收终端;The sending terminal sends the local parameter information used to connect with the receiving terminal to the receiving terminal through vocoder; 所述发送终端接收到所述接收终端响应于所述参数信息的连接请求;The sending terminal receives a connection request from the receiving terminal in response to the parameter information; 所述发送终端根据所述连接请求与所述接收终端建立无线保真Wi-Fi连接;The sending terminal establishes a wireless fidelity Wi-Fi connection with the receiving terminal according to the connection request; 所述发送终端基于所述Wi-Fi连接向所述接收终端传输文件。The sending terminal transmits the file to the receiving terminal based on the Wi-Fi connection. 2.根据权利要求1所述的方法,其特征在于,所述发送终端将本地用于与接收终端连接的参数信息通过声码的方式发送到所述接收终端包括:2. The method according to claim 1, wherein the transmitting terminal sends the parameter information locally used to connect with the receiving terminal to the receiving terminal through vocoder, comprising: 所述发送终端通过指定格式对所述参数信息进行封装;The sending terminal encapsulates the parameter information in a specified format; 所述发送终端将封装后的所述参数信息通过音频资源循环向所述接收终端发送。The sending terminal sends the encapsulated parameter information to the receiving terminal in a loop through audio resources. 3.根据权利要求1或2所述的方法,其特征在于,在发送终端将本地用于与接收终端连接的参数信息通过声码的方式发送到所述接收终端之前,所述方法还包括:3. The method according to claim 1 or 2, characterized in that, before the sending terminal transmits the local parameter information used to connect with the receiving terminal to the receiving terminal through vocoder, the method further comprises: 所述发送终端获取所述参数信息,其中,所述参数信息包括以下至少之一:所述发送终端的IP地址、设备标识ID、设备类型。The sending terminal acquires the parameter information, where the parameter information includes at least one of the following: an IP address of the sending terminal, a device identification ID, and a device type. 4.根据权利要求1或2所述的方法,其特征在于,在所述发送终端根据所述连接请求与所述接收终端建立无线保真Wi-Fi连接之后,所述方法还包括:4. The method according to claim 1 or 2, wherein, after the sending terminal establishes a wireless fidelity Wi-Fi connection with the receiving terminal according to the connection request, the method further comprises: 所述发送终端停止通过声码的方式向所述接收终端发送所述参数信息的操作,并释放在传输过程中所占用的设备资源。The sending terminal stops the operation of sending the parameter information to the receiving terminal through vocoding, and releases the equipment resources occupied during the transmission. 5.一种文件传输方法,其特征在于,包括:5. A file transfer method, characterized in that, comprising: 接收终端通过声码的方式接收发送终端发送的用于与所述接收终端连接的参数信息;The receiving terminal receives the parameter information for connecting with the receiving terminal sent by the sending terminal through vocoder; 所述接收终端根据所述参数信息向所述发送连接请求;The receiving terminal sends a connection request to the terminal according to the parameter information; 在所述发送终端根据所述连接请求建立与所述接收终端的WI-FI连接后,所述接收终端接收所述发送终端传输的文件。After the sending terminal establishes a WI-FI connection with the receiving terminal according to the connection request, the receiving terminal receives the file transmitted by the sending terminal. 6.根据权利要求5所述的方法,其特征在于,所述接收终端通过声码的方式接收发送终端发送的用于与所述接收终端连接的参数信息包括:6. The method according to claim 5, wherein the receiving terminal receives the parameter information for connecting with the receiving terminal sent by the sending terminal through vocoder: 所述接收终端接收所述发送终端封装后的参数信息;The receiving terminal receives the parameter information encapsulated by the sending terminal; 所述接收终端对封装后的参数信息进行解析,并提取所述参数信息。The receiving terminal parses the encapsulated parameter information, and extracts the parameter information. 7.根据权利要求6所述的方法,其特征在于,所述接收终端根据所述参数信息向所述发送连接请求包括:7. The method according to claim 6, wherein the sending of the connection request to the receiving terminal according to the parameter information comprises: 所述接收终端通过Wi-Fi直连接口向所述发送终端发送连接请求。The receiving terminal sends a connection request to the sending terminal through the Wi-Fi direct interface. 8.根据权利要求5至7任一项所述的方法,其特征在于,在所述发送终端根据所述连接请求建立与所述接收终端的Wi-Fi连接之后,所述方法还包括:8. The method according to any one of claims 5 to 7, wherein after the sending terminal establishes a Wi-Fi connection with the receiving terminal according to the connection request, the method further comprises: 所述接收终端停止通过声码的方式接收所述发送终端发送的所述参数信息,并释放在传输过程中所占用的设备资源。The receiving terminal stops receiving the parameter information sent by the sending terminal through vocoding, and releases device resources occupied during the transmission. 9.一种文件传输装置,应用于发送终端侧,其特征在于,包括:9. A file transfer device, applied to the sending terminal side, characterized in that it comprises: 第一配对管理模块,用于将本地用于与接收终端连接的参数信息通过声码的方式发送到所述接收终端;The first pairing management module is configured to send the local parameter information used to connect with the receiving terminal to the receiving terminal through vocoder; 直连认证模块,用于接收到所述接收终端响应于所述参数信息的连接请求;A direct connection authentication module, configured to receive a connection request from the receiving terminal in response to the parameter information; 第一Wi-Fi连接代理模块,用于根据所述连接请求与所述接收终端建立Wi-Fi连接;A first Wi-Fi connection agent module, configured to establish a Wi-Fi connection with the receiving terminal according to the connection request; 第一文件传输模块,用于基于所述Wi-Fi连接向所述接收终端传输文件。A first file transmission module, configured to transmit files to the receiving terminal based on the Wi-Fi connection. 10.根据权利要求9所述的装置,其特征在于,所述第一配对管理模块包括:10. The device according to claim 9, wherein the first pairing management module comprises: 封装单元,用于通过指定格式对所述参数信息进行封装;An encapsulation unit, configured to encapsulate the parameter information in a specified format; 发送单元,用于将封装后的所述参数信息通过音频资源循环向所述接收终端发送。A sending unit, configured to send the encapsulated parameter information to the receiving terminal in a loop through audio resources. 11.根据权利要求9或10所述的装置,其特征在于,在所述第一配对管理模块将本地用于与接收终端连接的参数信息通过声码的方式发送到所述接收终端之前,11. The device according to claim 9 or 10, characterized in that, before the first pairing management module sends the parameter information locally used for connecting with the receiving terminal to the receiving terminal in the form of vocoder, 所述第一Wi-Fi连接代理模块,还用于获取所述参数信息,其中,所述参数信息包括以下至少之一:所述发送终端的IP地址、设备标识ID、设备类型。The first Wi-Fi connection proxy module is further configured to obtain the parameter information, wherein the parameter information includes at least one of the following: IP address of the sending terminal, device identification ID, and device type. 12.根据权利要求9或10所述的装置,其特征在于,12. The device according to claim 9 or 10, characterized in that, 所述第一Wi-Fi连接代理模块,还用于在根据所述连接请求与所述接收终端建立无线保真Wi-Fi连接之后,停止通过声码的方式向所述接收终端发送所述参数信息,并释放在传输过程中所占用的设备资源。The first Wi-Fi connection proxy module is further configured to stop sending the parameters to the receiving terminal in the form of voice code after establishing a Wi-Fi Wi-Fi connection with the receiving terminal according to the connection request information, and release the device resources occupied during the transmission process. 13.一种文件传输装置,应用于接收终端侧,其特征在于,包括:13. A file transfer device, applied to the receiving terminal side, characterized in that it comprises: 第二配对管理模块,用于通过声码的方式接收发送终端发送的用于与所述接收终端连接的参数信息;The second pairing management module is used to receive the parameter information sent by the sending terminal for connecting with the receiving terminal through vocoder; 第二Wi-Fi连接代理模块,用于根据所述参数信息向所述发送连接请求;The second Wi-Fi connection proxy module is configured to send a connection request to the said parameter information; 第二文件传输模块,用于在所述发送终端根据所述连接请求建立与所述接收终端的WI-FI连接后,接收所述发送终端传输的文件。The second file transmission module is configured to receive the file transmitted by the sending terminal after the sending terminal establishes a WI-FI connection with the receiving terminal according to the connection request. 14.根据权利要求13所述的装置,其特征在于,第二配对管理模块包括:14. The device according to claim 13, wherein the second pairing management module comprises: 接收单元,用于接收所述发送终端封装后的参数信息;a receiving unit, configured to receive the parameter information encapsulated by the sending terminal; 处理单元,用于对封装后的参数信息进行解析,并提取所述参数信息。The processing unit is configured to parse the encapsulated parameter information and extract the parameter information. 15.根据权利要求13所述的装置,其特征在于,15. The apparatus of claim 13, wherein: 所述第二Wi-Fi连接代理模块,还用于通过Wi-Fi直连接口向所述发送终端发送连接请求。The second Wi-Fi connection agent module is further configured to send a connection request to the sending terminal through a Wi-Fi direct interface. 16.根据权利要求13至15任一项所述的装置,其特征在于,所述第二Wi-Fi连接代理模块,还用于在根据所述连接请求建立与所述接收终端的Wi-Fi连接之后,所述接收终端停止通过声码的方式接收所述发送终端发送的所述参数信息,并释放在传输过程中所占用的设备资源。16. The device according to any one of claims 13 to 15, wherein the second Wi-Fi connection proxy module is further configured to establish a Wi-Fi connection with the receiving terminal according to the connection request After the connection, the receiving terminal stops receiving the parameter information sent by the sending terminal through vocoding, and releases the device resources occupied during the transmission. 17.一种文件的传输系统,其特征在于,包括:所述权利要求9至12任一项的应用于发送终端侧的文件传输装置,和所述权利要求13至16任一项的应用于接收终端侧的文件传输装置。17. A file transmission system, characterized in that it comprises: the file transmission device applied to the sending terminal side according to any one of claims 9 to 12, and the device applied to the sending terminal side according to any one of claims 13 to 16 A file transmission device on the receiving terminal side.
CN201710113909.1A 2017-02-28 2017-02-28 Document transmission method, apparatus and system Pending CN108696547A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710113909.1A CN108696547A (en) 2017-02-28 2017-02-28 Document transmission method, apparatus and system
PCT/CN2017/115682 WO2018157646A1 (en) 2017-02-28 2017-12-12 File transmission method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710113909.1A CN108696547A (en) 2017-02-28 2017-02-28 Document transmission method, apparatus and system

Publications (1)

Publication Number Publication Date
CN108696547A true CN108696547A (en) 2018-10-23

Family

ID=63370640

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710113909.1A Pending CN108696547A (en) 2017-02-28 2017-02-28 Document transmission method, apparatus and system

Country Status (2)

Country Link
CN (1) CN108696547A (en)
WO (1) WO2018157646A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111372325A (en) * 2020-02-21 2020-07-03 华为技术有限公司 Method and device for establishing Wi-Fi point-to-point connection

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114826591A (en) * 2022-05-26 2022-07-29 京东方科技集团股份有限公司 Cross-device data transmission method, system and terminal

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103974457A (en) * 2014-04-09 2014-08-06 歌尔声学股份有限公司 Connecting method of wireless devices, wireless device and wireless communication system
CN104702678A (en) * 2015-02-13 2015-06-10 腾讯科技(深圳)有限公司 Document transmission method and device
CN104883720A (en) * 2015-05-29 2015-09-02 北京奇虎科技有限公司 Object network access method, object network access guiding and control methods, and corresponding terminals
CN105144757A (en) * 2013-04-26 2015-12-09 三星电子株式会社 Communication service in communication modes
WO2016000560A1 (en) * 2014-06-30 2016-01-07 Tencent Technology (Shenzhen) Company Limited File transmission method, file transmission apparatus, and file transmission system
CN105517111A (en) * 2015-12-10 2016-04-20 广东欧珀移动通信有限公司 Method and device for connecting equipment to network

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105144757A (en) * 2013-04-26 2015-12-09 三星电子株式会社 Communication service in communication modes
CN103974457A (en) * 2014-04-09 2014-08-06 歌尔声学股份有限公司 Connecting method of wireless devices, wireless device and wireless communication system
WO2016000560A1 (en) * 2014-06-30 2016-01-07 Tencent Technology (Shenzhen) Company Limited File transmission method, file transmission apparatus, and file transmission system
CN104702678A (en) * 2015-02-13 2015-06-10 腾讯科技(深圳)有限公司 Document transmission method and device
CN104883720A (en) * 2015-05-29 2015-09-02 北京奇虎科技有限公司 Object network access method, object network access guiding and control methods, and corresponding terminals
CN105517111A (en) * 2015-12-10 2016-04-20 广东欧珀移动通信有限公司 Method and device for connecting equipment to network

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111372325A (en) * 2020-02-21 2020-07-03 华为技术有限公司 Method and device for establishing Wi-Fi point-to-point connection

Also Published As

Publication number Publication date
WO2018157646A1 (en) 2018-09-07

Similar Documents

Publication Publication Date Title
TWI532392B (en) Access control for wireless docking
TWI527488B (en) Wireless docking architecture
TWI535325B (en) Utilization and configuration of wireless docking environments
WO2017215215A1 (en) Method for switching downloading mode, and control method and control system therefor
EP3005762B1 (en) Wireless docking
WO2019184658A1 (en) Profile switching method and apparatus, and mobile terminal
WO2021017894A1 (en) Method for using remote sim module, and electronic apparatus
CN108810123A (en) The method and apparatus for opening mobile cellular network service
US20140010220A1 (en) Method and apparatus for enabling wireless dockees to find and dock with a wireless docking host being used by another dockee
CN108696547A (en) Document transmission method, apparatus and system
JP2023552243A (en) Method and device for transmitting user identifiers
CN105357771A (en) Connection establishing method and user terminal
CN113766435B (en) Method, device and storage medium for establishing communication group
US20250080956A1 (en) Call Forwarding Enhancements in a Device-to-Device Environment
US20250080955A1 (en) Call Forwarding Enhancements
CN110049459B (en) Call method, device and computer storage medium
WO2023227023A1 (en) Service implementation method and apparatus, communication device, and storage medium
WO2024212532A1 (en) Call method and terminal
US8786661B2 (en) Videophone input apparatus
WO2016183943A1 (en) Wireless local area network access method, terminal and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20181023

RJ01 Rejection of invention patent application after publication