WO2016169079A1 - Mobile terminal wireless storage method and system - Google Patents

Mobile terminal wireless storage method and system Download PDF

Info

Publication number
WO2016169079A1
WO2016169079A1 PCT/CN2015/079398 CN2015079398W WO2016169079A1 WO 2016169079 A1 WO2016169079 A1 WO 2016169079A1 CN 2015079398 W CN2015079398 W CN 2015079398W WO 2016169079 A1 WO2016169079 A1 WO 2016169079A1
Authority
WO
WIPO (PCT)
Prior art keywords
client
mobile terminal
directory
nfs
address
Prior art date
Application number
PCT/CN2015/079398
Other languages
French (fr)
Chinese (zh)
Inventor
耿斌
王鹏人
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016169079A1 publication Critical patent/WO2016169079A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs

Definitions

  • This document relates to the field of wireless storage, and in particular, to a wireless storage method and system for a mobile terminal.
  • the directory structure of the mobile phone as the storage device can be obtained wirelessly, and then the file is read and written by the directory name, thereby realizing the function of the mobile phone as a wireless storage device.
  • the mobile phone as a storage device in this solution needs to install software to achieve the above functions.
  • the efficiency of the solution is not high enough, and a directory structure needs to be generated on the mobile phone as a storage device for read transmission.
  • the embodiments of the present invention provide a wireless storage method and system for a mobile terminal, which are used to solve the problem that a smart phone needs to be installed as a wireless storage device and generates a directory structure to implement data transmission in the related art.
  • the embodiment of the invention provides a wireless storage method for a mobile terminal, which is applied to a client and a mobile terminal supporting a Network File System (NFS) service connected by a short-range wireless network, including: configuring an NFS service of the mobile terminal
  • NFS Network File System
  • the mobile terminal receives the request command sent by the client, authenticates the client and returns an authentication result; after the client passes the identity verification, allows the client to mount the corresponding directory.
  • the configuring the NFS service of the mobile terminal comprises: adding a network protocol (IP) address of the client, a directory shared by the mobile terminal to the client, and a directory operation authority to the NFS configuration file of the mobile terminal.
  • IP network protocol
  • the authenticating the client includes: when the IP address of the client is consistent with the IP address in the NFS configuration file of the mobile terminal, and the request mounting directory carried by the client request command is included in the NFS configuration file.
  • the authentication result is that the client is authenticated, and the IP address of the client is inconsistent with the IP address in the NFS configuration file of the mobile terminal, or the request command carried by the client is carried.
  • the requesting mount directory is not included in the directory shared by the mobile terminal in the NFS configuration file, the authentication result is that the client is not authenticated.
  • the method further includes: receiving an operation instruction of the client to the mounted directory.
  • the short-range wireless network includes Bluetooth, WIFI.
  • the embodiment of the present invention further provides a wireless storage system of a mobile terminal, which is disposed on a mobile terminal connected to a client through a short-range wireless network, where the client supports an NFS service, and the wireless storage system includes:
  • the configuration module is configured to configure the NFS service of the mobile terminal
  • a verification module configured to receive a request command sent by the client, authenticate the client, and return an authentication result
  • the processing module is configured to allow the client to mount the corresponding directory after the client is authenticated.
  • the configuring module configuring the NFS service of the mobile terminal includes: the configuration module adding an IP address of the client, a directory shared by the mobile terminal to the client, and a directory operation authority to an NFS configuration file of the mobile terminal.
  • the verifying module authenticating the client includes: the verifying module determining that the IP address of the client is consistent with the IP address in the NFS configuration file of the mobile terminal, and the requesting directory is carried by the request command of the client.
  • Mobile terminal sharing in the NFS configuration file When the client is in the directory, the authentication result of the client is authenticated by the client; the verification module determines that the IP address of the client is inconsistent with the IP address in the NFS configuration file of the mobile terminal, or the request of the client
  • the request mount directory carried by the command is not included in the directory shared by the mobile terminal in the NFS configuration file, the authentication result of the client is that the client does not pass the authentication.
  • the short-range wireless network includes Bluetooth, WIFI.
  • the client is a Linux operating system based device.
  • the wireless storage method of the mobile terminal provided by the embodiment of the present invention is applied to a client and a mobile terminal supporting the NFS service connected by the short-range wireless network, and first configuring the NFS service of the mobile terminal, and then the mobile terminal receives the request sent by the client.
  • the command authenticates the client and returns the authentication result.
  • the client is allowed to mount the corresponding directory.
  • the embodiment of the invention is based on the NFS and the short-range wireless transmission protocol, and can conveniently and efficiently help the user to access another NFS-enabled mobile terminal (such as a smart phone) on a device supporting the NFS service (such as a personal computer, a tablet or a mobile phone).
  • the file system on the system does not need to pass through the data line, and does not need to use the software to generate a directory structure for data transmission, which simplifies the operation and improves the user experience.
  • FIG. 1 is a flowchart of a wireless storage method of a mobile terminal according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of a wireless storage method of a mobile terminal according to an embodiment of an application of the present invention
  • FIG. 3 is a schematic diagram of a wireless storage system of a mobile terminal according to Embodiment 2 of the present invention.
  • FIG. 1 is a flowchart of a method for wirelessly storing a mobile terminal according to Embodiment 1 of the present invention.
  • the wireless storage method of the mobile terminal provided in this embodiment is applied to a client and a mobile terminal supporting a Network File System (NFS) service connected by a short-range wireless network, and includes the following steps:
  • NFS Network File System
  • Step 11 Configure the NFS service of the mobile terminal.
  • the network protocol IP, Internet Protocol
  • the directory shared by the mobile terminal to the client the directory operation authority are added to the NFS configuration file of the mobile terminal.
  • Step 12 The mobile terminal receives the request command sent by the client, performs identity verification on the client, and returns an identity verification result.
  • the mobile terminal determines whether the IP address of the client and the request mounting directory carried by the request command and the IP address in the NFS configuration file of the mobile terminal and the directory shared by the mobile terminal to the client are Consistently, when the IP address of the client is the same as the IP address in the NFS configuration file of the mobile terminal, and the request mounting directory carried by the client's request command is included in the directory shared by the mobile terminal in the NFS configuration file to the client,
  • the result of the authentication is that the client is authenticated.
  • the authentication result is that the client is not authenticated.
  • Step 13 After the client is authenticated, the client is allowed to mount the corresponding directory.
  • the client mounts the corresponding directory to its own file system.
  • the corresponding directory that is mounted by the client is a directory that is shared by the mobile terminal to the client or a request to be mounted by the request command of the client.
  • the method further includes: receiving an operation instruction of the client to the mount directory.
  • the short-range wireless network includes Bluetooth and WIFI.
  • the client is a Linux-based device (such as a laptop).
  • Etc. the mobile terminal is a smartphone that supports NFS service.
  • the current Linux-based devices support the network file system.
  • Step 111 connect the client and the mobile terminal through a short-range wireless network
  • the client and the mobile terminal can be connected through a short-range wireless network (such as WIFI or Bluetooth), and the wireless connection is successfully determined through testing.
  • a short-range wireless network such as WIFI or Bluetooth
  • Step 112 Configure an NFS service of the mobile terminal.
  • configuring the NFS service of the mobile terminal includes: reading the IP address of the client (for example, the mobile terminal reads the IP address of the client through the wireless network connection), and the IP address of the client is used.
  • the directory shared by the mobile terminal to the client and the directory operation authority are added to the NFS configuration file of the mobile terminal.
  • the IP address of each client, the directory shared by the mobile terminal to the client, and the directory operation authority correspond to each other.
  • the directory that the mobile terminal shares to the client and the directory operation rights can be set by the user according to the actual situation.
  • the above adding operation can be manually implemented by the user.
  • Step 113 The client sends a request command to the mobile terminal.
  • the client sends a request command to the mobile terminal through a Remote Procedure Call (RPC), for example, through socket communication.
  • RPC Remote Procedure Call
  • the request command carries the client's request to mount the directory.
  • Step 114 The mobile terminal receives the request command and performs identity verification.
  • the mobile terminal After receiving the request command sent by the client, the mobile terminal performs identity verification, that is, determines the IP address of the client and the IP address in the NFS configuration file of the requesting mount directory and the mobile terminal, and whether the directory shared by the mobile terminal to the client is Consistent.
  • identity verification determines the IP address of the client and the IP address in the NFS configuration file of the requesting mount directory and the mobile terminal, and whether the directory shared by the mobile terminal to the client is Consistent.
  • the request mounting directory carried by the client's request command is included in the directory shared by the mobile terminal in the NFS configuration file, that is, the client
  • the IP address of the terminal and the requesting mount directory exist in the NFS configuration file of the mobile terminal, and the mapping between the IP address of the client and the requesting mount directory is correct.
  • the client passes the authentication, and proceeds to step 115. If not, the client does not. Through authentication, that is, the request command sent by the client fails, the client can resend the request command.
  • Step 115 The client mounts the mounted directory of the request
  • the client After the mobile terminal returns the result of the client's authentication to the client, the client will request the mount directory to be mounted to its own file system.
  • the client can also mount a directory shared by all mobile terminals to the client.
  • Step 116 The client operates to mount the file directory.
  • the client mounts the mount directory successfully, it can operate the mount directory (such as reading and writing operations) according to the existing directory operation authority (such as the directory operation permission set in the NFS configuration file).
  • the existing directory operation authority such as the directory operation permission set in the NFS configuration file.
  • Step 117 The client ends the operation of the mount directory.
  • the client After the client reads and writes the mounted directory, the client can choose to cancel the mounting of the shared directory of the mobile terminal, send a cancel mount command to the mobile terminal, and select to disconnect the short-range wireless network connection.
  • FIG. 3 is a schematic diagram of a wireless storage system of a mobile terminal according to an embodiment of the present invention.
  • the wireless storage system of the mobile terminal provided by the embodiment of the present invention is configured to be connected to a mobile terminal connected to the client through a short-range wireless network, and the client supports the NFS service, including:
  • the configuration module is configured to configure the NFS service of the mobile terminal
  • a verification module configured to receive a request command sent by the client, authenticate the client, and return an authentication result
  • the processing module is configured to allow the client to mount the corresponding directory after the client is authenticated.
  • the configuring module configuring the NFS service of the mobile terminal includes: the configuration module adding the IP address of the client, the directory shared by the mobile terminal to the client, and the directory operation authority to the NFS configuration of the mobile terminal file.
  • the verifying module authenticating the client includes: the verification module determining that the IP address of the client is consistent with the IP address in the NFS configuration file of the mobile terminal, and the request command of the client is carried.
  • the verification module determines the IP address and the mobile terminal when the client The IP address in the NFS configuration file of the terminal is inconsistent, or the authentication result is the client when the requesting mount directory carried by the client's request command is not included in the directory of the client shared by the mobile terminal in the NFS configuration file.
  • the terminal is not authenticated.
  • the short-range wireless network includes Bluetooth, WIFI.
  • the client is a Linux operating system based device.
  • the wireless storage method and system for a mobile terminal can conveniently and efficiently assist a user on a Linux operating system-based device (such as a personal computer or a tablet computer) based on the NFS and short-range wireless transmission protocols.
  • a mobile phone accessing a file system on another mobile terminal (such as a smart phone), without using a data line, without using a software to generate a directory structure for data transmission, simplifies operation and improves user experience.
  • the embodiment of the present invention is based on the NFS and the short-range wireless transmission protocol, and can conveniently and efficiently help the user access the file system on the mobile terminal supporting the NFS service on the device supporting the NFS service, without using the data line, and without using software generation.
  • the directory structure performs data transfer, which simplifies operations and improves the user experience.

Abstract

Disclosed in embodiments of the present invention are a mobile terminal wireless storage method and system applied to a network file system (NFS) service-supported client side and mobile terminal connected via a short-range wireless network. The method comprises: configuring an NFS service of the mobile terminal; receiving, by the mobile terminal, a request command transmitted from the client side, performing identity authentication for the client side and returning an identity authentication result; and after the client side passes the identity authentication, allowing the client side to mount a corresponding directory.

Description

移动终端的无线存储方法及系统Wireless storage method and system for mobile terminal 技术领域Technical field
本文涉及无线存储领域,尤其涉及一种移动终端的无线存储方法及系统。This document relates to the field of wireless storage, and in particular, to a wireless storage method and system for a mobile terminal.
背景技术Background technique
随着智能手机的不断发展,现今智能手机已经成为每个人的必需品。目前,普通智能手机的存储容量都在16GB以上,足以满足人们日常文件存储的需求。有些人甚至会随身携带两部以上的智能手机。因此,越来越多的人开始将智能手机作为随身携带的存储器,使用智能手机代替U盘存储文件,比如图片、视频、办公文件等,从而无需携带U盘。人们将数据存储在自己的智能手机或者别人的智能手机上,既便捷又充分利用了智能手机的存储资源。With the continuous development of smart phones, today's smart phones have become a necessity for everyone. At present, the storage capacity of ordinary smartphones is more than 16GB, which is enough to meet the needs of people's daily file storage. Some people even carry more than two smartphones with them. Therefore, more and more people are beginning to use their smartphones as a portable memory, and use a smart phone instead of a USB flash drive to store files, such as pictures, videos, office files, etc., so that there is no need to carry a USB flash drive. People store data on their own smartphones or other people's smartphones, making it easy to take advantage of the storage resources of their smartphones.
相关技术中,通过无线方式可获取作为存储设备的手机的目录结构,然后通过目录名进行文件的读写,从而实现手机作为无线存储设备的功能。然而,该方案中作为存储设备的手机需要安装软件以实现上述功能。而且,该方案的效率不够高,需要在作为存储设备的手机上生成目录结构进行读取传输。In the related art, the directory structure of the mobile phone as the storage device can be obtained wirelessly, and then the file is read and written by the directory name, thereby realizing the function of the mobile phone as a wireless storage device. However, the mobile phone as a storage device in this solution needs to install software to achieve the above functions. Moreover, the efficiency of the solution is not high enough, and a directory structure needs to be generated on the mobile phone as a storage device for read transmission.
发明内容Summary of the invention
本发明实施例提供一种移动终端的无线存储方法及系统,用来解决相关技术中智能手机作为无线存储设备需要安装软件并生成目录结构实现数据传输的问题。The embodiments of the present invention provide a wireless storage method and system for a mobile terminal, which are used to solve the problem that a smart phone needs to be installed as a wireless storage device and generates a directory structure to implement data transmission in the related art.
本发明实施例提供一种移动终端的无线存储方法,应用于通过近程无线网络连接的支持网络文件系统(NFS,Network File System)服务的客户端及移动终端,包括:配置移动终端的NFS服务;所述移动终端接收客户端发送的请求命令,对所述客户端进行身份验证并返回身份验证结果;在所述客户端通过身份验证后,允许所述客户端对相应目录进行挂载。 The embodiment of the invention provides a wireless storage method for a mobile terminal, which is applied to a client and a mobile terminal supporting a Network File System (NFS) service connected by a short-range wireless network, including: configuring an NFS service of the mobile terminal The mobile terminal receives the request command sent by the client, authenticates the client and returns an authentication result; after the client passes the identity verification, allows the client to mount the corresponding directory.
可选地,所述配置移动终端的NFS服务包括:将客户端的网络协议(IP)地址、移动终端共享给所述客户端的目录以及目录操作权限添加至移动终端的NFS配置文件。Optionally, the configuring the NFS service of the mobile terminal comprises: adding a network protocol (IP) address of the client, a directory shared by the mobile terminal to the client, and a directory operation authority to the NFS configuration file of the mobile terminal.
可选地,所述对客户端进行身份验证包括:当客户端的IP地址与移动终端的NFS配置文件中的IP地址一致,且客户端的请求命令携带的请求挂载目录包括在NFS配置文件中的移动终端共享给所述客户端的目录中时,所述身份验证结果为客户端通过身份验证,当客户端的IP地址与移动终端的NFS配置文件中的IP地址不一致,或者,客户端的请求命令携带的请求挂载目录未包括在NFS配置文件中的移动终端共享给所述客户端的目录中时,所述身份验证结果为客户端未通过身份验证。Optionally, the authenticating the client includes: when the IP address of the client is consistent with the IP address in the NFS configuration file of the mobile terminal, and the request mounting directory carried by the client request command is included in the NFS configuration file. When the mobile terminal is shared in the directory of the client, the authentication result is that the client is authenticated, and the IP address of the client is inconsistent with the IP address in the NFS configuration file of the mobile terminal, or the request command carried by the client is carried. When the requesting mount directory is not included in the directory shared by the mobile terminal in the NFS configuration file, the authentication result is that the client is not authenticated.
可选地,所述在所述客户端通过身份验证后,允许所述客户端对相应目录进行挂载之后,所述方法还包括:接收客户端对挂载目录的操作指令。Optionally, after the client is allowed to mount the corresponding directory after the client is authenticated, the method further includes: receiving an operation instruction of the client to the mounted directory.
可选地,所述近程无线网络包括蓝牙、WIFI。Optionally, the short-range wireless network includes Bluetooth, WIFI.
本发明实施例还提供一种移动终端的无线存储系统,设置于通过近程无线网络与客户端连接的移动终端,所述客户端支持NFS服务,所述无线存储系统包括:The embodiment of the present invention further provides a wireless storage system of a mobile terminal, which is disposed on a mobile terminal connected to a client through a short-range wireless network, where the client supports an NFS service, and the wireless storage system includes:
配置模块,设置为配置移动终端的NFS服务;The configuration module is configured to configure the NFS service of the mobile terminal;
验证模块,设置为接收客户端发送的请求命令,对所述客户端进行身份验证并返回身份验证结果;以及a verification module configured to receive a request command sent by the client, authenticate the client, and return an authentication result;
处理模块,设置为在所述客户端通过身份验证后,允许所述客户端对相应目录进行挂载。The processing module is configured to allow the client to mount the corresponding directory after the client is authenticated.
可选地,所述配置模块配置移动终端的NFS服务包括:所述配置模块将客户端的IP地址、移动终端共享给所述客户端的目录以及目录操作权限添加至移动终端的NFS配置文件。Optionally, the configuring module configuring the NFS service of the mobile terminal includes: the configuration module adding an IP address of the client, a directory shared by the mobile terminal to the client, and a directory operation authority to an NFS configuration file of the mobile terminal.
可选地,所述验证模块对客户端进行身份验证包括:所述验证模块判断当客户端的IP地址与移动终端的NFS配置文件中的IP地址一致,且客户端的请求命令携带的请求挂载目录包括在NFS配置文件中的移动终端共享给所 述客户端的目录中时,对所述客户端的身份验证结果为客户端通过身份验证;所述验证模块判断当客户端的IP地址与移动终端的NFS配置文件中的IP地址不一致,或者,客户端的请求命令携带的请求挂载目录未包括在NFS配置文件中的移动终端共享给所述客户端的目录中时,对所述客户端的身份验证结果为客户端未通过身份验证。Optionally, the verifying module authenticating the client includes: the verifying module determining that the IP address of the client is consistent with the IP address in the NFS configuration file of the mobile terminal, and the requesting directory is carried by the request command of the client. Mobile terminal sharing in the NFS configuration file When the client is in the directory, the authentication result of the client is authenticated by the client; the verification module determines that the IP address of the client is inconsistent with the IP address in the NFS configuration file of the mobile terminal, or the request of the client When the request mount directory carried by the command is not included in the directory shared by the mobile terminal in the NFS configuration file, the authentication result of the client is that the client does not pass the authentication.
可选地,所述近程无线网络包括蓝牙、WIFI。Optionally, the short-range wireless network includes Bluetooth, WIFI.
可选地,所述客户端为基于Linux操作系统的设备。Optionally, the client is a Linux operating system based device.
本发明实施例提供的移动终端的无线存储方法,应用于通过近程无线网络连接的支持NFS服务的客户端及移动终端,先配置移动终端的NFS服务,之后,移动终端接收客户端发送的请求命令,对客户端进行身份验证并返回身份验证结果,在客户端通过身份验证后,允许客户端对相应目录进行挂载。本发明实施例基于NFS和近程无线传输协议,可以方便高效地帮助用户在支持NFS服务的设备上(比如个人电脑、平板电脑或者手机),访问另外的支持NFS服务的移动终端(如智能手机)上的文件系统,无需通过数据线,无需用软件生成目录结构进行数据传输,简化了操作,提高了用户体验。The wireless storage method of the mobile terminal provided by the embodiment of the present invention is applied to a client and a mobile terminal supporting the NFS service connected by the short-range wireless network, and first configuring the NFS service of the mobile terminal, and then the mobile terminal receives the request sent by the client. The command authenticates the client and returns the authentication result. After the client is authenticated, the client is allowed to mount the corresponding directory. The embodiment of the invention is based on the NFS and the short-range wireless transmission protocol, and can conveniently and efficiently help the user to access another NFS-enabled mobile terminal (such as a smart phone) on a device supporting the NFS service (such as a personal computer, a tablet or a mobile phone). The file system on the system does not need to pass through the data line, and does not need to use the software to generate a directory structure for data transmission, which simplifies the operation and improves the user experience.
附图概述BRIEF abstract
图1为本发明实施例一提供的移动终端的无线存储方法的流程图;1 is a flowchart of a wireless storage method of a mobile terminal according to Embodiment 1 of the present invention;
图2为本发明应用示例实施例提供的移动终端的无线存储方法的流程图;2 is a flowchart of a wireless storage method of a mobile terminal according to an embodiment of an application of the present invention;
图3为本发明实施例二提供的移动终端的无线存储系统的示意图。FIG. 3 is a schematic diagram of a wireless storage system of a mobile terminal according to Embodiment 2 of the present invention.
本发明的实施方式Embodiments of the invention
实施例一Embodiment 1
图1为本发明实施例一提供的移动终端的无线存储方法的流程图。如图1所示,本实施例提供的移动终端的无线存储方法,应用于通过近程无线网络连接的支持网络文件系统(NFS,Network File System)服务的客户端及移动终端,包括以下步骤: FIG. 1 is a flowchart of a method for wirelessly storing a mobile terminal according to Embodiment 1 of the present invention. As shown in FIG. 1 , the wireless storage method of the mobile terminal provided in this embodiment is applied to a client and a mobile terminal supporting a Network File System (NFS) service connected by a short-range wireless network, and includes the following steps:
步骤11:配置移动终端的NFS服务;Step 11: Configure the NFS service of the mobile terminal.
本步骤中,将客户端的网络协议(IP,Internet Protocol)地址、移动终端共享给所述客户端的目录以及目录操作权限添加至移动终端的NFS配置文件。In this step, the network protocol (IP, Internet Protocol) address of the client, the directory shared by the mobile terminal to the client, and the directory operation authority are added to the NFS configuration file of the mobile terminal.
步骤12:移动终端接收客户端发送的请求命令,对客户端进行身份验证并返回身份验证结果;Step 12: The mobile terminal receives the request command sent by the client, performs identity verification on the client, and returns an identity verification result.
本步骤中,移动终端接收客户端发送的请求命令后,判断客户端的IP地址和请求命令携带的请求挂载目录与移动终端的NFS配置文件中的IP地址和移动终端共享给该客户端的目录是否一致,当客户端的IP地址与移动终端的NFS配置文件中的IP地址一致,且客户端的请求命令携带的请求挂载目录包括在NFS配置文件中的移动终端共享给所述客户端的目录中时,身份验证结果为客户端通过身份验证,当客户端的IP地址与移动终端的NFS配置文件中的IP地址不一致,或者,客户端的请求命令携带的请求挂载目录未包括在NFS配置文件中的移动终端共享给所述客户端的目录中时,身份验证结果为客户端未通过身份验证。In this step, after receiving the request command sent by the client, the mobile terminal determines whether the IP address of the client and the request mounting directory carried by the request command and the IP address in the NFS configuration file of the mobile terminal and the directory shared by the mobile terminal to the client are Consistently, when the IP address of the client is the same as the IP address in the NFS configuration file of the mobile terminal, and the request mounting directory carried by the client's request command is included in the directory shared by the mobile terminal in the NFS configuration file to the client, The result of the authentication is that the client is authenticated. When the IP address of the client is inconsistent with the IP address in the NFS configuration file of the mobile terminal, or the requesting directory carried by the client request is not included in the mobile terminal in the NFS configuration file. When sharing to the client's directory, the authentication result is that the client is not authenticated.
步骤13:在客户端通过身份验证后,允许所述客户端对相应目录进行挂载。Step 13: After the client is authenticated, the client is allowed to mount the corresponding directory.
当移动终端将客户端通过身份验证的结果返回给客户端后,客户端将相应目录挂载到自己的文件系统中。其中,客户端进行挂载的相应目录为所述移动终端共享给所述客户端的目录或者所述客户端的请求命令携带的请求挂载目录。When the mobile terminal returns the result of the client's authentication to the client, the client mounts the corresponding directory to its own file system. The corresponding directory that is mounted by the client is a directory that is shared by the mobile terminal to the client or a request to be mounted by the request command of the client.
可选地,本步骤之后,上述方法还包括:接收客户端对挂载目录的操作指令。Optionally, after the step, the method further includes: receiving an operation instruction of the client to the mount directory.
可选地,本实施例中,近程无线网络包括蓝牙、WIFI。Optionally, in this embodiment, the short-range wireless network includes Bluetooth and WIFI.
应用示例Application example
图2为本发明应用示例提供的移动终端的无线存储方法的流程图。如图2所示,在本实施例中,客户端为基于Linux操作系统的设备(如笔记本电脑 等),移动终端为支持NFS服务的智能手机。其中,目前基于Linux操作系统的设备均支持网络文件系统。2 is a flowchart of a wireless storage method of a mobile terminal provided by an application example of the present invention. As shown in FIG. 2, in this embodiment, the client is a Linux-based device (such as a laptop). Etc.), the mobile terminal is a smartphone that supports NFS service. Among them, the current Linux-based devices support the network file system.
以下对本实施例的各步骤加以详细说明。The respective steps of this embodiment will be described in detail below.
步骤111:通过近程无线网络连接客户端和移动终端;Step 111: connect the client and the mobile terminal through a short-range wireless network;
例如可以通过近程无线网络(比如WIFI或者蓝牙)连接客户端和移动终端,并通过测试确定无线连接成功。For example, the client and the mobile terminal can be connected through a short-range wireless network (such as WIFI or Bluetooth), and the wireless connection is successfully determined through testing.
步骤112:配置移动终端的NFS服务;Step 112: Configure an NFS service of the mobile terminal.
例如,在客户端和移动终端的无线连接成功后,配置移动终端的NFS服务,包括:读取客户端的IP地址(如移动终端通过无线网络连接读取客户端的IP地址),将客户端的IP地址、移动终端共享给所述客户端的目录以及目录操作权限添加到移动终端的NFS配置文件。其中,每个客户端的IP地址、移动终端分享给该客户端的目录以及目录操作权限相对应。对于每个客户端IP地址,移动终端共享给该客户端的目录以及目录操作权限可根据实际情况由用户设置。另外,上述添加操作可由用户手动实现。For example, after the wireless connection between the client and the mobile terminal is successful, configuring the NFS service of the mobile terminal includes: reading the IP address of the client (for example, the mobile terminal reads the IP address of the client through the wireless network connection), and the IP address of the client is used. The directory shared by the mobile terminal to the client and the directory operation authority are added to the NFS configuration file of the mobile terminal. The IP address of each client, the directory shared by the mobile terminal to the client, and the directory operation authority correspond to each other. For each client IP address, the directory that the mobile terminal shares to the client and the directory operation rights can be set by the user according to the actual situation. In addition, the above adding operation can be manually implemented by the user.
步骤113:客户端向移动终端发送请求命令;Step 113: The client sends a request command to the mobile terminal.
其中,客户端通过远程过程调用(RPC,Remote Procedure Call)向移动终端发送请求命令,例如可通过socket通信实现。其中,请求命令携带客户端的请求挂载目录。The client sends a request command to the mobile terminal through a Remote Procedure Call (RPC), for example, through socket communication. The request command carries the client's request to mount the directory.
步骤114:移动终端接收请求命令并进行身份验证;Step 114: The mobile terminal receives the request command and performs identity verification.
其中,移动终端接收到客户端发送的请求命令后,进行身份验证,即判断客户端的IP地址和请求挂载目录与移动终端的NFS配置文件中的IP地址和移动终端共享给该客户端的目录是否一致。当客户端的IP地址与移动终端的NFS配置文件中的IP地址一致,且客户端的请求命令携带的请求挂载目录包括在NFS配置文件中的移动终端共享给所述客户端的目录中时,即客户端的IP地址和请求挂载目录存在于移动终端的NFS配置文件中且客户端的IP地址和请求挂载目录的对应关系正确,则客户端通过身份验证,进入步骤115,如果否,则客户端未通过身份验证,即客户端发送的请求命令失败,客户端可重新发送请求命令。 After receiving the request command sent by the client, the mobile terminal performs identity verification, that is, determines the IP address of the client and the IP address in the NFS configuration file of the requesting mount directory and the mobile terminal, and whether the directory shared by the mobile terminal to the client is Consistent. When the IP address of the client is the same as the IP address in the NFS configuration file of the mobile terminal, and the request mounting directory carried by the client's request command is included in the directory shared by the mobile terminal in the NFS configuration file, that is, the client The IP address of the terminal and the requesting mount directory exist in the NFS configuration file of the mobile terminal, and the mapping between the IP address of the client and the requesting mount directory is correct. Then, the client passes the authentication, and proceeds to step 115. If not, the client does not. Through authentication, that is, the request command sent by the client fails, the client can resend the request command.
步骤115:客户端挂载请求的挂载目录;Step 115: The client mounts the mounted directory of the request;
移动终端将客户端通过身份验证的结果返回给客户端后,客户端将请求挂载目录挂载到自己的文件系统中。于此,客户端也可挂载所有移动终端共享给所述客户端的目录。After the mobile terminal returns the result of the client's authentication to the client, the client will request the mount directory to be mounted to its own file system. Here, the client can also mount a directory shared by all mobile terminals to the client.
步骤116:客户端操作挂载的文件目录;Step 116: The client operates to mount the file directory.
客户端将请求挂载目录挂载成功后,可根据已有目录操作权限(如NFS配置文件中设置的目录操作权限)对挂载目录进行操作(如读写等操作)。After the client mounts the mount directory successfully, it can operate the mount directory (such as reading and writing operations) according to the existing directory operation authority (such as the directory operation permission set in the NFS configuration file).
步骤117:客户端结束对挂载目录的操作。Step 117: The client ends the operation of the mount directory.
客户端对挂载目录的读写等操作完成后,客户端可选择取消对移动终端共享目录的挂载,发送取消挂载命令至移动终端,同时可选择断开近程无线网络连接。After the client reads and writes the mounted directory, the client can choose to cancel the mounting of the shared directory of the mobile terminal, send a cancel mount command to the mobile terminal, and select to disconnect the short-range wireless network connection.
其中,需要说明的是:对于安卓(android)等手机的系统目录,由于网络或者外部应用对系统目录没有访问权限,因此,可以设置仅共享手机的外置存储卡,即手机系统可将外置存储卡内的文件共享给客户端。Among them, it should be noted that for the system directory of Android (android) and other mobile phones, since the network or external application does not have access to the system directory, it is possible to set an external memory card that only shares the mobile phone, that is, the mobile phone system can be externally installed. The files in the memory card are shared with the client.
实施例二Embodiment 2
图3为本发明实施例提供的移动终端的无线存储系统的示意图。如图3所示,本发明实施例提供的移动终端的无线存储系统,设置于通过近程无线网络与客户端连接的移动终端,客户端支持NFS服务,包括:FIG. 3 is a schematic diagram of a wireless storage system of a mobile terminal according to an embodiment of the present invention. As shown in FIG. 3, the wireless storage system of the mobile terminal provided by the embodiment of the present invention is configured to be connected to a mobile terminal connected to the client through a short-range wireless network, and the client supports the NFS service, including:
配置模块,设置为配置移动终端的NFS服务;The configuration module is configured to configure the NFS service of the mobile terminal;
验证模块,设置为接收客户端发送的请求命令,对客户端进行身份验证并返回身份验证结果;以及a verification module configured to receive a request command sent by the client, authenticate the client, and return an authentication result;
处理模块,设置为在所述客户端通过身份验证后,允许所述客户端对相应目录进行挂载。The processing module is configured to allow the client to mount the corresponding directory after the client is authenticated.
在一可选实施例中,所述配置模块配置移动终端的NFS服务包括:所述配置模块将客户端的IP地址、移动终端共享给所述客户端的目录以及目录操作权限添加至移动终端的NFS配置文件。 In an optional embodiment, the configuring module configuring the NFS service of the mobile terminal includes: the configuration module adding the IP address of the client, the directory shared by the mobile terminal to the client, and the directory operation authority to the NFS configuration of the mobile terminal file.
在一可选实施例中,所述验证模块对客户端进行身份验证包括:所述验证模块判断当客户端的IP地址与移动终端的NFS配置文件中的IP地址一致,且客户端的请求命令携带的请求挂载目录包括在NFS配置文件中的移动终端共享给所述客户端的目录中时,对所述客户端的身份验证结果为客户端通过身份验证,所述验证模块判断当客户端的IP地址与移动终端的NFS配置文件中的IP地址不一致,或者,客户端的请求命令携带的请求挂载目录未包括在NFS配置文件中的移动终端共享给所述客户端的目录中时,所述身份验证结果为客户端未通过身份验证。In an optional embodiment, the verifying module authenticating the client includes: the verification module determining that the IP address of the client is consistent with the IP address in the NFS configuration file of the mobile terminal, and the request command of the client is carried. When the requesting mount directory is included in the directory shared by the mobile terminal in the NFS configuration file to the client, the authentication result of the client is authenticated by the client, and the verification module determines the IP address and the mobile terminal when the client The IP address in the NFS configuration file of the terminal is inconsistent, or the authentication result is the client when the requesting mount directory carried by the client's request command is not included in the directory of the client shared by the mobile terminal in the NFS configuration file. The terminal is not authenticated.
在一可选实施例中,所述近程无线网络包括蓝牙、WIFI。In an optional embodiment, the short-range wireless network includes Bluetooth, WIFI.
在一可选实施例中,所述客户端为基于Linux操作系统的设备。In an alternative embodiment, the client is a Linux operating system based device.
另外,关于上述系统的操作过程同上述方法所述,故于此不再赘述。In addition, the operation process of the above system is the same as that described above, and thus will not be described herein.
综上所述,本发明实施例提供的移动终端的无线存储方法及系统,基于NFS和近程无线传输协议,可以方便高效地帮助用户在基于Linux操作系统的设备上(比如个人电脑、平板电脑或者手机),访问另外的移动终端(如智能手机)上的文件系统,无需通过数据线,无需用软件生成目录结构进行数据传输,简化了操作,提高了用户体验。In summary, the wireless storage method and system for a mobile terminal provided by the embodiment of the present invention can conveniently and efficiently assist a user on a Linux operating system-based device (such as a personal computer or a tablet computer) based on the NFS and short-range wireless transmission protocols. Or a mobile phone), accessing a file system on another mobile terminal (such as a smart phone), without using a data line, without using a software to generate a directory structure for data transmission, simplifies operation and improves user experience.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,上述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本发明实施例不限制于任何特定形式的硬件和软件的结合。One of ordinary skill in the art will appreciate that all or a portion of the above steps may be accomplished by a program that instructs the associated hardware, such as a read-only memory, a magnetic disk, or an optical disk. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware or in the form of a software function module. Embodiments of the invention are not limited to any specific form of combination of hardware and software.
工业实用性Industrial applicability
本发明实施例基于NFS和近程无线传输协议,可以方便高效地帮助用户在支持NFS服务的设备上,访问另外的支持NFS服务的移动终端上的文件系统,无需通过数据线,无需用软件生成目录结构进行数据传输,简化了操作,提高了用户体验。 The embodiment of the present invention is based on the NFS and the short-range wireless transmission protocol, and can conveniently and efficiently help the user access the file system on the mobile terminal supporting the NFS service on the device supporting the NFS service, without using the data line, and without using software generation. The directory structure performs data transfer, which simplifies operations and improves the user experience.

Claims (10)

  1. 一种移动终端的无线存储方法,应用于通过近程无线网络连接的支持网络文件系统NFS服务的客户端及移动终端,包括:A wireless storage method for a mobile terminal, which is applied to a client and a mobile terminal supporting a network file system NFS service connected by a short-range wireless network, including:
    配置移动终端的NFS服务;Configuring the NFS service of the mobile terminal;
    所述移动终端接收客户端发送的请求命令,对所述客户端进行身份验证并返回身份验证结果;Receiving, by the mobile terminal, a request command sent by the client, performing identity verification on the client, and returning an identity verification result;
    在所述客户端通过身份验证后,允许所述客户端对相应目录进行挂载。After the client is authenticated, the client is allowed to mount the corresponding directory.
  2. 如权利要求1所述的方法,其中,所述配置移动终端的NFS服务包括:将客户端的网络协议IP地址、移动终端共享给所述客户端的目录以及目录操作权限添加至移动终端的NFS配置文件。The method of claim 1, wherein the configuring the NFS service of the mobile terminal comprises: adding a network protocol IP address of the client, a directory shared by the mobile terminal to the client, and a directory operation authority to the NFS configuration file of the mobile terminal .
  3. 如权利要求2所述的方法,其中,所述对客户端进行身份验证包括:当客户端的IP地址与移动终端的NFS配置文件中的IP地址一致,且客户端的请求命令携带的请求挂载目录包括在NFS配置文件中的移动终端共享给所述客户端的目录中时,所述身份验证结果为客户端通过身份验证,当客户端的IP地址与移动终端的NFS配置文件中的IP地址不一致,或者,客户端的请求命令携带的请求挂载目录未包括在NFS配置文件中的移动终端共享给所述客户端的目录中时,所述身份验证结果为客户端未通过身份验证。The method of claim 2, wherein the authenticating the client comprises: when the IP address of the client is consistent with the IP address in the NFS configuration file of the mobile terminal, and the requesting directory carried by the client's request command is mounted. When the mobile terminal included in the NFS configuration file is shared in the directory of the client, the authentication result is that the client is authenticated, when the IP address of the client is inconsistent with the IP address in the NFS configuration file of the mobile terminal, or When the request mounting directory carried by the client's request command is not included in the directory shared by the mobile terminal in the NFS configuration file, the authentication result is that the client does not pass the authentication.
  4. 如权利要求1所述的方法,所述在所述客户端通过身份验证后,允许所述客户端对相应目录进行挂载之后,所述方法还包括:接收客户端对挂载目录的操作指令。The method of claim 1, after the client is allowed to mount the corresponding directory after the client is authenticated, the method further comprises: receiving an operation instruction of the client to the mounted directory .
  5. 如权利要求1所述的方法,其中,所述近程无线网络包括蓝牙、WIFI。The method of claim 1 wherein said short range wireless network comprises Bluetooth, WIFI.
  6. 一种移动终端的无线存储系统,设置于通过近程无线网络与客户端连接的移动终端,所述客户端支持NFS服务,所述系统包括:A wireless storage system for a mobile terminal, configured to be connected to a mobile terminal connected to a client by a short-range wireless network, the client supporting an NFS service, the system comprising:
    配置模块,设置为配置移动终端的NFS服务;The configuration module is configured to configure the NFS service of the mobile terminal;
    验证模块,设置为接收客户端发送的请求命令,对所述客户端进行身份验证并返回身份验证结果;以及a verification module configured to receive a request command sent by the client, authenticate the client, and return an authentication result;
    处理模块,设置为在所述客户端通过身份验证后,允许所述客户端对相 应目录进行挂载。a processing module, configured to allow the client to phase after the client is authenticated Mount it in the directory.
  7. 如权利要求6所述的系统,所述配置模块配置移动终端的NFS服务包括:所述配置模块将客户端的IP地址、移动终端共享给所述客户端的目录以及目录操作权限添加至移动终端的NFS配置文件。The system of claim 6, wherein the configuring module configuring the NFS service of the mobile terminal comprises: the configuration module adding the IP address of the client, the directory shared by the mobile terminal to the client, and the directory operation authority to the NFS of the mobile terminal Configuration file.
  8. 如权利要求7所述的系统,所述验证模块对客户端进行身份验证包括:所述验证模块判断当客户端的IP地址与移动终端的NFS配置文件中的IP地址一致,且客户端的请求命令携带的请求挂载目录包括在NFS配置文件中的移动终端共享给所述客户端的目录中时,对所述客户端的身份验证结果为客户端通过身份验证;所述验证模块判断当客户端的IP地址与移动终端的NFS配置文件中的IP地址不一致,或者,客户端的请求命令携带的请求挂载目录未包括在NFS配置文件中的移动终端共享给所述客户端的目录中时,对所述客户端的身份验证结果为客户端未通过身份验证。The system of claim 7, wherein the verifying module authenticating the client comprises: the verifying module determining that the IP address of the client is consistent with the IP address in the NFS configuration file of the mobile terminal, and the client requests the command to carry When the request mounting directory is included in the directory shared by the mobile terminal in the NFS configuration file to the client, the authentication result of the client is authenticated by the client; the verification module determines when the client's IP address is The IP address in the NFS configuration file of the mobile terminal is inconsistent, or the request mount directory carried by the client's request command is not included in the directory of the client when the mobile terminal in the NFS configuration file is shared with the client, and the identity of the client is The verification result is that the client is not authenticated.
  9. 如权利要求6所述的系统,所述近程无线网络包括蓝牙、WIFI。The system of claim 6 wherein said short range wireless network comprises Bluetooth, WIFI.
  10. 如权利要求6所述的系统,所述客户端为基于Linux操作系统的设备。 The system of claim 6 wherein said client is a Linux operating system based device.
PCT/CN2015/079398 2015-04-23 2015-05-20 Mobile terminal wireless storage method and system WO2016169079A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510196922.9 2015-04-23
CN201510196922.9A CN106161759A (en) 2015-04-23 2015-04-23 The wireless storage method and system of mobile terminal

Publications (1)

Publication Number Publication Date
WO2016169079A1 true WO2016169079A1 (en) 2016-10-27

Family

ID=57144478

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/079398 WO2016169079A1 (en) 2015-04-23 2015-05-20 Mobile terminal wireless storage method and system

Country Status (2)

Country Link
CN (1) CN106161759A (en)
WO (1) WO2016169079A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107577421A (en) * 2017-07-31 2018-01-12 深圳市牛鼎丰科技有限公司 Smart machine expansion method, device, storage medium and computer equipment
CN108989295A (en) * 2018-06-28 2018-12-11 郑州云海信息技术有限公司 A kind of nfs client carry authority control method
CN112152717A (en) * 2019-06-28 2020-12-29 Oppo广东移动通信有限公司 Information pushing method and device, terminal, information pushing equipment and electronic equipment
CN111511045B (en) * 2020-04-10 2023-06-02 玳能科技(杭州)有限公司 Interaction method and device for mobile terminal and computer, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103746998A (en) * 2014-01-10 2014-04-23 中南大学 Method for realizing support of wireless network mounting by NFS (network file system)
CN103885885A (en) * 2014-04-15 2014-06-25 珠海迈科电子科技有限公司 Method for using WiFi to carry out simulation an ddebugging on embedded software
CN104283941A (en) * 2014-09-16 2015-01-14 深圳市同洲电子股份有限公司 Data access method, device and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103746998A (en) * 2014-01-10 2014-04-23 中南大学 Method for realizing support of wireless network mounting by NFS (network file system)
CN103885885A (en) * 2014-04-15 2014-06-25 珠海迈科电子科技有限公司 Method for using WiFi to carry out simulation an ddebugging on embedded software
CN104283941A (en) * 2014-09-16 2015-01-14 深圳市同洲电子股份有限公司 Data access method, device and system

Also Published As

Publication number Publication date
CN106161759A (en) 2016-11-23

Similar Documents

Publication Publication Date Title
KR102501304B1 (en) A control method of secure module connected to a plurality of processors and electronic apparatus implementing the same
CN111512655B (en) Method for providing communication service by utilizing secure element and electronic device
WO2021121125A1 (en) Control method for smart home devices and medium and terminal thereof
US9178868B1 (en) Persistent login support in a hybrid application with multilogin and push notifications
US11924197B1 (en) User authentication systems and methods
WO2019192129A1 (en) Customer data security access method and device based on mobile terminal
US20160080492A1 (en) System, computer product, and method for implementing a cloud service with private storage
WO2016169079A1 (en) Mobile terminal wireless storage method and system
WO2015106511A1 (en) Method and device for mobile terminal virtual storage
US20150020180A1 (en) Wireless two-factor authentication, authorization and audit system with close proximity between mass storage device and communication device
US10694381B1 (en) System and method for authentication and sharing of subscriber data
US9591434B1 (en) Virtual private network (VPN) tunneling in a user equipment (UE) brokered by a radio frequency identity (RFID) chip communicatively coupled to the user equipment
US20200076797A1 (en) System and data processing method
US10045216B1 (en) WiFi access point connection protocol adaptation
KR102442063B1 (en) Method and electronic device for controlling data communication
US10057114B2 (en) Method and a device for flowing data between entities
TW201335777A (en) Distributed data storing and accessing system and method
US9119072B2 (en) Method and apparatus to authenticate a personal device to access an enterprise network
WO2023241331A1 (en) Internet of things system, authentication and communication method therefor, and related device
CN115918031A (en) Electronic device for executing edge computing service and operation method of electronic device
US10601588B2 (en) Secure access to remote data
JP6346208B2 (en) Communications system
JP2020123006A (en) Information processing device, information processing method and information processing program, and terminal
US9882956B1 (en) Network-backed mass storage device
KR20170127649A (en) Service System, Method for Providing Items and Remote Control System

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

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

Country of ref document: EP

Kind code of ref document: A1