WO2016119414A1 - Two-dimensional barcode-based file sharing method, system and mobile terminal - Google Patents

Two-dimensional barcode-based file sharing method, system and mobile terminal Download PDF

Info

Publication number
WO2016119414A1
WO2016119414A1 PCT/CN2015/084669 CN2015084669W WO2016119414A1 WO 2016119414 A1 WO2016119414 A1 WO 2016119414A1 CN 2015084669 W CN2015084669 W CN 2015084669W WO 2016119414 A1 WO2016119414 A1 WO 2016119414A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
mobile terminal
dimensional code
shared
sharing
Prior art date
Application number
PCT/CN2015/084669
Other languages
French (fr)
Chinese (zh)
Inventor
雷明
Original Assignee
惠州Tcl移动通信有限公司
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 惠州Tcl移动通信有限公司 filed Critical 惠州Tcl移动通信有限公司
Publication of WO2016119414A1 publication Critical patent/WO2016119414A1/en

Links

Classifications

    • 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]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/563Data redirection of data network streams

Definitions

  • the present invention relates to the field of mobile terminal technologies, and in particular, to a file sharing method and system based on a two-dimensional code and a mobile terminal.
  • a smartphone can provide file sharing functions in various ways, such as using Bluetooth, wireless fidelity (wifi), text messaging, and the like.
  • these methods require more steps, such as the use of Bluetooth technology must be paired with the other party's mobile phone, wifi transmission must be connected through the network, using SMS to send the user must manually enter the other party's information. It can be seen that the above file sharing technologies all require relatively complicated operation steps, which brings certain inconvenience to the user.
  • the technical problem to be solved by the present invention is to provide a file sharing method and system based on a two-dimensional code and a mobile terminal, aiming at solving the file sharing technology operation existing in the prior art by the present invention.
  • the cumbersome defects provide convenience for the user.
  • a file sharing method based on a two-dimensional code comprising the steps of:
  • the mobile terminal sharing party selects a file to be shared, and selects to share by using a two-dimensional code scanning manner, and determines whether the mobile terminal sharing party opens a network connection, and if the network connection is already opened, establishing a sharing service program,
  • the shared service information of the file to be shared is processed into a two-dimensional code, and the two-dimensional code is displayed on a screen of the mobile terminal;
  • the mobile terminal receiver Pre-determining whether the mobile terminal receiver opens a network connection, if the network connection is already open, the mobile terminal receiver scans the two-dimensional code, and parses the shared service information of the file to be shared in the two-dimensional code, Sending a file sharing request to the mobile terminal sharing party through the network connection according to the shared service information in the parsed two-dimensional code;
  • the mobile terminal sharing party receives the file sharing request, and sends the file to be shared to the mobile terminal receiving party.
  • the two-dimensional code-based file sharing method wherein the shared service information of the file to be shared includes: a service internet protocol address, a port number, and a file request command.
  • the two-dimensional code-based file sharing method wherein the processing the shared service information of the file to be shared into a two-dimensional code, and displaying the two-dimensional code on a screen of the mobile terminal specifically includes:
  • the shared service program obtains a shared service Internet protocol address and a port number, and generates a file request instruction according to the path information of the file to be shared in the mobile terminal;
  • the shared service internet protocol address, port number, and file request instruction are processed into a two-dimensional code, and the two-dimensional code is displayed on a screen of the mobile terminal.
  • the two-dimensional code-based file sharing method wherein the sending, according to the shared service information in the parsed two-dimensional code, a file sharing request to the mobile terminal sharing party by using a network connection, specifically includes:
  • the parsed file request instruction is further sent as a file sharing request to the designated mobile terminal sharing party.
  • the two-dimensional code-based file sharing method wherein the mobile terminal sharing party receives the file sharing request, and sends the file to be shared to the mobile terminal receiving party, which specifically includes:
  • the mobile terminal receiver receives the shared file and saves the file in a file path designated by the mobile terminal.
  • a file sharing system based on a two-dimensional code comprising:
  • a two-dimensional code generating display module configured to: the mobile terminal sharing party selects a file to be shared, processes the shared service information of the file to be shared into a two-dimensional code, and displays the two-dimensional code on a screen of the mobile terminal;
  • a two-dimensional code scanning parsing module configured to: the mobile terminal receiving party scans and parses the two-dimensional code, and sends a file sharing request to the mobile terminal sharing party according to the shared service information in the parsed two-dimensional code through a network connection;
  • a file sharing module configured to receive, by the mobile terminal sharing party, the file sharing request, and send the file to be shared to the mobile terminal receiving party.
  • the two-dimensional code-based file sharing system wherein the shared service information of the file to be shared includes: a service internet protocol address, a port number, and a file request command;
  • the two-dimensional code generation display module specifically includes:
  • a shared file selection unit configured for the mobile terminal sharing party to select a file to be shared, and simultaneously selecting to scan by using a two-dimensional code to share;
  • a first network connection determining unit configured to further determine whether the mobile terminal sharing party opens a network connection, and if the network connection is already open, the system automatically establishes a shared service program
  • a shared service information obtaining unit configured to acquire a shared service Internet protocol address and a port number, and generate a file request instruction according to the path information of the file to be shared in the mobile terminal;
  • the two-dimensional code generating unit is configured to process the shared service internet protocol address, the port number, and the file request instruction into a two-dimensional code, and display the two-dimensional code on a screen of the mobile terminal.
  • the two-dimensional code scanning and parsing module specifically includes:
  • a second network connection determining unit configured to pre-determine whether the mobile terminal receiver opens a network connection
  • a shared service information parsing unit configured to: if the network connection is already open, the mobile terminal receiver scans the two-dimensional code, and parses shared service information of the file to be shared in the two-dimensional code, the shared service information Internet protocol address, port number, and file request instruction including the shared service;
  • a network connection requesting unit configured to send a network connection request to the designated mobile terminal sharing party according to the parsed service internet protocol address and port number;
  • the file sharing request unit after the network connection request is successful, further sends the parsed file request instruction as a file sharing request to the designated mobile terminal sharing party.
  • the two-dimensional code-based file sharing system wherein the file sharing module further includes:
  • a path information parsing unit configured to receive, by the mobile terminal sharing party, a file request instruction sent by the mobile terminal receiver, and parse the path information of the file to be shared included in the file request instruction in the mobile terminal;
  • a file sending unit configured to send the specified shared file of the path information to the mobile terminal receiver
  • a file receiving storage unit configured to receive, by the mobile terminal receiver, the file with the sharing, and save the file in a file path specified by the mobile terminal.
  • a mobile terminal comprising a two-dimensional code based file sharing system, the system comprising:
  • a two-dimensional code generating display module configured to: the mobile terminal sharing party selects a file to be shared, processes the shared service information of the file to be shared into a two-dimensional code, and displays the two-dimensional code on a screen of the mobile terminal;
  • a two-dimensional code scanning parsing module configured to: the mobile terminal receiving party scans and parses the two-dimensional code, and sends a file sharing request to the mobile terminal sharing party according to the shared service information in the parsed two-dimensional code through a network connection;
  • a file sharing module configured to receive, by the mobile terminal sharing party, the file sharing request, and send the file to be shared to the mobile terminal receiving party.
  • the shared service information of the file to be shared includes: a service internet protocol address, a port number, and a file request command;
  • the two-dimensional code generation display module specifically includes:
  • a shared file selection unit configured for the mobile terminal sharing party to select a file to be shared, and simultaneously selecting to scan by using a two-dimensional code to share;
  • a first network connection determining unit configured to further determine whether the mobile terminal sharing party opens a network connection, and if the network connection is already open, the system automatically establishes a shared service program
  • a shared service information obtaining unit configured to acquire a shared service Internet protocol address and a port number, and generate a file request instruction according to the path information of the file to be shared in the mobile terminal;
  • the two-dimensional code generating unit is configured to process the shared service internet protocol address, the port number, and the file request instruction into a two-dimensional code, and display the two-dimensional code on a screen of the mobile terminal.
  • the two-dimensional code scanning and parsing module specifically includes:
  • a second network connection determining unit configured to pre-determine whether the mobile terminal receiver opens a network connection
  • a shared service information parsing unit configured to: if the network connection is already open, the mobile terminal receiver scans the two-dimensional code, and parses shared service information of the file to be shared in the two-dimensional code, the shared service information Internet protocol address, port number, and file request instruction including the shared service;
  • a network connection requesting unit configured to send a network connection request to the designated mobile terminal sharing party according to the parsed service internet protocol address and port number;
  • the file sharing request unit after the network connection request is successful, further sends the parsed file request instruction as a file sharing request to the designated mobile terminal sharing party.
  • the file sharing module of the two-dimensional code, the file sharing module further includes:
  • a path information parsing unit configured to receive, by the mobile terminal sharing party, a file request instruction sent by the mobile terminal receiver, and parse the path information of the file to be shared included in the file request instruction in the mobile terminal;
  • a file sending unit configured to send the specified shared file of the path information to the mobile terminal receiver
  • a file receiving storage unit configured to receive, by the mobile terminal receiver, the file with the sharing, and save the file in a file path specified by the mobile terminal.
  • a method and system for sharing a file based on a two-dimensional code and a mobile terminal specifically includes: a mobile terminal sharing party selects a file to be shared, and processes the shared service information of the file to be shared into two a dimension code, and displaying the two-dimensional code on a screen of the mobile terminal; the mobile terminal receiving side scans and parses the two-dimensional code, and shares the shared service information in the two-dimensional code according to the parsing to the mobile terminal through a network connection
  • the party sends a file sharing request; the mobile terminal sharing party receives the file sharing request, and sends the file to be shared to the mobile terminal receiving party.
  • the invention does not need to fill in any information of the receiver in advance when performing file sharing transmission, and only needs the receiver to scan the two-dimensional code generated on the screen of the shared party mobile phone by using the camera on the mobile phone, and does not need to synthesize the file sharing request instruction by itself, only need to Sending the shared instruction obtained from the QR code directly to the shared party mobile phone can be realized conveniently and conveniently; in addition, the sharing party can share multiple files at the same time, as long as multiple QR codes are generated on the mobile phone providing the sharing party, or multiple times Generate a QR code, each or each corresponding to a different file, so that the server can complete the transfer of the shared file without any changes.
  • FIG. 1 is a flow chart of a first preferred embodiment of a method for sharing a file based on a two-dimensional code of the present invention
  • FIG. 2 is a flowchart of a shared party execution of an application embodiment of a two-dimensional code-based file sharing method according to the present invention
  • FIG. 3 is a flowchart of a receiver execution of an application embodiment of a two-dimensional code-based file sharing method according to the present invention
  • FIG. 4 is a functional block diagram of a first preferred embodiment of a two-dimensional code-based file sharing system according to the present invention.
  • FIG. 5 is an internal structural diagram of a two-dimensional code generation display module of a first preferred embodiment of a two-dimensional code-based file sharing system according to the present invention
  • FIG. 6 is an internal structural diagram of a two-dimensional code scanning analysis module of a first preferred embodiment of a two-dimensional code-based file sharing system according to the present invention
  • FIG. 7 is a diagram showing the internal structure of a file sharing module of a first preferred embodiment of a two-dimensional code based file sharing system according to the present invention.
  • the invention discloses a method, a system and a mobile terminal for sharing a file based on a two-dimensional code.
  • the present invention will be further described in detail below with reference to the accompanying drawings. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
  • FIG. 1 is a flowchart of a first preferred embodiment of a method for sharing a file based on a two-dimensional code according to the present invention.
  • the two-dimensional code-based file sharing method shown in FIG. 1 includes:
  • Step S101 The mobile terminal sharing party selects a file to be shared, processes the shared service information of the file to be shared into a two-dimensional code, and displays the two-dimensional code on a screen of the mobile terminal.
  • the embodiment of the present invention works by using C/S (client/server) mode, and the client needs to connect to the server to require the server's internet protocol address (IP address, Internet). Protocol Address) and port number, because the server is temporarily generated, the service IP address and port number need to be told to the client, and the traditional manual filling will be slower, so the information is generated in the two-dimensional code, and the other party scans the two-dimensional code. Once you get the code and get the information, you can connect. Therefore, the shared service information of the file to be shared in the embodiment of the present invention includes: a service IP address, a port number, and a file request command.
  • step S101 specifically includes the following steps:
  • S1011 The mobile terminal sharing party selects a file to be shared, and selects to share by using a two-dimensional code scanning manner;
  • the shared service program obtains a shared service IP address and a port number, and generates a file request instruction according to the path information of the file to be shared in the mobile terminal.
  • S1014 Process the shared service IP address, port number, and file request instruction into a two-dimensional code, and display the two-dimensional code on a screen of the mobile terminal.
  • Step S102 The mobile terminal receiver scans and parses the two-dimensional code, and sends a file sharing request to the mobile terminal sharing party through the network connection according to the shared service information in the parsed two-dimensional code.
  • the step S102 specifically includes the following steps:
  • the mobile terminal receiver scans the two-dimensional code, and parses shared service information of the file to be shared in the two-dimensional code, where the shared service information includes an IP address of the shared service. , port number and file request instruction;
  • the parsed file request instruction is further sent as a file sharing request to the designated mobile terminal sharing party.
  • Step S103 The mobile terminal sharing party receives the file sharing request, and sends the file to be shared to the mobile terminal receiving party.
  • the step S103 specifically includes the following steps:
  • the mobile terminal sharing party receives the file request instruction sent by the mobile terminal receiver, and parses the path information of the file to be shared included in the file request instruction in the mobile terminal;
  • S1032 Send the specified shared file of the path information to the mobile terminal receiver.
  • the mobile terminal receiver receives the shared file and saves the file in a file path specified by the mobile terminal.
  • the present invention does not limit the transmission mode of the lower layer file, that is, the shared file can be transmitted by any method such as wifi or Bluetooth, so the transmission is flexible and versatile.
  • the method for sharing the file sharing method based on the two-dimensional code includes a sharing party and a receiving party.
  • FIG. 2 is a flow chart of the sharing party of the application embodiment of the file sharing method based on the two-dimensional code of the present invention.
  • wifi is used as the network connection transmission mode (other transmission methods are available. If Bluetooth technology is used, the paired information needs to be placed in the two-dimensional code to facilitate automatic pairing). As shown in Figure 2, the steps are included:
  • the user selects a file to be shared, and selects to share by using a two-dimensional code scanning method
  • the user of the sharing party selects the files to be shared through various file viewing methods (such as file manager) in the mobile phone, and further selects the file by a certain method (for example, if the file is selected for a long time, the corresponding file control menu will pop up)
  • file viewing methods such as file manager
  • a certain method for example, if the file is selected for a long time, the corresponding file control menu will pop up
  • the shared party's mobile phone Before performing the two-dimensional code-based file sharing method of the present invention, the shared party's mobile phone needs to first determine whether the wifi network connection has been opened. If not, the system prompts the user to perform an open operation in the form of a dialog box. If the wifi network connection is already open, the system automatically establishes and opens a shared server program (such as a TCP service) for listening to data on the specified shared service IP and port.
  • a shared server program such as a TCP service
  • the file request command format is get/FilePath, where FilePath refers to the detailed path information of the file to be shared in the mobile phone.
  • the system processes the IP address, port number and file request instruction of the shared service into a two-dimensional code, and displays the two-dimensional code on the screen of the mobile terminal.
  • FIG. 3 is a flow chart of the implementation of the receiver of the application method of the two-dimensional code-based file sharing method of the present invention. As shown in Figure 3, the steps are included:
  • the receiver After the receiver opens the QR code scanning shared receiving program, it first needs to determine whether the wifi network connection is turned on. If it is not turned on, the system prompts the user to perform the opening operation in the form of a dialog box. If the wifi network connection has been opened, the program automatically opens the camera to scan the two-dimensional code, and parses the shared service information of the file to be shared in the two-dimensional code, where the shared service information includes the IP address and port of the shared service. Number and file request instructions.
  • connection request is successful, and a file sharing request command is initiated to the server.
  • the receiver After the connection request is successful, the receiver does not need to synthesize the request instruction by itself, and only needs to send the instruction obtained from the two-dimensional code directly to the shared provider mobile phone.
  • the sharing party can quickly verify the instructions sent by the receiver, and the receiving party does not need to perform redundant operations; on the other hand, the sharing party can share multiple files at the same time, as long as the generating party generates more on the mobile phone providing the sharing party.
  • the file transfer phase includes: the sharing party receives the file sharing request instruction sent by the receiving party, and parses out the detailed path information of the file to be shared included in the file sharing request instruction in the mobile phone (that is, included in the FilePath) Path information); transmitting the specified shared file of the path detailed information to the receiver (such as by TCP); the receiving party receives the shared file and saves the file in a file path specified by the mobile phone
  • the file path can be either system default or pre-specified by the user.
  • the present invention does not need to fill in any information of the receiver in advance when performing file sharing transmission, and only needs the receiver to scan the QR code generated on the screen of the shared mobile phone by using the camera on the mobile phone, and does not need to synthesize the file sharing request by itself.
  • the instruction only needs to directly send the shared instruction obtained from the two-dimensional code to the sharing party mobile phone, which is convenient and quick, and provides convenience for the user.
  • the present invention further provides a file sharing system based on a two-dimensional code, as shown in FIG. 4, including:
  • the two-dimensional code generation display module 100 is configured to: the mobile terminal sharing party selects a file to be shared, processes the shared service information of the file to be shared into a two-dimensional code, and displays the two-dimensional code on a screen of the mobile terminal. Specifically as described above.
  • the two-dimensional code scanning and parsing module 200 is configured to: the mobile terminal receiving party scans and parses the two-dimensional code, and sends a file sharing request to the mobile terminal sharing party according to the shared service information in the parsed two-dimensional code through a network connection; Said.
  • the file sharing module 300 is configured to receive, by the mobile terminal sharing party, the file sharing request, and send the file to be shared to the mobile terminal receiving party; as described above.
  • the shared service information of the file to be shared includes: a service IP address, a port number, and a file request command.
  • the dimension code generation display module 100 further includes:
  • the shared file selection unit 110 is configured to select a file to be shared by the mobile terminal sharing party, and select to share by using a two-dimensional code scanning; as described above.
  • the first network connection determining unit 120 is configured to further determine whether the mobile terminal sharing party opens a network connection, and if the network connection is already open, the system automatically establishes a shared service program; as described above.
  • the shared service information obtaining unit 130 is configured to obtain the shared service IP address and the port number, and generate a file request instruction according to the path information of the file to be shared in the mobile terminal; as described above.
  • the two-dimensional code generating unit 140 is configured to process the shared service IP address, the port number, and the file request instruction into a two-dimensional code, and display the two-dimensional code on a screen of the mobile terminal; as described above.
  • the two-dimensional code scanning and parsing module 200 specifically includes:
  • the second network connection determining unit 210 is configured to determine in advance whether the mobile terminal receiver opens a network connection; specifically, as described above.
  • the shared service information parsing unit 220 is configured to: if the network connection has been opened, the mobile terminal receiver scans the two-dimensional code, and parses the shared service information of the file to be shared in the two-dimensional code, the sharing service
  • the information includes the IP address, port number, and file request command of the shared service; as described above.
  • the network connection requesting unit 230 is configured to send a establish network connection request to the designated mobile terminal sharing party according to the parsed service IP address and port number; as described above.
  • the file sharing requesting unit 240 after the network connection request is successful, further sends the parsed file request instruction as a file sharing request to the designated mobile terminal sharing party; as described above.
  • the file sharing module 300 specifically includes:
  • the path information parsing unit 310 is configured to receive, by the mobile terminal sharing party, a file request instruction sent by the mobile terminal receiver, and parse the path information of the file to be shared included in the file request instruction in the mobile terminal; Said.
  • the file sending unit 320 is configured to send the specified shared file of the path information to the mobile terminal receiver; as described above.
  • the file receiving storage unit 330 is configured to receive, by the mobile terminal receiver, the file with the sharing, and save the file in a file path specified by the mobile terminal; as described above.
  • the present invention further provides a mobile terminal, where the mobile terminal according to the embodiment includes the above-mentioned two-dimensional code-based file sharing system.
  • the present invention provides a method and system for sharing a file based on a two-dimensional code
  • the method includes: the mobile terminal sharing party selects a file to be shared, and shares the file to be shared.
  • the service information is processed into a two-dimensional code, and the two-dimensional code is displayed on a screen of the mobile terminal; the mobile terminal receiver scans and parses the two-dimensional code, and passes the network according to the shared service information in the parsed two-dimensional code.
  • the connection sends a file sharing request to the mobile terminal sharing party; the mobile terminal sharing party receives the file sharing request, and sends the file to be shared to the mobile terminal receiving party.
  • the invention does not need to fill in any information of the receiver in advance when performing file sharing transmission, and only needs the receiver to scan the two-dimensional code generated on the screen of the shared party mobile phone by using the camera on the mobile phone, and does not need to synthesize the file sharing request instruction by itself, only need to Sending the shared instruction obtained from the QR code directly to the shared party mobile phone can be realized conveniently and conveniently; in addition, the sharing party can share multiple files at the same time, as long as multiple QR codes are generated on the mobile phone providing the sharing party, or multiple times Generate a QR code, each or each corresponding to a different file, so that the server can complete the transfer of the shared file without any changes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Provided in the present invention are a two-dimensional barcode-based file sharing method, system and mobile terminal, the method comprising: processing, by a sharer, sharing service information of a file to be shared to generate a two-dimensional barcode and displaying the two-dimensional barcode; scanning and analyzing, by a receiver, the two-dimensional barcode and transmitting, by a receiver, a share request to the sharer according to an analysis result; receiving, by the sharer, the request and transmitting, by the sharer, a file to the receiver. By scanning the two-dimensional barcode of the sharer by the receiver and transmitting a share instruction acquired from the two-dimensional barcode to the sharer by the receiver, file sharing is realized.

Description

一种基于二维码的文件共享方法、系统及移动终端 Method, system and mobile terminal for file sharing based on two-dimensional code 技术领域Technical field
本发明涉及移动终端技术领域,尤其涉及一种基于二维码的文件共享方法、系统及移动终端。The present invention relates to the field of mobile terminal technologies, and in particular, to a file sharing method and system based on a two-dimensional code and a mobile terminal.
背景技术Background technique
当前移动智能手机十分普及,手机的用途已越来越广,通常人们会在手机中保存各种各样的文件,如图片、文档、音/视频文件等,很多时候用户希望可以将这些文件共享给其它人,或者说复制到其它手机中。在现有技术中,智能手机可以通过多种方法提供文件共享功能,如用蓝牙、无线保真(wifi)、短信等进行传送。但这些方法需要较多的操作步骤,如采用蓝牙技术必须与对方手机进行配对操作、采用wifi传送必须通过网络连接、采用短信发送则必须用户手动输入对方的信息等。可见,以上这些文件共享技术都需要较为繁杂的操作步骤,给用户带来一定的不便。Currently, mobile smartphones are very popular, and the use of mobile phones has become more and more widespread. Usually people save various files in mobile phones, such as pictures, documents, audio/video files, etc. Many times users want to share these files. Give it to others, or copy it to other phones. In the prior art, a smartphone can provide file sharing functions in various ways, such as using Bluetooth, wireless fidelity (wifi), text messaging, and the like. However, these methods require more steps, such as the use of Bluetooth technology must be paired with the other party's mobile phone, wifi transmission must be connected through the network, using SMS to send the user must manually enter the other party's information. It can be seen that the above file sharing technologies all require relatively complicated operation steps, which brings certain inconvenience to the user.
因此,现有技术还有待于改进和发展。Therefore, the prior art has yet to be improved and developed.
技术问题technical problem
本发明要解决的技术问题在于,针对现有技术的上述缺陷,提供一种基于二维码的文件共享方法、系统及移动终端,旨在通过本发明解决现有技术中存在的文件共享技术操作繁杂的缺陷,为用户提供便利性。The technical problem to be solved by the present invention is to provide a file sharing method and system based on a two-dimensional code and a mobile terminal, aiming at solving the file sharing technology operation existing in the prior art by the present invention. The cumbersome defects provide convenience for the user.
技术解决方案Technical solution
本发明解决技术问题所采用的技术方案如下:The technical solution adopted by the present invention to solve the technical problem is as follows:
一种基于二维码的文件共享方法,其中,包括步骤:A file sharing method based on a two-dimensional code, comprising the steps of:
移动终端共享方选择待共享的文件,并选择用二维码扫描的方式进行共享,判断所述移动终端共享方是否打开网络连接,若所述网络连接已经打开,则建立一个共享服务程序,将所述待共享文件的共享服务信息处理成二维码,并将所述二维码显示在移动终端的屏幕上;The mobile terminal sharing party selects a file to be shared, and selects to share by using a two-dimensional code scanning manner, and determines whether the mobile terminal sharing party opens a network connection, and if the network connection is already opened, establishing a sharing service program, The shared service information of the file to be shared is processed into a two-dimensional code, and the two-dimensional code is displayed on a screen of the mobile terminal;
预先判断所述移动终端接收方是否打开网络连接,若所述网络连接已经打开,则移动终端接收方扫描所述二维码,并解析所述二维码中的待共享文件的共享服务信息,根据解析出的二维码中的共享服务信息通过网络连接向移动终端共享方发送文件共享请求;Pre-determining whether the mobile terminal receiver opens a network connection, if the network connection is already open, the mobile terminal receiver scans the two-dimensional code, and parses the shared service information of the file to be shared in the two-dimensional code, Sending a file sharing request to the mobile terminal sharing party through the network connection according to the shared service information in the parsed two-dimensional code;
移动终端共享方接收所述文件共享请求,并将所述待共享的文件发送给所述移动终端接收方。The mobile terminal sharing party receives the file sharing request, and sends the file to be shared to the mobile terminal receiving party.
所述的基于二维码的文件共享方法,其中,所述待共享文件的共享服务信息包括:服务互联网协议地址、端口号和文件请求命令。The two-dimensional code-based file sharing method, wherein the shared service information of the file to be shared includes: a service internet protocol address, a port number, and a file request command.
所述的基于二维码的文件共享方法,其中,所述将所述待共享文件的共享服务信息处理成二维码,并将所述二维码显示在移动终端的屏幕上具体包括:The two-dimensional code-based file sharing method, wherein the processing the shared service information of the file to be shared into a two-dimensional code, and displaying the two-dimensional code on a screen of the mobile terminal specifically includes:
所述共享服务程序获取共享服务互联网协议地址和端口号,并根据所述待共享文件在移动终端中所处的路径信息生成文件请求指令;The shared service program obtains a shared service Internet protocol address and a port number, and generates a file request instruction according to the path information of the file to be shared in the mobile terminal;
将所述共享服务互联网协议地址、端口号和文件请求指令处理成二维码,并将所述二维码显示在移动终端的屏幕上。The shared service internet protocol address, port number, and file request instruction are processed into a two-dimensional code, and the two-dimensional code is displayed on a screen of the mobile terminal.
所述的基于二维码的文件共享方法,其中,所述根据解析出的二维码中的共享服务信息通过网络连接向移动终端共享方发送文件共享请求,具体包括:The two-dimensional code-based file sharing method, wherein the sending, according to the shared service information in the parsed two-dimensional code, a file sharing request to the mobile terminal sharing party by using a network connection, specifically includes:
根据解析出的服务互联网协议地址和端口号向指定的移动终端共享方发送建立网络连接请求;Sending a network connection request to the designated mobile terminal sharing party according to the parsed service internet protocol address and port number;
所述网络连接请求成功后,进一步将解析出的文件请求指令作为文件共享请求直接发送至指定的移动终端共享方。After the network connection request is successful, the parsed file request instruction is further sent as a file sharing request to the designated mobile terminal sharing party.
所述的基于二维码的文件共享方法,其中,所述移动终端共享方接收所述文件共享请求,并将所述待共享的文件发送给所述移动终端接收方,具体包括:The two-dimensional code-based file sharing method, wherein the mobile terminal sharing party receives the file sharing request, and sends the file to be shared to the mobile terminal receiving party, which specifically includes:
移动终端共享方接收所述移动终端接收方发送的文件请求指令,解析出所述文件请求指令中包含的待共享文件在移动终端中所处的路径信息;Receiving, by the mobile terminal sharing party, a file request instruction sent by the mobile terminal receiver, and parsing path information of the file to be shared included in the file request instruction in the mobile terminal;
将所述路径信息的指定共享文件发送给所述移动终端接收方;Transmitting the specified shared file of the path information to the mobile terminal receiver;
所述移动终端接收方接收所述带共享的文件,并将文件保存在移动终端指定的文件路径中。The mobile terminal receiver receives the shared file and saves the file in a file path designated by the mobile terminal.
一种基于二维码的文件共享系统,其中,包括: A file sharing system based on a two-dimensional code, comprising:
二维码生成显示模块,用于移动终端共享方选择待共享的文件,将所述待共享文件的共享服务信息处理成二维码,并将所述二维码显示在移动终端的屏幕上;a two-dimensional code generating display module, configured to: the mobile terminal sharing party selects a file to be shared, processes the shared service information of the file to be shared into a two-dimensional code, and displays the two-dimensional code on a screen of the mobile terminal;
二维码扫描解析模块,用于移动终端接收方扫描并解析所述二维码,根据解析出的二维码中的共享服务信息通过网络连接向移动终端共享方发送文件共享请求;a two-dimensional code scanning parsing module, configured to: the mobile terminal receiving party scans and parses the two-dimensional code, and sends a file sharing request to the mobile terminal sharing party according to the shared service information in the parsed two-dimensional code through a network connection;
文件共享模块,用于移动终端共享方接收所述文件共享请求,并将所述待共享的文件发送给所述移动终端接收方。a file sharing module, configured to receive, by the mobile terminal sharing party, the file sharing request, and send the file to be shared to the mobile terminal receiving party.
所述基于二维码的文件共享系统其中,所述待共享文件的共享服务信息包括:服务互联网协议地址、端口号和文件请求命令;The two-dimensional code-based file sharing system, wherein the shared service information of the file to be shared includes: a service internet protocol address, a port number, and a file request command;
所述二维码生成显示模块具体包括:The two-dimensional code generation display module specifically includes:
共享文件选择单元,用于移动终端共享方选择待共享的文件,同时选择用二维码扫描的方式进行共享;a shared file selection unit, configured for the mobile terminal sharing party to select a file to be shared, and simultaneously selecting to scan by using a two-dimensional code to share;
第一网络连接判断单元,用于进一步判断所述移动终端共享方是否打开网络连接,若所述网络连接已经打开,则系统自动建立一个共享服务程序;a first network connection determining unit, configured to further determine whether the mobile terminal sharing party opens a network connection, and if the network connection is already open, the system automatically establishes a shared service program;
共享服务信息获取单元,用于所述共享服务程序获取共享服务互联网协议地址和端口号,并根据所述待共享文件在移动终端中所处的路径信息生成文件请求指令;a shared service information obtaining unit, configured to acquire a shared service Internet protocol address and a port number, and generate a file request instruction according to the path information of the file to be shared in the mobile terminal;
二维码生成单元,用于将所述共享服务互联网协议地址、端口号和文件请求指令处理成二维码,并将所述二维码显示在移动终端的屏幕上。The two-dimensional code generating unit is configured to process the shared service internet protocol address, the port number, and the file request instruction into a two-dimensional code, and display the two-dimensional code on a screen of the mobile terminal.
所述基于二维码的文件共享系统,其中,所述二维码扫描解析模块具体包括:The two-dimensional code-based file sharing system, wherein the two-dimensional code scanning and parsing module specifically includes:
第二网络连接判断单元,用于预先判断所述移动终端接收方是否打开网络连接;a second network connection determining unit, configured to pre-determine whether the mobile terminal receiver opens a network connection;
共享服务信息解析单元,用于若所述网络连接已经打开,则移动终端接收方扫描所述二维码,并解析所述二维码中的待共享文件的共享服务信息,所述共享服务信息包含共享服务的互联网协议地址、端口号和文件请求指令;a shared service information parsing unit, configured to: if the network connection is already open, the mobile terminal receiver scans the two-dimensional code, and parses shared service information of the file to be shared in the two-dimensional code, the shared service information Internet protocol address, port number, and file request instruction including the shared service;
网络连接请求单元,用于根据解析出的服务互联网协议地址和端口号向指定的移动终端共享方发送建立网络连接请求;a network connection requesting unit, configured to send a network connection request to the designated mobile terminal sharing party according to the parsed service internet protocol address and port number;
文件共享请求单元,用于所述网络连接请求成功后,进一步将解析出的文件请求指令作为文件共享请求直接发送至指定的移动终端共享方。The file sharing request unit, after the network connection request is successful, further sends the parsed file request instruction as a file sharing request to the designated mobile terminal sharing party.
所述基于二维码的文件共享系统,其中,所述文件共享模块还包括:The two-dimensional code-based file sharing system, wherein the file sharing module further includes:
路径信息解析单元,用于移动终端共享方接收所述移动终端接收方发送的文件请求指令,解析出所述文件请求指令中包含的待共享文件在移动终端中所处的路径信息;a path information parsing unit, configured to receive, by the mobile terminal sharing party, a file request instruction sent by the mobile terminal receiver, and parse the path information of the file to be shared included in the file request instruction in the mobile terminal;
文件发送单元,用于将所述路径信息的指定共享文件发送给所述移动终端接收方;a file sending unit, configured to send the specified shared file of the path information to the mobile terminal receiver;
文件接收存储单元,用于所述移动终端接收方接收所述带共享的文件,并将文件保存在移动终端指定的文件路径中。And a file receiving storage unit, configured to receive, by the mobile terminal receiver, the file with the sharing, and save the file in a file path specified by the mobile terminal.
一种移动终端,其中,包括基于二维码的文件共享系统,该系统包括: A mobile terminal, comprising a two-dimensional code based file sharing system, the system comprising:
二维码生成显示模块,用于移动终端共享方选择待共享的文件,将所述待共享文件的共享服务信息处理成二维码,并将所述二维码显示在移动终端的屏幕上;a two-dimensional code generating display module, configured to: the mobile terminal sharing party selects a file to be shared, processes the shared service information of the file to be shared into a two-dimensional code, and displays the two-dimensional code on a screen of the mobile terminal;
二维码扫描解析模块,用于移动终端接收方扫描并解析所述二维码,根据解析出的二维码中的共享服务信息通过网络连接向移动终端共享方发送文件共享请求;a two-dimensional code scanning parsing module, configured to: the mobile terminal receiving party scans and parses the two-dimensional code, and sends a file sharing request to the mobile terminal sharing party according to the shared service information in the parsed two-dimensional code through a network connection;
文件共享模块,用于移动终端共享方接收所述文件共享请求,并将所述待共享的文件发送给所述移动终端接收方。a file sharing module, configured to receive, by the mobile terminal sharing party, the file sharing request, and send the file to be shared to the mobile terminal receiving party.
所述待共享文件的共享服务信息包括:服务互联网协议地址、端口号和文件请求命令;The shared service information of the file to be shared includes: a service internet protocol address, a port number, and a file request command;
所述二维码生成显示模块具体包括:The two-dimensional code generation display module specifically includes:
共享文件选择单元,用于移动终端共享方选择待共享的文件,同时选择用二维码扫描的方式进行共享;a shared file selection unit, configured for the mobile terminal sharing party to select a file to be shared, and simultaneously selecting to scan by using a two-dimensional code to share;
第一网络连接判断单元,用于进一步判断所述移动终端共享方是否打开网络连接,若所述网络连接已经打开,则系统自动建立一个共享服务程序;a first network connection determining unit, configured to further determine whether the mobile terminal sharing party opens a network connection, and if the network connection is already open, the system automatically establishes a shared service program;
共享服务信息获取单元,用于所述共享服务程序获取共享服务互联网协议地址和端口号,并根据所述待共享文件在移动终端中所处的路径信息生成文件请求指令;a shared service information obtaining unit, configured to acquire a shared service Internet protocol address and a port number, and generate a file request instruction according to the path information of the file to be shared in the mobile terminal;
二维码生成单元,用于将所述共享服务互联网协议地址、端口号和文件请求指令处理成二维码,并将所述二维码显示在移动终端的屏幕上。The two-dimensional code generating unit is configured to process the shared service internet protocol address, the port number, and the file request instruction into a two-dimensional code, and display the two-dimensional code on a screen of the mobile terminal.
所述基于二维码的文件共享系统,所述二维码扫描解析模块具体包括:In the two-dimensional code-based file sharing system, the two-dimensional code scanning and parsing module specifically includes:
第二网络连接判断单元,用于预先判断所述移动终端接收方是否打开网络连接;a second network connection determining unit, configured to pre-determine whether the mobile terminal receiver opens a network connection;
共享服务信息解析单元,用于若所述网络连接已经打开,则移动终端接收方扫描所述二维码,并解析所述二维码中的待共享文件的共享服务信息,所述共享服务信息包含共享服务的互联网协议地址、端口号和文件请求指令;a shared service information parsing unit, configured to: if the network connection is already open, the mobile terminal receiver scans the two-dimensional code, and parses shared service information of the file to be shared in the two-dimensional code, the shared service information Internet protocol address, port number, and file request instruction including the shared service;
网络连接请求单元,用于根据解析出的服务互联网协议地址和端口号向指定的移动终端共享方发送建立网络连接请求;a network connection requesting unit, configured to send a network connection request to the designated mobile terminal sharing party according to the parsed service internet protocol address and port number;
文件共享请求单元,用于所述网络连接请求成功后,进一步将解析出的文件请求指令作为文件共享请求直接发送至指定的移动终端共享方。The file sharing request unit, after the network connection request is successful, further sends the parsed file request instruction as a file sharing request to the designated mobile terminal sharing party.
所述基于二维码的文件共享系统,所述文件共享模块还包括:The file sharing module of the two-dimensional code, the file sharing module further includes:
路径信息解析单元,用于移动终端共享方接收所述移动终端接收方发送的文件请求指令,解析出所述文件请求指令中包含的待共享文件在移动终端中所处的路径信息;a path information parsing unit, configured to receive, by the mobile terminal sharing party, a file request instruction sent by the mobile terminal receiver, and parse the path information of the file to be shared included in the file request instruction in the mobile terminal;
文件发送单元,用于将所述路径信息的指定共享文件发送给所述移动终端接收方;a file sending unit, configured to send the specified shared file of the path information to the mobile terminal receiver;
文件接收存储单元,用于所述移动终端接收方接收所述带共享的文件,并将文件保存在移动终端指定的文件路径中。And a file receiving storage unit, configured to receive, by the mobile terminal receiver, the file with the sharing, and save the file in a file path specified by the mobile terminal.
有益效果 Beneficial effect
本发明所提供的一种基于二维码的文件共享方法、系统及移动终端,所述方法具体包括:移动终端共享方选择待共享的文件,将所述待共享文件的共享服务信息处理成二维码,并将所述二维码显示在移动终端的屏幕上;移动终端接收方扫描并解析所述二维码,根据解析出的二维码中的共享服务信息通过网络连接向移动终端共享方发送文件共享请求;移动终端共享方接收所述文件共享请求,并将所述待共享的文件发送给所述移动终端接收方。本发明在进行文件共享传输时不需要事先填写接收方的任何信息,只需要接收方用手机上的摄像头扫描共享方手机屏幕上生成的二维码,且无需自己合成文件共享请求指令,只需要把从二维码中得到的共享指令直接发送给共享方手机就可以实现,方便快捷;另外,共享方可以同时共享多个文件,只要在提供共享方的手机上生成多张二维码,或者多次生成二维码,每张或每次对应不同的文件,这样服务器可以不作任何变动就能完成共享文件的传输。 A method and system for sharing a file based on a two-dimensional code and a mobile terminal provided by the present invention, the method specifically includes: a mobile terminal sharing party selects a file to be shared, and processes the shared service information of the file to be shared into two a dimension code, and displaying the two-dimensional code on a screen of the mobile terminal; the mobile terminal receiving side scans and parses the two-dimensional code, and shares the shared service information in the two-dimensional code according to the parsing to the mobile terminal through a network connection The party sends a file sharing request; the mobile terminal sharing party receives the file sharing request, and sends the file to be shared to the mobile terminal receiving party. The invention does not need to fill in any information of the receiver in advance when performing file sharing transmission, and only needs the receiver to scan the two-dimensional code generated on the screen of the shared party mobile phone by using the camera on the mobile phone, and does not need to synthesize the file sharing request instruction by itself, only need to Sending the shared instruction obtained from the QR code directly to the shared party mobile phone can be realized conveniently and conveniently; in addition, the sharing party can share multiple files at the same time, as long as multiple QR codes are generated on the mobile phone providing the sharing party, or multiple times Generate a QR code, each or each corresponding to a different file, so that the server can complete the transfer of the shared file without any changes.
附图说明DRAWINGS
图1是本发明基于二维码的文件共享方法的第一较佳实施例的流程图;1 is a flow chart of a first preferred embodiment of a method for sharing a file based on a two-dimensional code of the present invention;
图2是本发明基于二维码的文件共享方法的应用实施例的共享方执行流程图;2 is a flowchart of a shared party execution of an application embodiment of a two-dimensional code-based file sharing method according to the present invention;
图3是本发明基于二维码的文件共享方法的应用实施例的接收方执行流程图;3 is a flowchart of a receiver execution of an application embodiment of a two-dimensional code-based file sharing method according to the present invention;
图4是本发明基于二维码的文件共享系统的第一较佳实施例的功能模块图;4 is a functional block diagram of a first preferred embodiment of a two-dimensional code-based file sharing system according to the present invention;
图5是本发明基于二维码的文件共享系统的第一较佳实施例的二维码生成显示模块的内部结构图;5 is an internal structural diagram of a two-dimensional code generation display module of a first preferred embodiment of a two-dimensional code-based file sharing system according to the present invention;
图6是本发明基于二维码的文件共享系统的第一较佳实施例的二维码扫描解析模块的内部结构图;6 is an internal structural diagram of a two-dimensional code scanning analysis module of a first preferred embodiment of a two-dimensional code-based file sharing system according to the present invention;
图7是本发明基于二维码的文件共享系统的第一较佳实施例的文件共享模块的内部结构图。7 is a diagram showing the internal structure of a file sharing module of a first preferred embodiment of a two-dimensional code based file sharing system according to the present invention.
本发明的最佳实施方式BEST MODE FOR CARRYING OUT THE INVENTION
本发明公开了一种基于二维码的文件共享方法、系统及移动终端, 为使本发明的目的、技术方案及优点更加清楚、明确,以下参照附图并举实施例对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。The invention discloses a method, a system and a mobile terminal for sharing a file based on a two-dimensional code. The present invention will be further described in detail below with reference to the accompanying drawings. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
请参见图1,图1是本发明基于二维码的文件共享方法的第一较佳实施例的流程图。图1所示的基于二维码的文件共享方法,包括:Referring to FIG. 1, FIG. 1 is a flowchart of a first preferred embodiment of a method for sharing a file based on a two-dimensional code according to the present invention. The two-dimensional code-based file sharing method shown in FIG. 1 includes:
步骤S101、移动终端共享方选择待共享的文件,将所述待共享文件的共享服务信息处理成二维码,并将所述二维码显示在移动终端的屏幕上。Step S101: The mobile terminal sharing party selects a file to be shared, processes the shared service information of the file to be shared into a two-dimensional code, and displays the two-dimensional code on a screen of the mobile terminal.
本发明实施例利用C/S(客户端/服务器)模式进行工作,客户端要连接到服务器需要服务器的互联网协议地址(IP地址,Internet Protocol Address)和端口号,由于服务器是临时生成的,需要把服务IP地址和端口号告诉客户端,而采用传统手工填写会比较慢,因此把这些信息生成在二维码中,对方来扫描二维码并得到这些信息后就可以进行连接。因此,本发明实施例中的所述待共享文件的共享服务信息包括:服务IP地址、端口号和文件请求命令。The embodiment of the present invention works by using C/S (client/server) mode, and the client needs to connect to the server to require the server's internet protocol address (IP address, Internet). Protocol Address) and port number, because the server is temporarily generated, the service IP address and port number need to be told to the client, and the traditional manual filling will be slower, so the information is generated in the two-dimensional code, and the other party scans the two-dimensional code. Once you get the code and get the information, you can connect. Therefore, the shared service information of the file to be shared in the embodiment of the present invention includes: a service IP address, a port number, and a file request command.
进一步地,所述步骤S101具体包括步骤:Further, the step S101 specifically includes the following steps:
S1011、移动终端共享方选择待共享的文件,同时选择用二维码扫描的方式进行共享;S1011: The mobile terminal sharing party selects a file to be shared, and selects to share by using a two-dimensional code scanning manner;
S1012、进一步判断所述移动终端共享方是否打开网络连接,若所述网络连接已经打开,则系统自动建立一个共享服务程序;S1012, further determining whether the mobile terminal sharing party opens a network connection, and if the network connection is already open, the system automatically establishes a shared service program;
S1013、所述共享服务程序获取共享服务IP地址和端口号,并根据所述待共享文件在移动终端中所处的路径信息生成文件请求指令;S1013. The shared service program obtains a shared service IP address and a port number, and generates a file request instruction according to the path information of the file to be shared in the mobile terminal.
S1014、将所述共享服务IP地址、端口号和文件请求指令处理成二维码,并将所述二维码显示在移动终端的屏幕上。S1014. Process the shared service IP address, port number, and file request instruction into a two-dimensional code, and display the two-dimensional code on a screen of the mobile terminal.
步骤S102、移动终端接收方扫描并解析所述二维码,根据解析出的二维码中的共享服务信息通过网络连接向移动终端共享方发送文件共享请求。Step S102: The mobile terminal receiver scans and parses the two-dimensional code, and sends a file sharing request to the mobile terminal sharing party through the network connection according to the shared service information in the parsed two-dimensional code.
本发明实施例中,所述步骤S102具体包括步骤:In the embodiment of the present invention, the step S102 specifically includes the following steps:
S1021、预先判断所述移动终端接收方是否打开网络连接;S1021. Pre-determining whether the mobile terminal receiver opens a network connection.
S1022、若所述网络连接已经打开,则移动终端接收方扫描所述二维码,并解析所述二维码中的待共享文件的共享服务信息,所述共享服务信息包含共享服务的IP地址、端口号和文件请求指令;S1022: If the network connection is already open, the mobile terminal receiver scans the two-dimensional code, and parses shared service information of the file to be shared in the two-dimensional code, where the shared service information includes an IP address of the shared service. , port number and file request instruction;
S1023、根据解析出的服务IP地址和端口号向指定的移动终端共享方发送建立网络连接请求;S1023. Send a network connection request to the designated mobile terminal sharing party according to the parsed service IP address and port number.
S1024、所述网络连接请求成功后,进一步将解析出的文件请求指令作为文件共享请求直接发送至指定的移动终端共享方。S1024. After the network connection request is successful, the parsed file request instruction is further sent as a file sharing request to the designated mobile terminal sharing party.
步骤S103、移动终端共享方接收所述文件共享请求,并将所述待共享的文件发送给所述移动终端接收方。Step S103: The mobile terminal sharing party receives the file sharing request, and sends the file to be shared to the mobile terminal receiving party.
本发明实施例中,所述步骤S103具体包括步骤:In the embodiment of the present invention, the step S103 specifically includes the following steps:
S1031、移动终端共享方接收所述移动终端接收方发送的文件请求指令,解析出所述文件请求指令中包含的待共享文件在移动终端中所处的路径信息;S1013: The mobile terminal sharing party receives the file request instruction sent by the mobile terminal receiver, and parses the path information of the file to be shared included in the file request instruction in the mobile terminal;
S1032、将所述路径信息的指定共享文件发送给所述移动终端接收方;S1032: Send the specified shared file of the path information to the mobile terminal receiver.
S1033、所述移动终端接收方接收所述带共享的文件,并将文件保存在移动终端指定的文件路径中。S1033. The mobile terminal receiver receives the shared file and saves the file in a file path specified by the mobile terminal.
进一步地,本发明不限制下层文件的传输方式,即,可以采用wifi、蓝牙等任何方式进行共享文件的传输,因此传输较灵活、通用。Further, the present invention does not limit the transmission mode of the lower layer file, that is, the shared file can be transmitted by any method such as wifi or Bluetooth, so the transmission is flexible and versatile.
以下将通过具体的应用实施例对本发明做进一步说明。本发明基于二维码的文件共享方法的执行过程中包括共享方和接收方,请详见图2,图2是本发明基于二维码的文件共享方法的应用实施例的共享方执行流程图,本应用实施例中采用wifi作为网络连接传输方式(其他传输方式均可,如采用蓝牙技术则需要把配对的信息放在二维码中,以方便进行自动配对)。如图2所示,包括步骤:The invention will be further illustrated by the specific application examples. The method for sharing the file sharing method based on the two-dimensional code includes a sharing party and a receiving party. Please refer to FIG. 2, which is a flow chart of the sharing party of the application embodiment of the file sharing method based on the two-dimensional code of the present invention. In the application embodiment, wifi is used as the network connection transmission mode (other transmission methods are available. If Bluetooth technology is used, the paired information needs to be placed in the two-dimensional code to facilitate automatic pairing). As shown in Figure 2, the steps are included:
S21、用户选择待共享的文件,并选择用二维码扫描方式进行共享;S21. The user selects a file to be shared, and selects to share by using a two-dimensional code scanning method;
共享方的用户在手机中通过各种文件查看方式(如文件管理器等)选择需要共享的文件,并通过一定的方式(如长时间选中文件,则系统会弹出相应的文件控制菜单)进一步选择“用二维码扫描方式进行共享”的操作。The user of the sharing party selects the files to be shared through various file viewing methods (such as file manager) in the mobile phone, and further selects the file by a certain method (for example, if the file is selected for a long time, the corresponding file control menu will pop up) The operation of "sharing by QR code scanning".
S22、判断wifi是否打开?若wifi已打开,则进入步骤S24;S22. Is the wifi determined to be open? If wifi is already open, proceed to step S24;
S23、若wifi未打开,则打开wifi连接(或提示用户打开);S23. If the wifi is not turned on, the wifi connection is opened (or the user is prompted to open);
S24、打开共享服务端程序;S24. Open a shared server program.
执行本发明的基于二维码的文件共享方法前,共享方的手机需要首先判断是否已经打开wifi网络连接,如果没有打开,则系统以对话框的形式提示用户执行打开操作。若所述wifi网络连接已经打开,则系统自动建立并打开一个共享服务端程序(如TCP服务),此服务用于监听指定共享服务IP和端口上的数据。Before performing the two-dimensional code-based file sharing method of the present invention, the shared party's mobile phone needs to first determine whether the wifi network connection has been opened. If not, the system prompts the user to perform an open operation in the form of a dialog box. If the wifi network connection is already open, the system automatically establishes and opens a shared server program (such as a TCP service) for listening to data on the specified shared service IP and port.
S25、获取共享服务的方地址和端口号;S25. Obtain a party address and a port number of the shared service.
S26、生成文件请求命令;S26. Generate a file request command.
所述文件请求命令格式如get/FilePath,其中FilePath是指待共享文件在手机中所处的详细路径信息。The file request command format is get/FilePath, where FilePath refers to the detailed path information of the file to be shared in the mobile phone.
S27、生成二维码并显示在界面上;S27. Generate a two-dimensional code and display it on the interface.
系统将所述共享服务的IP地址、端口号和文件请求指令处理成二维码,并将所述二维码显示在移动终端的屏幕上。The system processes the IP address, port number and file request instruction of the shared service into a two-dimensional code, and displays the two-dimensional code on the screen of the mobile terminal.
进一步地,请详见图3,图3是本发明基于二维码的文件共享方法的应用实施例的接收方执行流程图。如图3所示,包括步骤:Further, please refer to FIG. 3, which is a flow chart of the implementation of the receiver of the application method of the two-dimensional code-based file sharing method of the present invention. As shown in Figure 3, the steps are included:
S31、判断wifi是否打开?若wifi已打开,则进入步骤S33;S31. Is the wifi determined to be open? If wifi is already open, proceed to step S33;
S32、若wifi未打开,则打开wifi连接(或提示用户打开);S32. If the wifi is not turned on, the wifi connection is opened (or the user is prompted to open);
S33、扫描二维码;S33, scanning a two-dimensional code;
S34、解析服务的IP地址和端口号;S34. Analyze the IP address and port number of the service.
S35、解析文件请求命令;S35. Parse the file request command.
接收方在打开二维码扫描共享接收程序后,首先也需要判断是否打开了wifi网络连接,如果没有打开,则系统以对话框的形式提示用户执行打开操作。若所述wifi网络连接已经打开,之后程序会自动打开摄像头扫描二维码,并解析所述二维码中的待共享文件的共享服务信息,所述共享服务信息包含共享服务的IP地址、端口号和文件请求指令。After the receiver opens the QR code scanning shared receiving program, it first needs to determine whether the wifi network connection is turned on. If it is not turned on, the system prompts the user to perform the opening operation in the form of a dialog box. If the wifi network connection has been opened, the program automatically opens the camera to scan the two-dimensional code, and parses the shared service information of the file to be shared in the two-dimensional code, where the shared service information includes the IP address and port of the shared service. Number and file request instructions.
S36、根据解析出的IP和端口号向服务发起连接请求;S36. Initiate a connection request to the service according to the parsed IP and port number.
S37、连接请求成功,向服务端发起文件共享请求命令;S37. The connection request is successful, and a file sharing request command is initiated to the server.
连接请求成功后,接收方无需自己合成请求指令,只需要把从二维码中得到的指令直接发送给共享提供方手机就可。这样做,一方面共享方可以对接收方发送的指令进行快速验证,而接收方无需做多余的操作;另一方面,共享方可以同时共享多个文件,只要在提供共享方的手机上生成多张二维码,或者多次生成二维码,每张或每次对应不同的文件,这样服务器可以不作任何变动就能完成共享文件的传输。After the connection request is successful, the receiver does not need to synthesize the request instruction by itself, and only needs to send the instruction obtained from the two-dimensional code directly to the shared provider mobile phone. In this way, on the one hand, the sharing party can quickly verify the instructions sent by the receiver, and the receiving party does not need to perform redundant operations; on the other hand, the sharing party can share multiple files at the same time, as long as the generating party generates more on the mobile phone providing the sharing party. A two-dimensional code, or multiple generations of two-dimensional codes, each or each corresponding to a different file, so that the server can complete the transfer of the shared file without any changes.
之后的文件传输阶段包括:共享方接收所述接收方发送的文件共享请求指令,解析出所述文件共享请求指令中包含的待共享文件在手机中所处的详细路径信息(即FilePath中所包含的路径信息);将所述路径详细信息的指定共享文件发送给所述接收方(如通过TCP方式);所述接收方接收所述带共享的文件,并将文件保存在手机指定的文件路径中,此文件路径可以是系统默认的,也可以是用户预先指定的。The file transfer phase includes: the sharing party receives the file sharing request instruction sent by the receiving party, and parses out the detailed path information of the file to be shared included in the file sharing request instruction in the mobile phone (that is, included in the FilePath) Path information); transmitting the specified shared file of the path detailed information to the receiver (such as by TCP); the receiving party receives the shared file and saves the file in a file path specified by the mobile phone In this case, the file path can be either system default or pre-specified by the user.
由上可见,本发明在进行文件共享传输时不需要事先填写接收方的任何信息,只需要接收方用手机上的摄像头扫描共享方手机屏幕上生成的二维码,且无需自己合成文件共享请求指令,只需要把从二维码中得到的共享指令直接发送给共享方手机就可以实现,方便快捷,为用户提供了便利。It can be seen from the above that the present invention does not need to fill in any information of the receiver in advance when performing file sharing transmission, and only needs the receiver to scan the QR code generated on the screen of the shared mobile phone by using the camera on the mobile phone, and does not need to synthesize the file sharing request by itself. The instruction only needs to directly send the shared instruction obtained from the two-dimensional code to the sharing party mobile phone, which is convenient and quick, and provides convenience for the user.
基于上述实施例,本发明还提供一种基于二维码的文件共享系统,如图4所示,包括:Based on the foregoing embodiment, the present invention further provides a file sharing system based on a two-dimensional code, as shown in FIG. 4, including:
二维码生成显示模块100,用于移动终端共享方选择待共享的文件,将所述待共享文件的共享服务信息处理成二维码,并将所述二维码显示在移动终端的屏幕上;具体如上所述。The two-dimensional code generation display module 100 is configured to: the mobile terminal sharing party selects a file to be shared, processes the shared service information of the file to be shared into a two-dimensional code, and displays the two-dimensional code on a screen of the mobile terminal. Specifically as described above.
二维码扫描解析模块200,用于移动终端接收方扫描并解析所述二维码,根据解析出的二维码中的共享服务信息通过网络连接向移动终端共享方发送文件共享请求;具体如上所述。The two-dimensional code scanning and parsing module 200 is configured to: the mobile terminal receiving party scans and parses the two-dimensional code, and sends a file sharing request to the mobile terminal sharing party according to the shared service information in the parsed two-dimensional code through a network connection; Said.
文件共享模块300,用于移动终端共享方接收所述文件共享请求,并将所述待共享的文件发送给所述移动终端接收方;具体如上所述。The file sharing module 300 is configured to receive, by the mobile terminal sharing party, the file sharing request, and send the file to be shared to the mobile terminal receiving party; as described above.
所述待共享文件的共享服务信息包括:服务IP地址、端口号和文件请求命令。The shared service information of the file to be shared includes: a service IP address, a port number, and a file request command.
进一步地,所述基于二维码的文件共享系统,如图5所示,所述维码生成显示模块100还包括:Further, the two-dimensional code-based file sharing system, as shown in FIG. 5, the dimension code generation display module 100 further includes:
共享文件选择单元110,用于移动终端共享方选择待共享的文件,同时选择用二维码扫描的方式进行共享;具体如上所述。The shared file selection unit 110 is configured to select a file to be shared by the mobile terminal sharing party, and select to share by using a two-dimensional code scanning; as described above.
第一网络连接判断单元120,用于进一步判断所述移动终端共享方是否打开网络连接,若所述网络连接已经打开,则系统自动建立一个共享服务程序;具体如上所述。The first network connection determining unit 120 is configured to further determine whether the mobile terminal sharing party opens a network connection, and if the network connection is already open, the system automatically establishes a shared service program; as described above.
共享服务信息获取单元130,用于所述共享服务程序获取共享服务IP地址和端口号,并根据所述待共享文件在移动终端中所处的路径信息生成文件请求指令;具体如上所述。The shared service information obtaining unit 130 is configured to obtain the shared service IP address and the port number, and generate a file request instruction according to the path information of the file to be shared in the mobile terminal; as described above.
二维码生成单元140,用于将所述共享服务IP地址、端口号和文件请求指令处理成二维码,并将所述二维码显示在移动终端的屏幕上;具体如上所述。The two-dimensional code generating unit 140 is configured to process the shared service IP address, the port number, and the file request instruction into a two-dimensional code, and display the two-dimensional code on a screen of the mobile terminal; as described above.
进一步地,所述基于二维码的文件共享系统,如图6所示,所述二维码扫描解析模块200具体包括:Further, the two-dimensional code-based file sharing system, as shown in FIG. 6, the two-dimensional code scanning and parsing module 200 specifically includes:
第二网络连接判断单元210,用于预先判断所述移动终端接收方是否打开网络连接;具体如上所述。The second network connection determining unit 210 is configured to determine in advance whether the mobile terminal receiver opens a network connection; specifically, as described above.
共享服务信息解析单元220,用于若所述网络连接已经打开,则移动终端接收方扫描所述二维码,并解析所述二维码中的待共享文件的共享服务信息,所述共享服务信息包含共享服务的IP地址、端口号和文件请求指令;具体如上所述。The shared service information parsing unit 220 is configured to: if the network connection has been opened, the mobile terminal receiver scans the two-dimensional code, and parses the shared service information of the file to be shared in the two-dimensional code, the sharing service The information includes the IP address, port number, and file request command of the shared service; as described above.
网络连接请求单元230,用于根据解析出的服务IP地址和端口号向指定的移动终端共享方发送建立网络连接请求;具体如上所述。The network connection requesting unit 230 is configured to send a establish network connection request to the designated mobile terminal sharing party according to the parsed service IP address and port number; as described above.
文件共享请求单元240,用于所述网络连接请求成功后,进一步将解析出的文件请求指令作为文件共享请求直接发送至指定的移动终端共享方;具体如上所述。The file sharing requesting unit 240, after the network connection request is successful, further sends the parsed file request instruction as a file sharing request to the designated mobile terminal sharing party; as described above.
进一步地,所述基于二维码的文件共享系统,如图7所示,所述文件共享模块300具体包括:Further, the two-dimensional code-based file sharing system, as shown in FIG. 7, the file sharing module 300 specifically includes:
路径信息解析单元310,用于移动终端共享方接收所述移动终端接收方发送的文件请求指令,解析出所述文件请求指令中包含的待共享文件在移动终端中所处的路径信息;具体如上所述。The path information parsing unit 310 is configured to receive, by the mobile terminal sharing party, a file request instruction sent by the mobile terminal receiver, and parse the path information of the file to be shared included in the file request instruction in the mobile terminal; Said.
文件发送单元320,用于将所述路径信息的指定共享文件发送给所述移动终端接收方;具体如上所述。The file sending unit 320 is configured to send the specified shared file of the path information to the mobile terminal receiver; as described above.
文件接收存储单元330,用于所述移动终端接收方接收所述带共享的文件,并将文件保存在移动终端指定的文件路径中;具体如上所述。The file receiving storage unit 330 is configured to receive, by the mobile terminal receiver, the file with the sharing, and save the file in a file path specified by the mobile terminal; as described above.
基于上述实施例,本发明还提供一种移动终端,本实施例所述的移动终端包括上述所述的基于二维码的文件共享系统。Based on the foregoing embodiment, the present invention further provides a mobile terminal, where the mobile terminal according to the embodiment includes the above-mentioned two-dimensional code-based file sharing system.
综上所述,本发明所提供的一种基于二维码的文件共享方法、系统及移动终端,所述方法具体包括:移动终端共享方选择待共享的文件,将所述待共享文件的共享服务信息处理成二维码,并将所述二维码显示在移动终端的屏幕上;移动终端接收方扫描并解析所述二维码,根据解析出的二维码中的共享服务信息通过网络连接向移动终端共享方发送文件共享请求;移动终端共享方接收所述文件共享请求,并将所述待共享的文件发送给所述移动终端接收方。本发明在进行文件共享传输时不需要事先填写接收方的任何信息,只需要接收方用手机上的摄像头扫描共享方手机屏幕上生成的二维码,且无需自己合成文件共享请求指令,只需要把从二维码中得到的共享指令直接发送给共享方手机就可以实现,方便快捷;另外,共享方可以同时共享多个文件,只要在提供共享方的手机上生成多张二维码,或者多次生成二维码,每张或每次对应不同的文件,这样服务器可以不作任何变动就能完成共享文件的传输。In summary, the present invention provides a method and system for sharing a file based on a two-dimensional code, and the method includes: the mobile terminal sharing party selects a file to be shared, and shares the file to be shared. The service information is processed into a two-dimensional code, and the two-dimensional code is displayed on a screen of the mobile terminal; the mobile terminal receiver scans and parses the two-dimensional code, and passes the network according to the shared service information in the parsed two-dimensional code. The connection sends a file sharing request to the mobile terminal sharing party; the mobile terminal sharing party receives the file sharing request, and sends the file to be shared to the mobile terminal receiving party. The invention does not need to fill in any information of the receiver in advance when performing file sharing transmission, and only needs the receiver to scan the two-dimensional code generated on the screen of the shared party mobile phone by using the camera on the mobile phone, and does not need to synthesize the file sharing request instruction by itself, only need to Sending the shared instruction obtained from the QR code directly to the shared party mobile phone can be realized conveniently and conveniently; in addition, the sharing party can share multiple files at the same time, as long as multiple QR codes are generated on the mobile phone providing the sharing party, or multiple times Generate a QR code, each or each corresponding to a different file, so that the server can complete the transfer of the shared file without any changes.
应当理解的是,本发明的应用不限于上述的举例,对本领域普通技术人员来说,可以根据上述说明加以改进或变换,所有这些改进和变换都应属于本发明所附权利要求的保护范围。It is to be understood that the application of the present invention is not limited to the above-described examples, and those skilled in the art can make modifications and changes in accordance with the above description, all of which are within the scope of the appended claims.

Claims (13)

  1. 一种基于二维码的文件共享方法,其中包括步骤: A method for sharing a file based on a two-dimensional code, comprising the steps of:
    移动终端共享方选择待共享的文件,并选择用二维码扫描的方式进行共享,判断所述移动终端共享方是否打开网络连接,若所述网络连接已经打开,则建立一个共享服务程序,将所述待共享文件的共享服务信息处理成二维码,并将所述二维码显示在移动终端的屏幕上;The mobile terminal sharing party selects a file to be shared, and selects to share by using a two-dimensional code scanning manner, and determines whether the mobile terminal sharing party opens a network connection, and if the network connection is already opened, establishing a sharing service program, The shared service information of the file to be shared is processed into a two-dimensional code, and the two-dimensional code is displayed on a screen of the mobile terminal;
    预先判断所述移动终端接收方是否打开网络连接,若所述网络连接已经打开,则移动终端接收方扫描所述二维码,并解析所述二维码中的待共享文件的共享服务信息,根据解析出的二维码中的共享服务信息通过网络连接向移动终端共享方发送文件共享请求;Pre-determining whether the mobile terminal receiver opens a network connection, if the network connection is already open, the mobile terminal receiver scans the two-dimensional code, and parses the shared service information of the file to be shared in the two-dimensional code, Sending a file sharing request to the mobile terminal sharing party through the network connection according to the shared service information in the parsed two-dimensional code;
    移动终端共享方接收所述文件共享请求,并将所述待共享的文件发送给所述移动终端接收方。The mobile terminal sharing party receives the file sharing request, and sends the file to be shared to the mobile terminal receiving party.
  2. 根据权利要求1所述的基于二维码的文件共享方法,其中所述待共享文件的共享服务信息包括:服务互联网协议地址、端口号和文件请求命令。The two-dimensional code-based file sharing method according to claim 1, wherein the shared service information of the file to be shared includes: a service internet protocol address, a port number, and a file request command.
  3. 根据权利要求2所述的基于二维码的文件共享方法,其中所述将所述待共享文件的共享服务信息处理成二维码,并将所述二维码显示在移动终端的屏幕上具体包括步骤:The two-dimensional code-based file sharing method according to claim 2, wherein the sharing service information of the file to be shared is processed into a two-dimensional code, and the two-dimensional code is displayed on a screen of the mobile terminal. Including steps:
    所述共享服务程序获取共享服务互联网协议地址和端口号,并根据所述待共享文件在移动终端中所处的路径信息生成文件请求指令;The shared service program obtains a shared service Internet protocol address and a port number, and generates a file request instruction according to the path information of the file to be shared in the mobile terminal;
    将所述共享服务互联网协议地址、端口号和文件请求指令处理成二维码,并将所述二维码显示在移动终端的屏幕上。The shared service internet protocol address, port number, and file request instruction are processed into a two-dimensional code, and the two-dimensional code is displayed on a screen of the mobile terminal.
  4. 根据权利要求2所述的基于二维码的文件共享方法,其中所述根据解析出的二维码中的共享服务信息通过网络连接向移动终端共享方发送文件共享请求,具体包括步骤:The two-dimensional code-based file sharing method according to claim 2, wherein the sending the file sharing request to the mobile terminal sharing party according to the shared service information in the parsed two-dimensional code through the network connection, specifically comprising the steps of:
    根据解析出的服务互联网协议地址和端口号向指定的移动终端共享方发送建立网络连接请求;Sending a network connection request to the designated mobile terminal sharing party according to the parsed service internet protocol address and port number;
    所述网络连接请求成功后,进一步将解析出的文件请求指令作为文件共享请求直接发送至指定的移动终端共享方。After the network connection request is successful, the parsed file request instruction is further sent as a file sharing request to the designated mobile terminal sharing party.
  5. 根据权利要求3所述的基于二维码的文件共享方法,其中所述移动终端共享方接收所述文件共享请求,并将所述待共享的文件发送给所述移动终端接收方,具体包括:The two-dimensional code-based file sharing method according to claim 3, wherein the mobile terminal sharing party receives the file sharing request and sends the file to be shared to the mobile terminal receiving party, which specifically includes:
    移动终端共享方接收所述移动终端接收方发送的文件请求指令,解析出所述文件请求指令中包含的待共享文件在移动终端中所处的路径信息;Receiving, by the mobile terminal sharing party, a file request instruction sent by the mobile terminal receiver, and parsing path information of the file to be shared included in the file request instruction in the mobile terminal;
    将所述路径信息的指定共享文件发送给所述移动终端接收方;Transmitting the specified shared file of the path information to the mobile terminal receiver;
    所述移动终端接收方接收所述带共享的文件,并将文件保存在移动终端指定的文件路径中。The mobile terminal receiver receives the shared file and saves the file in a file path designated by the mobile terminal.
  6. 一种基于二维码的文件共享系统,其中包括: A two-dimensional code based file sharing system, including:
    二维码生成显示模块,用于移动终端共享方选择待共享的文件,将所述待共享文件的共享服务信息处理成二维码,并将所述二维码显示在移动终端的屏幕上;a two-dimensional code generating display module, configured to: the mobile terminal sharing party selects a file to be shared, processes the shared service information of the file to be shared into a two-dimensional code, and displays the two-dimensional code on a screen of the mobile terminal;
    二维码扫描解析模块,用于移动终端接收方扫描并解析所述二维码,根据解析出的二维码中的共享服务信息通过网络连接向移动终端共享方发送文件共享请求;a two-dimensional code scanning parsing module, configured to: the mobile terminal receiving party scans and parses the two-dimensional code, and sends a file sharing request to the mobile terminal sharing party according to the shared service information in the parsed two-dimensional code through a network connection;
    文件共享模块,用于移动终端共享方接收所述文件共享请求,并将所述待共享的文件发送给所述移动终端接收方。a file sharing module, configured to receive, by the mobile terminal sharing party, the file sharing request, and send the file to be shared to the mobile terminal receiving party.
  7. 根据权利要求6所述基于二维码的文件共享系统,其中所述待共享文件的共享服务信息包括:服务互联网协议地址、端口号和文件请求命令;The two-dimensional code-based file sharing system according to claim 6, wherein the shared service information of the file to be shared includes: a service internet protocol address, a port number, and a file request command;
    所述二维码生成显示模块具体包括:The two-dimensional code generation display module specifically includes:
    共享文件选择单元,用于移动终端共享方选择待共享的文件,同时选择用二维码扫描的方式进行共享;a shared file selection unit, configured for the mobile terminal sharing party to select a file to be shared, and simultaneously selecting to scan by using a two-dimensional code to share;
    第一网络连接判断单元,用于进一步判断所述移动终端共享方是否打开网络连接,若所述网络连接已经打开,则系统自动建立一个共享服务程序;a first network connection determining unit, configured to further determine whether the mobile terminal sharing party opens a network connection, and if the network connection is already open, the system automatically establishes a shared service program;
    共享服务信息获取单元,用于所述共享服务程序获取共享服务互联网协议地址和端口号,并根据所述待共享文件在移动终端中所处的路径信息生成文件请求指令;a shared service information obtaining unit, configured to acquire a shared service Internet protocol address and a port number, and generate a file request instruction according to the path information of the file to be shared in the mobile terminal;
    二维码生成单元,用于将所述共享服务互联网协议地址、端口号和文件请求指令处理成二维码,并将所述二维码显示在移动终端的屏幕上。The two-dimensional code generating unit is configured to process the shared service internet protocol address, the port number, and the file request instruction into a two-dimensional code, and display the two-dimensional code on a screen of the mobile terminal.
  8. 根据权利要求7所述基于二维码的文件共享系统,其中所述二维码扫描解析模块具体包括:The two-dimensional code-based file sharing system of claim 7, wherein the two-dimensional code scanning and parsing module comprises:
    第二网络连接判断单元,用于预先判断所述移动终端接收方是否打开网络连接;a second network connection determining unit, configured to pre-determine whether the mobile terminal receiver opens a network connection;
    共享服务信息解析单元,用于若所述网络连接已经打开,则移动终端接收方扫描所述二维码,并解析所述二维码中的待共享文件的共享服务信息,所述共享服务信息包含共享服务的互联网协议地址、端口号和文件请求指令;a shared service information parsing unit, configured to: if the network connection is already open, the mobile terminal receiver scans the two-dimensional code, and parses shared service information of the file to be shared in the two-dimensional code, the shared service information Internet protocol address, port number, and file request instruction including the shared service;
    网络连接请求单元,用于根据解析出的服务互联网协议地址和端口号向指定的移动终端共享方发送建立网络连接请求;a network connection requesting unit, configured to send a network connection request to the designated mobile terminal sharing party according to the parsed service internet protocol address and port number;
    文件共享请求单元,用于所述网络连接请求成功后,进一步将解析出的文件请求指令作为文件共享请求直接发送至指定的移动终端共享方。The file sharing request unit, after the network connection request is successful, further sends the parsed file request instruction as a file sharing request to the designated mobile terminal sharing party.
  9. 根据权利要求7所述基于二维码的文件共享系统,其中所述文件共享模块还包括:The two-dimensional code-based file sharing system of claim 7, wherein the file sharing module further comprises:
    路径信息解析单元,用于移动终端共享方接收所述移动终端接收方发送的文件请求指令,解析出所述文件请求指令中包含的待共享文件在移动终端中所处的路径信息;a path information parsing unit, configured to receive, by the mobile terminal sharing party, a file request instruction sent by the mobile terminal receiver, and parse the path information of the file to be shared included in the file request instruction in the mobile terminal;
    文件发送单元,用于将所述路径信息的指定共享文件发送给所述移动终端接收方;a file sending unit, configured to send the specified shared file of the path information to the mobile terminal receiver;
    文件接收存储单元,用于所述移动终端接收方接收所述带共享的文件,并将文件保存在移动终端指定的文件路径中。 And a file receiving storage unit, configured to receive, by the mobile terminal receiver, the file with the sharing, and save the file in a file path specified by the mobile terminal.
  10. 一种移动终端,其中包括基于二维码的文件共享系统,该系统包括: A mobile terminal includes a two-dimensional code based file sharing system, the system comprising:
    二维码生成显示模块,用于移动终端共享方选择待共享的文件,将所述待共享文件的共享服务信息处理成二维码,并将所述二维码显示在移动终端的屏幕上;a two-dimensional code generating display module, configured to: the mobile terminal sharing party selects a file to be shared, processes the shared service information of the file to be shared into a two-dimensional code, and displays the two-dimensional code on a screen of the mobile terminal;
    二维码扫描解析模块,用于移动终端接收方扫描并解析所述二维码,根据解析出的二维码中的共享服务信息通过网络连接向移动终端共享方发送文件共享请求;a two-dimensional code scanning parsing module, configured to: the mobile terminal receiving party scans and parses the two-dimensional code, and sends a file sharing request to the mobile terminal sharing party according to the shared service information in the parsed two-dimensional code through a network connection;
    文件共享模块,用于移动终端共享方接收所述文件共享请求,并将所述待共享的文件发送给所述移动终端接收方。a file sharing module, configured to receive, by the mobile terminal sharing party, the file sharing request, and send the file to be shared to the mobile terminal receiving party.
  11. 根据权利要求10所述移动终端,其中所述待共享文件的共享服务信息包括:服务互联网协议地址、端口号和文件请求命令;The mobile terminal according to claim 10, wherein the shared service information of the file to be shared comprises: a service internet protocol address, a port number, and a file request command;
    所述二维码生成显示模块具体包括:The two-dimensional code generation display module specifically includes:
    共享文件选择单元,用于移动终端共享方选择待共享的文件,同时选择用二维码扫描的方式进行共享;a shared file selection unit, configured for the mobile terminal sharing party to select a file to be shared, and simultaneously selecting to scan by using a two-dimensional code to share;
    第一网络连接判断单元,用于进一步判断所述移动终端共享方是否打开网络连接,若所述网络连接已经打开,则系统自动建立一个共享服务程序;a first network connection determining unit, configured to further determine whether the mobile terminal sharing party opens a network connection, and if the network connection is already open, the system automatically establishes a shared service program;
    共享服务信息获取单元,用于所述共享服务程序获取共享服务互联网协议地址和端口号,并根据所述待共享文件在移动终端中所处的路径信息生成文件请求指令;a shared service information obtaining unit, configured to acquire a shared service Internet protocol address and a port number, and generate a file request instruction according to the path information of the file to be shared in the mobile terminal;
    二维码生成单元,用于将所述共享服务互联网协议地址、端口号和文件请求指令处理成二维码,并将所述二维码显示在移动终端的屏幕上。The two-dimensional code generating unit is configured to process the shared service internet protocol address, the port number, and the file request instruction into a two-dimensional code, and display the two-dimensional code on a screen of the mobile terminal.
  12. 根据权利要求11所述基于二维码的文件共享系统,其中所述二维码扫描解析模块具体包括:The two-dimensional code-based file sharing system of claim 11, wherein the two-dimensional code scanning and parsing module comprises:
    第二网络连接判断单元,用于预先判断所述移动终端接收方是否打开网络连接;a second network connection determining unit, configured to pre-determine whether the mobile terminal receiver opens a network connection;
    共享服务信息解析单元,用于若所述网络连接已经打开,则移动终端接收方扫描所述二维码,并解析所述二维码中的待共享文件的共享服务信息,所述共享服务信息包含共享服务的互联网协议地址、端口号和文件请求指令;a shared service information parsing unit, configured to: if the network connection is already open, the mobile terminal receiver scans the two-dimensional code, and parses shared service information of the file to be shared in the two-dimensional code, the shared service information Internet protocol address, port number, and file request instruction including the shared service;
    网络连接请求单元,用于根据解析出的服务互联网协议地址和端口号向指定的移动终端共享方发送建立网络连接请求;a network connection requesting unit, configured to send a network connection request to the designated mobile terminal sharing party according to the parsed service internet protocol address and port number;
    文件共享请求单元,用于所述网络连接请求成功后,进一步将解析出的文件请求指令作为文件共享请求直接发送至指定的移动终端共享方。The file sharing request unit, after the network connection request is successful, further sends the parsed file request instruction as a file sharing request to the designated mobile terminal sharing party.
  13. 根据权利要求11所述基于二维码的文件共享系统,其中所述文件共享模块还包括:The two-dimensional code-based file sharing system of claim 11, wherein the file sharing module further comprises:
    路径信息解析单元,用于移动终端共享方接收所述移动终端接收方发送的文件请求指令,解析出所述文件请求指令中包含的待共享文件在移动终端中所处的路径信息;a path information parsing unit, configured to receive, by the mobile terminal sharing party, a file request instruction sent by the mobile terminal receiver, and parse the path information of the file to be shared included in the file request instruction in the mobile terminal;
    文件发送单元,用于将所述路径信息的指定共享文件发送给所述移动终端接收方;a file sending unit, configured to send the specified shared file of the path information to the mobile terminal receiver;
    文件接收存储单元,用于所述移动终端接收方接收所述带共享的文件,并将文件保存在移动终端指定的文件路径中。 And a file receiving storage unit, configured to receive, by the mobile terminal receiver, the file with the sharing, and save the file in a file path specified by the mobile terminal.
PCT/CN2015/084669 2015-01-29 2015-07-21 Two-dimensional barcode-based file sharing method, system and mobile terminal WO2016119414A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510046724.4A CN104601715B (en) 2015-01-29 2015-01-29 A kind of file sharing method based on Quick Response Code, system and mobile terminal
CN201510046724.4 2015-01-29

Publications (1)

Publication Number Publication Date
WO2016119414A1 true WO2016119414A1 (en) 2016-08-04

Family

ID=53127208

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/084669 WO2016119414A1 (en) 2015-01-29 2015-07-21 Two-dimensional barcode-based file sharing method, system and mobile terminal

Country Status (2)

Country Link
CN (1) CN104601715B (en)
WO (1) WO2016119414A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111262746A (en) * 2020-03-04 2020-06-09 深信服科技股份有限公司 Equipment opening deployment system and method
CN112307794A (en) * 2020-11-25 2021-02-02 杭州视洞科技有限公司 Method for transmitting data by scanning multiple two-dimensional codes through camera
CN113095098A (en) * 2021-04-07 2021-07-09 二十二冶集团装备制造有限公司 System for acquiring CNC (computer numerical control) program for numerical control cutting based on two-dimensional code

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105163171A (en) * 2015-07-07 2015-12-16 深圳市美贝壳科技有限公司 File transmission method between set top box and mobile terminal and system
CN106230932A (en) * 2016-07-31 2016-12-14 深圳市青葡萄科技有限公司 A kind of cloud disk shares the apparatus and method of file
CN107566367A (en) * 2017-09-02 2018-01-09 刘兴丹 A kind of shared method, apparatus of cloud storage information network certification
CN113507481A (en) * 2017-10-19 2021-10-15 西安万像电子科技有限公司 Method and system for processing multimedia content
CN107862034A (en) * 2017-11-03 2018-03-30 广州视源电子科技股份有限公司 Method, device and equipment for rapidly saving files and storage medium
CN111698191A (en) * 2019-03-13 2020-09-22 青岛海尔电冰箱有限公司 Shared information system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102855323A (en) * 2012-09-11 2013-01-02 北京蜂侠飞科技有限公司 Information sharing method based on two-dimension codes and system implementing method
CN103024063A (en) * 2012-12-24 2013-04-03 腾讯科技(深圳)有限公司 Data sharing method, clients and data sharing system
CN103761327A (en) * 2014-01-29 2014-04-30 百度在线网络技术(北京)有限公司 Resource sharing method and system, terminal and server
US20140172982A1 (en) * 2012-12-14 2014-06-19 Tencent Technology (Shenzhen) Company Limited Method, server and system for data sharing
CN103942519A (en) * 2013-01-17 2014-07-23 腾讯科技(深圳)有限公司 Content sharing method between multiple terminals, graphic code encoding end and graphic code decoding end

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004080097A1 (en) * 2003-03-07 2004-09-16 Ktfreetel Co., Ltd Method for providing mobile service using code-pattern
CN102394926A (en) * 2011-10-31 2012-03-28 中科创达软件科技(北京)有限公司 Method for transferring files to terminals
CN103095852A (en) * 2013-02-27 2013-05-08 上海够快网络科技有限公司 Cloud storage file sharing method based on two-dimensional code

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102855323A (en) * 2012-09-11 2013-01-02 北京蜂侠飞科技有限公司 Information sharing method based on two-dimension codes and system implementing method
US20140172982A1 (en) * 2012-12-14 2014-06-19 Tencent Technology (Shenzhen) Company Limited Method, server and system for data sharing
CN103024063A (en) * 2012-12-24 2013-04-03 腾讯科技(深圳)有限公司 Data sharing method, clients and data sharing system
CN103942519A (en) * 2013-01-17 2014-07-23 腾讯科技(深圳)有限公司 Content sharing method between multiple terminals, graphic code encoding end and graphic code decoding end
CN103761327A (en) * 2014-01-29 2014-04-30 百度在线网络技术(北京)有限公司 Resource sharing method and system, terminal and server

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111262746A (en) * 2020-03-04 2020-06-09 深信服科技股份有限公司 Equipment opening deployment system and method
CN111262746B (en) * 2020-03-04 2023-05-12 深信服科技股份有限公司 Equipment opening deployment system and method
CN112307794A (en) * 2020-11-25 2021-02-02 杭州视洞科技有限公司 Method for transmitting data by scanning multiple two-dimensional codes through camera
CN113095098A (en) * 2021-04-07 2021-07-09 二十二冶集团装备制造有限公司 System for acquiring CNC (computer numerical control) program for numerical control cutting based on two-dimensional code

Also Published As

Publication number Publication date
CN104601715A (en) 2015-05-06
CN104601715B (en) 2018-04-06

Similar Documents

Publication Publication Date Title
WO2016119414A1 (en) Two-dimensional barcode-based file sharing method, system and mobile terminal
WO2014051367A1 (en) User terminal apparatus, electronic device, and method for controlling the same
WO2013118988A1 (en) Method and apparatus for interoperably performing services and system supporting the same
EP2989848A1 (en) Electronic device and method of registering personal cloud apparatus in user portal server thereof
US10951683B2 (en) Systems and methods for remote interaction
WO2018080060A1 (en) Content output device and control method thereof
WO2011025219A2 (en) Remote control method and system using control user interface
WO2018143711A1 (en) System and method of providing sensing data to electronic device
WO2018233352A1 (en) Data transmission method, device, terminal and computer-readable storage medium
WO2014065631A1 (en) Method for operating application providing group call service using mobile voice over internet protocol
WO2019161598A1 (en) Method, apparatus and device for interacting instant messaging with mail, and storage medium
WO2020133741A1 (en) Peripheral control method, television, and readable storage medium
WO2018153268A1 (en) Method and system for selecting volte according to sim card by mobile terminal, and mobile terminal
WO2017090076A1 (en) Information processing system, wireless terminal, and information processing method
WO2017012417A1 (en) Control method between multi-screen interactive devices, multi-screen interactive device, and system
US10664468B2 (en) Communication supporting device, method, and comuper program
WO2015002384A1 (en) Server, control method thereof, image processing apparatus, and control method thereof
WO2014035171A1 (en) Method and apparatus for transmitting file during video call in electronic device
WO2016090775A1 (en) Synchronous operation method and system for short message data
WO2014042357A1 (en) Screen synchronization control system, and method and apparatus for synchronizing a screen using same
WO2018010240A1 (en) Photographing synchronization method and apparatus
WO2013183818A1 (en) Method and system for message service in multi-device environment, and apparatus therefor
WO2017135776A1 (en) Display apparatus, user terminal apparatus, system, and controlling method thereof
WO2012099402A2 (en) Method and apparatus for phone communication using home network
WO2013154243A1 (en) Method for managing calls and mobile terminal using the same

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

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

Country of ref document: EP

Kind code of ref document: A1