WO2015184689A1 - 基于无线通信的文件分享方法及无线通信终端 - Google Patents

基于无线通信的文件分享方法及无线通信终端 Download PDF

Info

Publication number
WO2015184689A1
WO2015184689A1 PCT/CN2014/085109 CN2014085109W WO2015184689A1 WO 2015184689 A1 WO2015184689 A1 WO 2015184689A1 CN 2014085109 W CN2014085109 W CN 2014085109W WO 2015184689 A1 WO2015184689 A1 WO 2015184689A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
wireless communication
device name
communication connection
dimensional code
Prior art date
Application number
PCT/CN2014/085109
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 WO2015184689A1 publication Critical patent/WO2015184689A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices

Definitions

  • the present invention relates to the field of wireless communication technologies, and in particular, to a file sharing method and a wireless communication terminal based on wireless communication.
  • BACKGROUND With the popularization of mobile smart devices, the demand for sharing and transferring files between devices is increasing. It is necessary to establish a file sharing channel conveniently and conveniently. Users of mobile smart devices not only value the convenience of establishing connections between the two mobile phones, but also pay more and more attention to the efficiency of transferring files between devices.
  • the technical problem to be solved by the present invention is to provide a file sharing method based on wireless communication and a wireless communication terminal, which overcomes the technical obstacles for establishing a wireless connection during file sharing in the prior art, and satisfies the user's need for fast file sharing between devices. .
  • a file sharing method based on wireless communication including:
  • the first terminal generates a two-dimensional code image corresponding to the device name, and the second terminal scans to obtain the device name of the first terminal used to establish the wireless communication connection;
  • the first terminal establishes a wireless communication connection with the second terminal at the request of the second terminal;
  • the first terminal performs file transmission with the second terminal based on the wireless communication connection.
  • the first terminal generates a two-dimensional code image corresponding to the device name, and includes: encrypting the device name of the first terminal, and generating a two-dimensional code image based on the encrypted device name.
  • the method further includes:
  • the wireless communication connection is a wireless local area network (WLAN) connection
  • the method further includes:
  • the first terminal Before the second terminal establishes a wireless communication connection with the second terminal, the first terminal starts the WLAN hotspot function, and the device name of the first terminal is the name of the first terminal as the WLAN hotspot.
  • the embodiment of the present invention further provides another file sharing method based on wireless communication, including: the second terminal scanning the two-dimensional code image provided by the first terminal to obtain the device name of the first terminal;
  • the second terminal requests to establish a wireless communication connection with the first terminal based on the device name of the first terminal; and the second terminal performs file transmission with the first terminal based on the established wireless communication connection.
  • the device name of the first terminal is obtained by scanning the two-dimensional code image provided by the first terminal, including:
  • the corresponding data is obtained by scanning the two-dimensional code image provided by the first terminal; and decrypting the data to obtain the device name of the first terminal.
  • the method further includes:
  • the embodiment of the present invention further provides a wireless communication terminal, including a first processor; the wireless communication terminal of the present invention is abbreviated as the terminal of the party, and the wireless communication terminal of the opposite party is simply referred to as the counterpart terminal;
  • the first processor is configured to: when the user needs to share files, trigger the generation of the party a two-dimensional code image corresponding to the device name of the terminal, for the other terminal to scan to obtain the device name of the local terminal for establishing the wireless communication connection; to establish a wireless communication connection with the counterpart terminal at the request of the counterpart terminal; The other terminal performs file transfer.
  • the first processor is configured to:
  • the device name of the terminal of the party is encrypted, and a two-dimensional code image is generated based on the device name of the encrypted terminal.
  • the first processor is further configured to:
  • the WLAN hotspot function Before establishing a wireless communication connection with the other party's terminal, the WLAN hotspot function is enabled.
  • the device name of the local terminal is the name of the local terminal as the WLAN hotspot.
  • the wireless communication terminal further includes:
  • a second processor configured to: obtain a device name of the counterpart terminal by scanning a two-dimensional code image provided by the counterpart terminal; request to establish a wireless communication connection with the counterpart terminal based on the device name of the counterpart terminal; Connect to the other terminal for file transfer.
  • the embodiment of the present invention further provides a wireless communication terminal, including: a second processor; the counterpart wireless communication terminal is simply referred to as a counterpart terminal;
  • the second processor is configured to: acquire a device name of the counterpart terminal by scanning a two-dimensional code image provided by the counterpart terminal; request to establish a wireless communication connection with the counterpart terminal based on the device name of the counterpart terminal; and connect with the other party based on the wireless communication
  • the terminal performs file transfer.
  • the second processor is configured to:
  • the corresponding data is obtained by scanning the two-dimensional code image provided by the counterpart terminal; and decrypting the data to obtain the device name of the counterpart terminal.
  • the file sharing method and the wireless communication terminal based on the wireless communication according to the embodiment of the present invention establish a wireless connection channel for file sharing based on the two-dimensional code, and use the creation of the two-dimensional code to shield the user from creating, adding, and the like, and Targetedly create a wireless communication connection for file Transmission, improving the ease of use of wireless communication terminals.
  • 1 is a flowchart of execution of an A terminal in a file sharing method based on wireless communication according to a first embodiment of the present invention
  • FIG. 2 is a flowchart of execution of a B terminal in a file sharing method based on wireless communication according to a first embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a wireless communication terminal according to a second embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a wireless communication terminal according to a third embodiment of the present invention.
  • FIG. 5 is a flowchart of a file sharing method based on two-dimensional code scanning on a mobile terminal device according to an application example of the present invention.
  • BEST MODE FOR CARRYING OUT THE INVENTION will be described in detail with reference to the accompanying drawings. The features of the embodiments of the present invention and the embodiments may be arbitrarily combined with each other without conflict.
  • a first embodiment of the present invention a file sharing method based on wireless communication, sharing a file between an A terminal and a B terminal
  • the A terminal of the embodiment of the present invention is similar to the first terminal of the invention content portion
  • the B terminal is similar to the invention.
  • the second terminal of the content part is as shown in FIG. 1.
  • the process performed by the A terminal includes the following steps:
  • Step S101 Generate a two-dimensional code image corresponding to the device name of the A terminal, and the B terminal performs scanning to obtain the device name of the A terminal used to establish the wireless communication connection.
  • step S101 a two-dimensional code image corresponding to the device name of the A terminal is generated, and the following processing flow is included:
  • the device name of the A terminal is encrypted, and a two-dimensional code image is generated based on the device name of the encrypted A terminal.
  • Step S102 Establish a wireless communication connection with the B terminal at the request of the B terminal.
  • the types of wireless communication connections include: WLAN connection, Bluetooth connection, and ZigBee Connection, etc.
  • the A terminal needs to enable the WLAN hotspot function before the wireless terminal is established with the B terminal, and the device name of the A terminal is the A terminal as the WLAN hotspot. name.
  • Step S103 Perform file transmission with the B terminal based on the established wireless communication connection.
  • the file transmission and reception may be bidirectional.
  • the process performed by the A terminal in this embodiment further includes:
  • Step S104 after the file transmission ends, the wireless communication connection is closed.
  • the user in order to shield specific wireless communication connection creation, and file transmission request and response operations, the user can trigger the user to use the A terminal by clicking the file to be sent and selecting the function shared by the wireless communication connection.
  • the file is transmitted.
  • the embodiment can be designed to: when the A terminal wants to send a file to the B terminal, trigger the process performed by the A terminal.
  • the process performed by the B terminal includes:
  • Step S201 Scan the two-dimensional code image provided by the A terminal to obtain the device name of the A terminal.
  • the corresponding data is obtained by scanning the two-dimensional code image provided by the A terminal; if the device name of the A terminal is not encrypted in step S101, the data obtained after the scanning is directly The name of the device as the A terminal;
  • step S101 If the device name of the A terminal has been encrypted in step S101, the data obtained after the scanning is decrypted in step S101 to obtain the device name of the A terminal.
  • Step S202 requesting to establish a wireless communication connection with the A terminal based on the device name of the A terminal.
  • the file transmission and reception may be bidirectional.
  • Step S203 Perform file transmission with the A terminal based on the established wireless communication connection.
  • the process performed by the B terminal in this embodiment further includes:
  • Step S204 after the file transfer ends, the wireless communication connection is closed.
  • the wireless communication terminal a wireless communication terminal corresponding to the functional role of the A terminal in the first embodiment, as shown in FIG. 3, the wireless communication terminal includes a first processor 10;
  • the wireless communication terminal of the other party is referred to as the counterpart terminal;
  • the first processor 10 is configured to trigger a two-dimensional code image corresponding to the device name of the local terminal when the user needs to perform file sharing, and the device for scanning by the other terminal to obtain the device for establishing the wireless communication connection Name; establishes a wireless communication connection with the counterpart terminal at the request of the counterpart terminal; performs file transmission with the counterpart terminal based on the established wireless communication connection.
  • the first processor 10 is configured to:
  • the device name of the terminal of the party is encrypted, and a two-dimensional code image is generated based on the device name of the encrypted terminal.
  • the types of wireless communication connections include: WLAN connections, Bluetooth connections, and ZigBee connections.
  • the first processor 10 is further configured to:
  • the WLAN hotspot function Before establishing a wireless communication connection with the other party's terminal, the WLAN hotspot function is enabled.
  • the device name of the local terminal is the name of the local terminal as the WLAN hotspot.
  • the wireless communication terminal may further include: a second processor, configured to: acquire a device name of the counterpart terminal by scanning a two-dimensional code image provided by the counterpart terminal; and request the same terminal terminal based on the device name of the counterpart terminal Establishing a wireless communication connection; performing file transmission with the counterpart terminal based on the wireless communication connection.
  • a second processor configured to: acquire a device name of the counterpart terminal by scanning a two-dimensional code image provided by the counterpart terminal; and request the same terminal terminal based on the device name of the counterpart terminal Establishing a wireless communication connection; performing file transmission with the counterpart terminal based on the wireless communication connection.
  • a third embodiment of the present invention a wireless communication terminal, corresponding to the functional role of the B terminal in the first embodiment, is used in conjunction with the wireless communication terminal in the second embodiment.
  • the wireless communication terminal includes a second processor 20; the counterpart wireless communication terminal is simply referred to as a counterpart terminal;
  • the second processor 20 is configured to acquire a device name of the counterpart terminal by scanning a two-dimensional code image provided by the counterpart terminal, and request to establish a wireless communication connection with the counterpart terminal based on the device name of the counterpart terminal;
  • the terminal performs file transfer.
  • the second processor 20 is configured to: The second processor 20 obtains the data obtained by the scanning directly as the counterpart terminal by scanning the two-dimensional code image provided by the counterpart terminal to scan the corresponding data.
  • Device name the name of the counterpart terminal.
  • the second processor 20 must decrypt the data obtained after the scan to obtain the device name of the counterpart terminal.
  • the embodiment is based on the wifi wireless connection mode, and an application example of the technical solution of the present invention is introduced in conjunction with FIG.
  • the mobile terminal device 1 and the mobile terminal device 2 in this application example are based on a file sharing method flow of two-dimensional code scanning, wherein only the steps 101 and 104 are required for the user to participate in the operation step.
  • Step 101 User operation: On the mobile terminal device that needs to share or send a file, select the file to be shared, and click the "QR code sharing (sending)" function button to trigger the processing of the mobile terminal as the transmitting device in step 102.
  • Process On the mobile terminal device that needs to share or send a file, select the file to be shared, and click the "QR code sharing (sending)" function button to trigger the processing of the mobile terminal as the transmitting device in step 102.
  • Step 102 the sending end device backend software operation: the sending end device calls the wifi hotspot creation function of the android system through the software to build the wifi hotspot in the background, and changes the name of the established wifi hotspot to the set name, through pre-configured
  • the private key file encrypts and encodes the set name to generate a feature string.
  • Step 103 The sending end device backend software operation: the sending end device starts the two-dimensional code encoding function in the background, and generates a corresponding two-dimensional code picture based on the feature string obtained in step 102, and displays it on the screen of the sending end device;
  • Step 104 the user operation: the receiving end device opens the "two-dimensional code sharing (receiving)" function by the user to click the corresponding button to trigger the background operation of step 105 and below;
  • Step 105 Background operation: The receiving end device starts the two-dimensional code scanning function in the background, scans the two-dimensional code picture generated on the transmitting end device, and returns the characteristic string information included in the two-dimensional code picture through function processing;
  • Step 106 Background operation: The receiving end device opens the wifi function by calling the enable Wifi ( ) function of the android system, performs a search scan on the currently existing hot spot, and returns a list of available hotspots nearby;
  • Step 108 the obtained sending end device The name corresponding to the wifi hotspot is matched with the hotspot list obtained in step 106. If a matching string is found, the process jumps to step 109; if no matching string is found, go to step 106 to perform new hotspots on the surrounding hotspots. A round of searching.
  • Step 109 Background operation: The receiving end device automatically joins the matched hotspot, successfully establishes a wifi connection with the sending end, and sends a handshake signal to the sending end device, requesting the other party to send the file;
  • Step 110 Background operation: After receiving the connection success message and the request for sending a file sent by the receiving end device, the sending end device sends the file list and the terminator together to the receiving end device;
  • Step 111 Background operation: The receiving end device receives the file sent by the sending end device. If it detects that the sent file stream contains the terminator, the receiving end device sends a message to the sending end, so that the receiving end device sends the message to the sending end. Turn off the hotspot, and call the system's disable Wifi function to turn off the wifi function, restore the initial state, and the whole process ends;
  • the mobile terminal device When the mobile terminal device performs the file sharing operation, the user does not need to perform complicated connection creation operations, and the file sharing can be realized through the above technical solutions.
  • the application examples include: two mobile device terminals at the transmitting end and the receiving end, and software with independent intellectual property rights on the terminal, providing a one-stop service for sharing files between mobile devices.
  • the entire process does not require an Internet environment, and the transmission channel is encrypted by a unique key, and the privacy of both parties is greatly guaranteed.
  • the sender only needs to select the file and click the send button.
  • the rest of the operations are executed in the background by the software that implements the method.
  • the receiver user only needs to click the receive button, and the rest of the operations are automatically executed. The user does not have to care about creating a file transfer channel, the file transfer process, and the details of the mobile device's initial state after the transfer is complete.
  • the wireless communication-based file sharing method and the wireless communication terminal according to the embodiment of the present invention establish a wireless connection channel for file sharing based on the two-dimensional code, and use the creation of the two-dimensional code to shield the user from creating, joining, and the like, and can The wireless communication connection is created for file transmission, which improves the ease of use of the wireless communication terminal.

Abstract

本发明实施例提出了一种基于无线通信的文件分享方法及无线通信终端,在该方法中,在第一终端和第二终端之间分享文件,第一终端执行的流程包括:生成第一终端的设备名称对应的二维码图像,供第二终端进行扫描以获取用于建立无线通信连接的第一终端的设备名称;应第二终端的请求与第二终端建立无线通信连接;基于建立的无线通信连接与第二终端进行文件传输。

Description

基于无线通信的文件分享方法及无线通信终端 技术领域
本发明涉及无线通信技术领域, 尤其涉及一种基于无线通信的文件分享 方法及无线通信终端。 背景技术 随着移动智能设备的普及, 设备间近距离便捷的分享、 传输文件的需求 日益增加。 需要通过无线的方式, 便捷的建立起文件分享的渠道。 移动智能 设备的用户, 不仅看重两台手机间建立连接的便捷性, 同时对设备间传输文 件的效率也越来越关注。
然而建立文件分享的渠道, 如 wifi ( wireless-fidelity, 无线保真)连接、 wifi-direct等, 需要用户具备基本的技术知识, 对其原理有一定的理解, 用户 间需要协调谁做 AP ( Access Point, 接入点)端, 谁做客户端, 这给某些用户 造成了潜在的门槛, 另外, 在建立连接时还需要用户参与寻找需进行文件分 享的对端, 手动建立无线连接, 无形中给此类文件分享应用的推广带来了障 碍, 并且也无法满足用户对设备间快速分享文件的需求。
发明内容
本发明要解决的技术问题是, 提供一种基于无线通信的文件分享方法及 无线通信终端, 克服现有技术中进行文件分享时建立无线连接的技术障碍, 满足用户对设备间快速分享文件的需求。
一种基于无线通信的文件分享方法, 程包括:
第一终端生成其设备名称对应的二维码图像, 供第二终端进行扫描以获 取用于建立无线通信连接的第一终端的设备名称;
所述第一终端应所述第二终端的请求与所述第二终端建立无线通信连 接;
所述第一终端基于所述无线通信连接与所述第二终端进行文件传输。 较佳地, 所述第一终端生成其设备名称对应的二维码图像, 包括: 对所述第一终端的设备名称进行加密, 基于加密后的设备名称生成二维 码图像。
较佳地, 所述方法还包括:
在文件传输结束后, 关闭无线通信连接。
较佳地, 所述无线通信连接为无线局域网络 WLAN ( Wireless Local Area Networks, 无线局域网络)连接, 所述方法还包括:
在应第二终端的请求与第二终端建立无线通信连接之前, 第一终端开启 WLAN热点功能,所述第一终端的设备名称即为第一终端作为 WLAN热点时 的名称。
本发明实施例还提供另一种基于无线通信的文件分享方法, 包括: 第二终端通过对第一终端提供的二维码图像进行扫描, 获取第一终端的 设备名称;
第二终端基于第一终端的设备名称,请求与第一终端建立无线通信连接; 第二终端基于建立的无线通信连接与第一终端进行文件传输。
较佳地, 所述通过对第一终端提供的二维码图像进行扫描, 获取第一终 端的设备名称, 包括:
通过对第一终端提供的二维码图像进行扫描, 获取到相应的数据; 对所述数据解密得到第一终端的设备名称。
较佳地, 所述方法还包括:
在文件传输结束后, 关闭无线通信连接。
本发明实施例还提供一种无线通信终端, 包括第一处理器; 本方无线通 信终端简称为本方终端, 对方无线通信终端简称为对方终端;
所述第一处理器, 设置为: 当用户需要进行文件分享时, 触发生成本方 终端的设备名称对应的二维码图像, 供对方终端进行扫描以获取用于建立无 线通信连接的本方终端的设备名称; 应对方终端的请求与对方终端建立无线 通信连接; 基于无线通信连接与对方终端进行文件传输。
较佳地, 所述第一处理器是设置为: :
对本方终端的设备名称进行加密, 基于加密后的本方终端的设备名称生 成二维码图像。
较佳地, 在无线通信连接为 WLAN连接的情况下, 所述第一处理器, 还 设置为: :
在应对方终端的请求与对方终端建立无线通信连接之前,开启 WLAN热 点功能, 所述本方终端的设备名称即为本方终端作为 WLAN热点时的名称。
较佳地, 上述无线通信终端还包括:
第二处理器, 其设置为: 通过扫描对方终端提供的二维码图像, 获取对 方终端的设备名称; 基于对方终端的设备名称, 请求与所述对方终端建立无 线通信连接; 基于所述无线通信连接与对方终端进行文件传输。
本发明实施例还提供一种无线通信终端, 包括: 第二处理器; 对方无线 通信终端简称为对方终端;
所述第二处理器, 设置为: 通过扫描对方终端提供的二维码图像, 获取 对方终端的设备名称; 基于对方终端的设备名称, 请求与对方终端建立无线 通信连接; 基于无线通信连接与对方终端进行文件传输。
较佳地, 所述第二处理器, 是设置为:
通过对对方终端提供的二维码图像进行扫描, 获取到相应的数据; 对所述数据解密得到对方终端的设备名称。
本发明实施例所述基于无线通信的文件分享方法及无线通信终端, 基于 二维码建立一个文件分享的无线连接通道, 巧妙利用创建二维码为用户屏蔽 掉创建、 加入连接等操作, 而且能针对性的创建无线通信连接以进行文件的 传输, 提升无线通信终端的易用性。 附图概述 图 1 为本发明第一实施例的基于无线通信的文件分享方法中 A终端执行 的流程图;
图 2 为本发明第一实施例的基于无线通信的文件分享方法中 B终端执行 的流程图;
图 3 为本发明第二实施例的无线通信终端组成结构示意图;
图 4 为本发明第三实施例的无线通信终端组成结构示意图;
图 5 为本发明应用实例的移动终端设备上基于二维码扫描的文件共享方 法流程图。 本发明的较佳实施方式 以下结合附图对本发明的实施例进行详细说明。 在不冲突的情况下, 本 发明实施例及实施例中的特征可以相互任意组合。
本发明第一实施例, 一种基于无线通信的文件分享方法, 在 A终端和 B 终端之间分享文件,本发明实施例的 A终端类似于发明内容部分的第一终端, B终端类似于发明内容部分的第二终端, 如图 1所示, 在该方法中, A终端 执行的流程包括以下步骤:
步骤 S101 ,生成 A终端的设备名称对应的二维码图像,供 B终端进行扫 描以获取用于建立无线通信连接的 A终端的设备名称。
较佳的, 在步骤 S101 中, 生成 A终端的设备名称对应的二维码图像, 包括以下处理流程:
对 A终端的设备名称进行加密,基于加密后的 A终端的设备名称生成二 维码图像。
步骤 S102, 应 B终端的请求与 B终端建立无线通信连接。
较佳的, 该无线通信连接的类型包括: WLAN连接、 蓝牙连接和 ZigBee 连接等。
在无线通信连接为 WLAN连接的情况下, 在应 B终端的请求与 B终端 建立无线通信连接之前, A终端还需要开启 WLAN热点功能, 该 A终端的设 备名称即为 A终端作为 WLAN热点时的名称。
步骤 S103 , 基于建立的无线通信连接与 B终端进行文件传输。
较佳的, A终端与 B终端之间基于建立的无线通信连接进行文件传输时, 对于文件的收发可以是双向的。
优选的, 本实施例的该 A终端执行的流程, 还包括:
步骤 S104, 在文件传输结束后, 关闭无线通信连接。
在实际应用中, 为了屏蔽具体的无线通信连接创建、 以及文件传输的请 求和响应等操作, 使用户通过点击待发送的文件并选择通过无线通信连接共 享的功能, 即可触发用户使用的 A终端将该文件传输出去, 此时, 可以将本 实施例设计成: 当 A终端欲向 B终端发送文件时, 触发 A终端执行的流程。
如图 2所示, 在该方法中, B终端执行的流程包括:
步骤 S201 ,通过对 A终端提供的二维码图像进行扫描,获取 A终端的设 备名称;
较佳的,通过对 A终端提供的二维码图像进行扫描,获取到相应的数据; 若在步骤 S101 中未对 A终端的设备名称进行加密, 则将所述扫描后得 到的所述数据直接作为 A终端的设备名称;
若在步骤 S101中已对 A终端的设备名称进行加密, 则步骤 S101中须对 扫描后得到的所述数据进行解密得到 A终端的设备名称。
步骤 S202, 基于 A终端的设备名称, 请求与 A终端建立无线通信连接; 较佳的, B终端与 A终端之间基于建立的无线通信连接进行文件传输时, 对于文件的收发可以是双向的。
步骤 S203 , 基于建立的无线通信连接与 A终端进行文件传输。
优选的, 本实施例的该 B终端执行的流程, 还包括:
步骤 S204, 在文件传输结束后, 关闭无线通信连接。 本发明第二实施例, 一种无线通信终端, 对应于第一实施例中的 A终端 的功能角色, 如图 3所示, 该无线通信终端包括第一处理器 10; 本方无线通 信终端简称为本方终端, 对方无线通信终端简称为对方终端;
第一处理器 10, 设置为当用户需要进行文件分享时, 触发生成本方终端 的设备名称对应的二维码图像, 供对方终端进行扫描以获取用于建立无线通 信连接的本方终端的设备名称; 应对方终端的请求与对方终端建立无线通信 连接; 基于建立的无线通信连接与对方终端进行文件传输。
优选的, 第一处理器 10, 设置为:
对本方终端的设备名称进行加密, 基于加密后的本方终端的设备名称生 成二维码图像。
该无线通信连接的类型包括: WLAN连接、 蓝牙连接和 ZigBee连接等。 在无线通信连接的类型为 WLAN连接的情况下, 第一处理器 10, 还设 置为:
在应对方终端的请求与对方终端建立无线通信连接之前,开启 WLAN热 点功能, 所述本方终端的设备名称即为本方终端作为 WLAN热点时的名称。
优选地, 该无线通信终端还可以包括第二处理器, 其设置为: 通过扫描 对方终端提供的二维码图像, 获取对方终端的设备名称; 基于对方终端的设 备名称, 请求与所述对方终端建立无线通信连接; 基于所述无线通信连接与 对方终端进行文件传输。
本发明第三实施例, 一种无线通信终端, 对应于第一实施例中的 B终端 的功能角色, 配合第二实施例中的无线通信终端使用。 如图 4所示, 该无线 通信终端, 包括第二处理器 20; 对方无线通信终端简称为对方终端;
第二处理器 20, 设置为通过扫描对方终端提供的二维码图像, 获取对方 终端的设备名称; 基于对方终端的设备名称, 请求与对方终端建立无线通信 连接; 基于建立的无线通信连接与对方终端进行文件传输。
较佳的, 第二处理器 20, 设置为: 通过对对方终端提供的二维码图像进行扫描, 获取到相应的数据; 若对方终端未对其设备名称进行加密,则第二处理器 20将所述扫描后得 到的所述数据直接作为对方终端的设备名称;
若对方终端已对其设备名称进行加密,则第二处理器 20须对扫描后得到 的所述数据进行解密得到对方终端的设备名称。
本发明第四实施例, 在上述实施例的基础上, 本实施例基于 wifi无线连 接方式, 结合附图 5介绍一个本发明技术方案的应用实例。
本应用实例中的移动终端设备 1和移动终端设备 2基于二维码扫描的文 件分享方法流程, 其中需要用户参与的操作步骤只有步骤 101和 104。
步骤 101 , 用户操作: 在需要分享或者发送文件的移动终端设备上, 选 中待分享的文件, 点击 "二维码分享 (发送) " 功能按钮, 触发步骤 102中 本移动终端作为发送端设备的处理流程;
步骤 102, 发送端设备后台软件操作: 发送端设备通过软件调用 android 系统的 wifi热点创建函数在后台自建起 wifi热点, 将已建立的 wifi热点的名 称改为设定的名字, 通过预先配置的专用密钥文件对设定的名字进行加密编 码, 生成特征字符串。
步骤 103 , 发送端设备后台软件操作: 发送端设备通在后台启动二维码 编码功能, 基于步骤 102中得到的特征字符串生成相应的二维码图片, 显示 在发送端设备的屏幕上;
步骤 104 , 用户操作: 接收端设备通过用户点击相应按钮, 打开 "二维 码分享 (接收) " 功能触发步骤 105及以下的后台操作;
步骤 105 , 后台操作: 接收端设备后台启动二维码扫描功能, 扫描发送 端设备上生成的二维码图片, 经过函数处理, 返回二维码图片中包含的特征 字符串信息;
步骤 106, 后台操作: 接收端设备通过调用 android系统的 enable Wifi ( ) 函数打开 wifi功能, 对当前存在的热点进行搜索扫描, 返回附近可用的热点 列表; 步骤 107 , 后台操作: 接收端设备基于预先配置的解码密钥对二维码解 析出来的特征字符串进行解密, 获得发送端设备的 wifi热点对应的名称; 步骤 108, 将获得的发送端设备的 wifi热点对应的名称与步骤 106中得 到的热点列表进行匹配比较, 如果发现匹配的字符串, 则跳转到步骤 109; 如果没有发现匹配的字符串, 转到步骤 106, 对周围的热点进行新一轮的搜 索。
步骤 109 , 后台操作: 接收端设备自动加入匹配的热点, 与发送端成功 建立起 wifi连接, 并向发送端设备发送握手信号, 请求对方发送文件;
步骤 110 , 后台操作: 发送端设备接收到接收端设备发来的连接成功消 息和发送文件的请求后, 将文件列表和结束符一起发送到接收端设备;
步骤 111 , 后台操作: 接收端设备接收到发送端设备发来的文件, 如果 检测到发送过来的文件流中包含有结束符, 则代表接收文件完毕, 接收端设 备发送消息给发送端, 使其关闭热点, 同时调用系统的 disable Wifi函数关闭 wifi功能, 恢复初始状态, 整个流程结束;
移动终端设备在进行文件分享操作时, 无需用户进行复杂的连接创建操 作, 可自行通过上述技术方案实现文件的分享。
本应用实例包括: 发送端和接收端两台移动设备终端、 以及终端上具有 自主知识产权的软件, 为移动设备间共享文件, 提供一站式服务。 整个过程 不需要互联网环境, 发送渠道通过特有密钥加密, 互换文件双方的隐私得到 极大保障。 发送端用户只需选择文件并点击发送按钮, 其余的操作统统由实 现本方法的软件在后台执行, 同样, 接收端用户也只需要点击接收按钮, 其 余的操作, 也自动执行。 用户不必关心创建文件传输通道、 文件传输过程, 以及传输完成后移动设备恢复初始状态的细节。
通过具体实施方式的说明, 应当可对本发明为达成预定目的所釆取的技 术手段及功效得以更加深入且具体的了解, 然而所附图示仅是提供参考与说 明之用, 并非用来对本发明加以限制。
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现。 相应地, 上述实施例中的各模块 /单元可以釆用 硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本发明不限制于任 何特定形式的硬件和软件的结合。
工业实用性
本发明实施例的基于无线通信的文件分享方法及无线通信终端, 基于二 维码建立一个文件分享的无线连接通道, 巧妙利用创建二维码为用户屏蔽掉 创建、 加入连接等操作, 而且能针对性的创建无线通信连接以进行文件的传 输, 提升无线通信终端的易用性。

Claims

权 利 要 求 书
1、 一种基于无线通信的文件分享方法, 包括:
第一终端生成其设备名称对应的二维码图像, 供第二终端进行扫描以获 取用于建立无线通信连接的第一终端的设备名称;
所述第一终端应所述第二终端的请求与所述第二终端建立无线通信连 接;
所述第一终端基于所述无线通信连接与所述第二终端进行文件传输。
2、 根据权利要求 1所述的基于无线通信的文件分享方法, 其中, 所述第 一终端生成其设备名称对应的二维码图像, 包括:
对所述第一终端的设备名称进行加密, 基于加密后的设备名称生成二维 码图像。
3、 根据权利要求 1所述的基于无线通信的文件分享方法, 还包括: 在文件传输结束后, 关闭所述无线通信连接。
4、根据权利要求 1~3中任一项所述的基于无线通信的文件分享方法, 其 中, 所述无线通信连接为无线局域网络 WLAN连接, 所述方法还包括:
在应所述第二终端的请求与所述第二终端建立无线通信连接之前, 所述 第一终端开启 WLAN热点功能,所述第一终端的设备名称即为第一终端作为 WLAN热点时的名称。
5、 一种基于无线通信的文件分享方法, 包括:
第二终端通过对第一终端提供的二维码图像进行扫描, 获取所述第一终 端的设备名称;
基于所述第一终端的设备名称,请求与所述第一终端建立无线通信连接; 所述第二终端基于建立的所述无线通信连接与所述第一终端进行文件传 输。
6、 根据权利要求 5所述的基于无线通信的文件分享方法, 其中, 所述通 过对第一终端提供的二维码图像进行扫描, 获取第一终端的设备名称, 包括: 通过对第一终端提供的二维码图像进行扫描, 获取到相应的数据; 对所述数据解密得到所述第一终端的设备名称。
7、 根据权利要求 5或 6所述的基于无线通信的文件分享方法, 还包括: 在文件传输结束后, 关闭无线通信连接。
8、 一种无线通信终端, 包括: 第一处理器; 所述无线通信终端简称为本 方终端, 对方无线通信终端简称为对方终端;
所述第一处理器, 设置为: 当用户需要进行文件分享时, 触发生成所述 本方终端的设备名称对应的二维码图像, 供所述对方终端进行扫描以获取用 于建立无线通信连接的本方终端的设备名称; 应所述对方终端的请求与所述 对方终端建立无线通信连接; 基于所述无线通信连接与所述对方终端进行文 件传输。
9、 根据权利要求 8所述的无线通信终端, 其中, 所述第一处理器是设置 为: 对本方终端的设备名称进行加密, 基于加密后的本方终端的设备名称生 成二维码图像。
10、 根据权利要求 8或 9所述的无线通信终端, 其中, 所述无线通信连 接为无线局域网 WLAN连接, 所述第一处理器, 还设置为:
在应所述对方终端的请求与所述对方终端建立无线通信连接之前, 开启 WLAN热点功能 ,所述本方终端的设备名称即为所述本方终端作为 WLAN热 点时的名称。
11、 如权利要求 8所述的无线通信终端, 还包括:
第二处理器, 其设置为: 通过扫描对方终端提供的二维码图像, 获取对 方终端的设备名称; 基于对方终端的设备名称, 请求与所述对方终端建立无 线通信连接; 基于所述无线通信连接与对方终端进行文件传输。
12、 一种无线通信终端, 包括: 第二处理器; 对方无线通信终端简称为 对方终端;
所述第二处理器, 设置为: 通过扫描对方终端提供的二维码图像, 获取 对方终端的设备名称; 基于对方终端的设备名称, 请求与所述对方终端建立 无线通信连接; 基于所述无线通信连接与对方终端进行文件传输。
13、 根据权利要求 12所述的无线通信终端, 其中, 所述第二处理器是设 置为:
通过对对方终端提供的二维码图像进行扫描, 获取到相应的数据; 对所述数据解密得到对方终端的设备名称。
PCT/CN2014/085109 2014-06-03 2014-08-25 基于无线通信的文件分享方法及无线通信终端 WO2015184689A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410243149.2A CN105282824A (zh) 2014-06-03 2014-06-03 基于无线通信的文件分享方法及无线通信终端
CN201410243149.2 2014-06-03

Publications (1)

Publication Number Publication Date
WO2015184689A1 true WO2015184689A1 (zh) 2015-12-10

Family

ID=54765990

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/085109 WO2015184689A1 (zh) 2014-06-03 2014-08-25 基于无线通信的文件分享方法及无线通信终端

Country Status (2)

Country Link
CN (1) CN105282824A (zh)
WO (1) WO2015184689A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566367A (zh) * 2017-09-02 2018-01-09 刘兴丹 一种云存储信息网络认证共享的方法、装置

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106027123B (zh) * 2016-05-09 2019-04-16 捷开通讯科技(上海)有限公司 电子装置的初始化方法
CN106412028A (zh) * 2016-09-13 2017-02-15 广州视睿电子科技有限公司 文件传输方法和系统
CN106658353A (zh) * 2016-09-14 2017-05-10 广东欧珀移动通信有限公司 一种数据迁移方法及终端设备
CN106412907B (zh) * 2016-09-14 2020-02-14 Oppo广东移动通信有限公司 一种网络接入方法、相关设备及系统
CN106445739B (zh) * 2016-09-14 2020-01-14 Oppo广东移动通信有限公司 一种数据迁移方法及终端设备
CN106469028B (zh) * 2016-09-14 2019-04-16 Oppo广东移动通信有限公司 一种数据迁移方法及移动终端
CN106488391B (zh) * 2016-09-14 2019-10-25 Oppo广东移动通信有限公司 一种数据迁移方法及终端设备
CN106484563B (zh) * 2016-09-14 2020-01-14 Oppo广东移动通信有限公司 一种数据迁移方法及终端设备
CN106658753B (zh) * 2016-09-14 2020-01-17 Oppo广东移动通信有限公司 一种数据迁移方法及终端设备
CN106507269B (zh) * 2016-09-14 2020-02-07 Oppo广东移动通信有限公司 一种数据迁移方法及终端设备
CN106550361B (zh) * 2016-11-07 2020-01-14 广东欧珀移动通信有限公司 一种数据传输方法,设备及计算机可读存储介质
CN106791043A (zh) * 2016-12-02 2017-05-31 广东欧珀移动通信有限公司 一种数据传输方法及设备
CN107222854A (zh) * 2017-06-19 2017-09-29 依偎科技(南昌)有限公司 一种获取软件的方法及装置
CN108966313A (zh) * 2018-05-24 2018-12-07 奇酷互联网络科技(深圳)有限公司 文件分享方法、装置、可读存储介质及移动终端

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1635813A (zh) * 2003-12-26 2005-07-06 华为技术有限公司 一种移动终端获取服务提供者的信息的方法
CN101075316A (zh) * 2007-06-25 2007-11-21 陆航程 一种电子票证交易认证管理方法、载体结构、系统、终端

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103037538B (zh) * 2012-12-17 2016-02-24 广州市动景计算机科技有限公司 数据传输方法及移动终端

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1635813A (zh) * 2003-12-26 2005-07-06 华为技术有限公司 一种移动终端获取服务提供者的信息的方法
CN101075316A (zh) * 2007-06-25 2007-11-21 陆航程 一种电子票证交易认证管理方法、载体结构、系统、终端

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566367A (zh) * 2017-09-02 2018-01-09 刘兴丹 一种云存储信息网络认证共享的方法、装置

Also Published As

Publication number Publication date
CN105282824A (zh) 2016-01-27

Similar Documents

Publication Publication Date Title
WO2015184689A1 (zh) 基于无线通信的文件分享方法及无线通信终端
US11863541B2 (en) System and method for end-to-end secure communication in device-to-device communication networks
US10298398B2 (en) Peer discovery, connection, and data transfer
Alam et al. An approach to secure communication in mobile ad-hoc networks of Android devices
WO2016082801A1 (zh) 一种用于建立无线连接的方法及设备
EP3139563B1 (en) Media content sharing method and apparatus
CN111787517A (zh) 智能设备激活绑定的方法和装置
US10812572B2 (en) Cloud-based data sharing
WO2018049759A1 (zh) 文件传输方法和系统
KR20160078475A (ko) 키 구성 방법, 시스템, 및 장치
EP1949724A2 (en) System and method for establishing bearer-independent and secure connections
US20140380443A1 (en) Network connection in a wireless communication device
WO2015188458A1 (zh) 文件传输方法、装置及系统
US10791124B2 (en) Method and terminal device for encrypting message
WO2022143071A1 (zh) 连接建立方法及电子设备
US8862096B1 (en) Provisioning of multiple wireless devices by an access point
WO2015164999A1 (zh) 虚拟卡下载方法、终端及中间设备
CN114697879B (zh) 蓝牙配对方法、电子设备、芯片和存储介质
US10673611B2 (en) Data transmission method, device, and system
WO2022027476A1 (zh) 密钥管理方法及通信装置
WO2014172836A1 (zh) 接入网络的方法、装置及网络系统
CN116325664A (zh) 一种智能设备配网的方法和装置
WO2016176902A1 (zh) 一种终端认证方法、管理终端及申请终端
CN109155913B (zh) 网络连接方法、安全节点的确定方法及装置
KR102634833B1 (ko) 원격접속 서비스 방법 및 시스템

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

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

Country of ref document: EP

Kind code of ref document: A1