CN103731509B - A kind of data storage transmission control method, respective storage devices and server - Google Patents
A kind of data storage transmission control method, respective storage devices and server Download PDFInfo
- Publication number
- CN103731509B CN103731509B CN201410032587.4A CN201410032587A CN103731509B CN 103731509 B CN103731509 B CN 103731509B CN 201410032587 A CN201410032587 A CN 201410032587A CN 103731509 B CN103731509 B CN 103731509B
- Authority
- CN
- China
- Prior art keywords
- storage device
- data
- responder
- initiator
- forwarding
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
一种数据存储转发控制方法、相应存储设备及服务器,所述数据存储转发方法应用于数据存储转发系统的服务器,包括:接收发起方存储设备发送的数据存储转发请求,获取发起方用户标识和发起方存储设备位置信息;确定可为所述发起方存储设备转发数据的响应方存储设备,将确定的全部或部分响应方存储设备的近距离无线通信连接信息返回给所述发起方存储设备;接收响应方存储设备转发的数据和发起方用户标识,将所述转发的数据存储在所述发起方用户标识对应的空间,然后向相应的发起方存储设备返回转发数据完成确认。本发明还公开了相应的存储设备和服务器。本发明可以将一存储设备的数据通过其它启用空间共享功能的存储设备存储转发到服务器。
A data storage and forwarding control method, a corresponding storage device, and a server. The data storage and forwarding method is applied to a server of a data storage and forwarding system, and includes: receiving a data storage and forwarding request sent by a storage device of an initiator, obtaining an identifier of an initiator user and an initiator The location information of the storage device of the responding party; determine the storage device of the responding party that can forward data to the storage device of the initiator, and return the short-range wireless communication connection information of all or part of the determined storage device of the responding party to the storage device of the initiator; receive The responder stores the data forwarded by the device and the user identifier of the initiator, stores the forwarded data in the space corresponding to the user identifier of the initiator, and then returns a confirmation of completion of forwarding data to the corresponding initiator storage device. The invention also discloses a corresponding storage device and a server. The present invention can store and forward the data of a storage device to the server through other storage devices enabled with the space sharing function.
Description
技术领域technical field
本发明涉及数据存储,更具体地,涉及一种数据存储转发控制方法和相应的存储设备、服务器。The present invention relates to data storage, and more specifically, to a data storage and forwarding control method, a corresponding storage device, and a server.
背景技术Background technique
目前,智能手机、PAD、照相机、U盘、硬盘、移动硬盘一般采用插拔式读取,需要通过接触供电、激活。通过将其接入电脑进行数据存取,受时间地点限制严重,满足不了用户随时随地存取数据的需求。另外,有一些存储盘有很多空间长时间不用,又无法共享给其它用户使用,造成了存储资源的极大浪费。At present, smart phones, PADs, cameras, U disks, hard disks, and mobile hard disks generally use plug-in reading, and need to be powered and activated by contact. By connecting it to a computer for data access, it is severely limited by time and place, and cannot meet the needs of users to access data anytime and anywhere. In addition, some storage disks have a lot of space that has not been used for a long time and cannot be shared with other users, resulting in a great waste of storage resources.
随着无线通信技术的成熟,通过3G、4G、WIFI等无线通信方式与硬盘、移动硬盘、U盘进行数据交互已成为可能。With the maturity of wireless communication technology, it has become possible to exchange data with hard disks, mobile hard disks, and U disks through wireless communication methods such as 3G, 4G, and WIFI.
目前全球最快的WIFI传输速度为300Mbps,每秒能传输约36MB的内容;工信部正在协调5GHz频段,未来5G WIFI比起现有标准将扩大四倍带宽,传输速度最高提升到1Gbps,每秒可以传输约125MB的内容。At present, the world's fastest WIFI transmission speed is 300Mbps, which can transmit about 36MB of content per second; the Ministry of Industry and Information Technology is coordinating the 5GHz frequency band. Transfer about 125MB of content.
通过将插拔式存储盘接入电脑进行数据存取,受场景限制较大,满足不了用户随时随地存取数据的需求。此外,有些用户无法等待在低速条件较长的传输时间;或是存储设备本身不具备直接通过无线网络将数据传输给远程服务器。而有些存储设备有很多空间长时间不用,又无法共享给其它用户使用,造成了空间资源的极大浪费。Connecting the plug-in storage disk to the computer for data access is limited by the scene and cannot meet the needs of users to access data anytime and anywhere. In addition, some users cannot wait for a long transmission time under low-speed conditions; or the storage device itself does not have the ability to directly transmit data to a remote server through a wireless network. However, some storage devices have a lot of space that is not used for a long time, and cannot be shared with other users, resulting in a great waste of space resources.
发明内容Contents of the invention
本发明要解决的技术是提供一种数据存储转发控制方法和相应的存储设备、服务器,可以将一存储设备的数据通过其它启用空间共享功能的存储设备存储转发到服务器。The technology to be solved by the present invention is to provide a data storage and forwarding control method, a corresponding storage device, and a server, which can store and forward the data of a storage device to the server through other storage devices enabled with the space sharing function.
为了解决上述技术问题,本申请提供了一种数据存储转发方法,应用于数据存储转发系统的服务器,所述方法包括:In order to solve the above technical problems, the present application provides a data store and forward method, which is applied to a server of a data store and forward system, and the method includes:
接收发起方存储设备发送的数据存储转发请求,获取发起方用户标识和发起方存储设备位置信息;Receive the data storage and forwarding request sent by the initiator storage device, and obtain the initiator user ID and the location information of the initiator storage device;
确定可为所述发起方存储设备转发数据的响应方存储设备,将确定的全部或部分响应方存储设备的近距离无线通信连接信息返回给所述发起方存储设备;Determine the responder storage device that can forward data to the initiator storage device, and return short-range wireless communication connection information of all or part of the determined responder storage devices to the initiator storage device;
接收响应方存储设备转发的数据和发起方用户标识,将所述转发的数据存储在所述发起方用户标识对应的空间,然后向相应的发起方存储设备返回转发数据完成确认。Receive the data forwarded by the responder storage device and the initiator user ID, store the forwarded data in the space corresponding to the initiator user ID, and then return a data forwarding completion confirmation to the corresponding initiator storage device.
较佳地,Preferably,
所述方法还包括:为响应方存储设备进行注册,并保存注册的响应方存储设备上报的用于数据存储转发的共享容量和位置信息;The method further includes: registering the responder storage device, and saving the shared capacity and location information for data storage and forwarding reported by the registered responder storage device;
所述数据存储转发请求还携带待转发的数据大小的信息;The data store and forward request also carries information about the size of the data to be forwarded;
所述确定可为所述发起方存储设备转发数据的响应方存储设备,包括:查找已注册的响应方存储设备上报的共享容量和位置信息,将与所述发起方存储设备位于同一区域或距离小于设定距离阈值,且共享容量不小于所述数据大小的响应方存储设备作为确定的所述响应方存储设备。The determination may be the responder storage device that the initiator storage device forwards data to, including: searching for the shared capacity and location information reported by the registered responder storage device, which will be located in the same area or at a distance from the initiator storage device The responder storage device whose shared capacity is not smaller than the data size and which is smaller than the set distance threshold is used as the determined responder storage device.
较佳地,Preferably,
所述将确定的全部或部分响应方存储设备的近距离无线通信连接信息返回给所述发起方存储设备,包括:The returning all or part of the determined short-range wireless communication connection information of the responder storage device to the initiator storage device includes:
向确定的全部或部分响应方存储设备发送数据转发询问;Send a data forwarding query to all or part of the determined responder storage devices;
将返回数据转发确认的全部或部分响应方存储设备的近距离无线通信连接信息返回给所述发起方存储设备,所述数据转发确认携带响应方存储设备的近距离无线通信连接信息。Return all or part of the short-range wireless communication connection information of the responder storage device that returns the data forwarding confirmation to the initiator storage device, and the data forwarding confirmation carries the short-range wireless communication connection information of the responder storage device.
本发明还提供的一种数据存储转发系统的服务器,包括:The present invention also provides a server of a data storage and forwarding system, including:
请求处理模块,用于接收发起方存储设备发送的数据存储转发请求,获取发起方用户标识和发起方存储设备位置信息;The request processing module is used to receive the data storage and forwarding request sent by the initiator storage device, and obtain the initiator user ID and the location information of the initiator storage device;
请求响应模块,用于确定可为所述发起方存储设备转发数据的响应方存储设备,将确定的全部或部分响应方存储设备的近距离无线通信连接信息返回给所述发起方存储设备;A request response module, configured to determine a responder storage device that can forward data to the initiator storage device, and return short-range wireless communication connection information of all or part of the determined responder storage devices to the initiator storage device;
数据处理模块,用于接收响应方存储设备转发的数据和发起方用户标识,将所述转发的数据存储在所述发起方用户标识对应的空间,然后向相应的发起方存储设备返回转发数据完成确认。The data processing module is configured to receive the data forwarded by the responder storage device and the initiator user ID, store the forwarded data in the space corresponding to the initiator user ID, and then return the data forwarding completion to the corresponding initiator storage device confirm.
较佳地,所述服务器还包括:Preferably, the server also includes:
注册存储模块,用于对响应方存储设备进行注册,并保存注册的响应方存储设备上报的用于数据存储转发的共享容量和位置信息;The registration storage module is used to register the responder storage device, and save the shared capacity and location information for data storage and forwarding reported by the registered responder storage device;
所述请求处理模块接收到的所述数据存储转发请求携带待转发的数据大小的信息;The data store and forward request received by the request processing module carries information about the size of the data to be forwarded;
所述请求响应模块确定可为所述发起方存储设备转发数据的响应方存储设备,包括:查找已注册的响应方存储设备上报的共享容量和位置信息,将与所述发起方存储设备位于同一区域或距离小于设定距离阈值,且共享容量不小于所述数据大小的响应方存储设备作为确定的所述响应方存储设备。The request response module determines the responder storage device that can forward data to the initiator storage device, including: searching for the shared capacity and location information reported by the registered responder storage device, which will be located at the same location as the initiator storage device A responder storage device whose area or distance is smaller than the set distance threshold and whose shared capacity is not less than the data size is used as the determined responder storage device.
较佳地,Preferably,
所述请求响应模块将确定的全部或部分响应方存储设备的近距离无线通信连接信息返回给所述发起方存储设备,包括:向确定的全部或部分响应方存储设备发送数据转发询问;及将返回数据转发确认的全部或部分响应方存储设备的近距离无线通信连接信息返回给所述发起方存储设备,所述数据转发确认携带响应方存储设备的近距离无线通信连接信息。The request response module returns the short-range wireless communication connection information of all or part of the determined responder storage devices to the initiator storage device, including: sending a data forwarding query to all or part of the determined responder storage devices; All or part of the short-range wireless communication connection information of the responder storage device that returns the data forwarding confirmation is returned to the initiator storage device, and the data forwarding confirmation carries the short-range wireless communication connection information of the responder storage device.
本发明还提供一种存储设备,可以作为数据存储转发系统中的发起方存储设备,包括:The present invention also provides a storage device, which can be used as the initiator storage device in the data storage and forwarding system, including:
请求模块,用于向服务器发送数据存储转发请求,所述数据存储转发请求携带发起方用户标识和发起方存储设备的位置信息;及用于接收所述服务器返回的响应方存储设备的近距离无线通信连接信息;The request module is configured to send a data storage and forwarding request to the server, the data storage and forwarding request carries the initiator user ID and the location information of the initiator storage device; and is used to receive the short-distance wireless connection of the responder storage device returned by the server communication connection information;
连接模块,用于根据所述近距离无线通信连接信息与响应方存储设备建立近距离无线通信连接;A connection module, configured to establish a short-range wireless communication connection with the responder storage device according to the short-range wireless communication connection information;
数据发送模块,用于通过所述近距离无线通信连接将待转发的数据、所述服务器的地址信息和发送方用户标识发送给所述响应方存储设备。A data sending module, configured to send the data to be forwarded, the address information of the server, and the sender user ID to the responder storage device through the short-range wireless communication connection.
较佳地,Preferably,
所述请求模块发送的所述数据存储转发请求还携带待转发的数据大小的信息。The data store and forward request sent by the request module also carries information about the size of the data to be forwarded.
本发明还提供一种存储设备,可作为数据存储转发系统中的响应方存储设备,包括:The present invention also provides a storage device, which can be used as a responder storage device in a data storage and forwarding system, including:
响应模块,用于接收服务器发送的数据转发询问;及在接收到用户同意进行数据转发的指令时向所述服务器返回数据转发确认,携带本存储设备的近距离无线通信连接信息;The response module is used to receive the data forwarding query sent by the server; and return the data forwarding confirmation to the server when receiving the instruction from the user agreeing to data forwarding, carrying the short-range wireless communication connection information of the storage device;
连接模块,用于与发起方存储设备建立近距离无线通信连接;A connection module, configured to establish a short-range wireless communication connection with the initiator storage device;
数据接收模块,用于通过所述近距离无线通信连接接收所述发起方存储设备发送的数据、所述服务器的地址信息和发送方用户标识,将所述数据保存在用于数据存储转发的共享空间;A data receiving module, configured to receive the data sent by the initiator storage device, the address information of the server, and the user identifier of the sender through the short-distance wireless communication connection, and store the data in a shared storage device for data storage and forwarding. space;
数据发送模块,用于根据所述服务器的地址信息将保存在共享空间的所述数据和发起方用户标识发送给所述服务器。A data sending module, configured to send the data stored in the shared space and the initiator user ID to the server according to the address information of the server.
较佳地,上述存储设备还包括:Preferably, the above-mentioned storage device also includes:
注册上报模块,用于到服务器将本存储设备注册为响应方存储设备,及向所述服务器上报本存储设备用于数据存储转发的共享容量和位置信息。The registration reporting module is used to register the storage device as a responder storage device with the server, and report the shared capacity and location information of the storage device for data storage and forwarding to the server.
使用上述方案,当发起方存储设备不能向服务器直接发送数据时,可以通过响应方存储设备的共享空间将数据存储并转发到服务器,使发起方用户可以方便快捷的实现数据备份和存储,同时也提高了响应方存储设备的空间利用率。Using the above solution, when the initiator storage device cannot directly send data to the server, the data can be stored and forwarded to the server through the shared space of the responder storage device, so that the initiator user can conveniently and quickly realize data backup and storage, and at the same time Improved space utilization of responder storage devices.
附图说明Description of drawings
图1是本发明实施例中数据存储转发系统的架构示意图;FIG. 1 is a schematic diagram of the architecture of a data store-and-forward system in an embodiment of the present invention;
图2是本发明实施例一中数据存储转发方法的流程示意图;FIG. 2 is a schematic flowchart of a data store-and-forward method in Embodiment 1 of the present invention;
图3是本发明实施例一中服务器的结构示意图;FIG. 3 is a schematic structural diagram of a server in Embodiment 1 of the present invention;
图4是本发明实施例一中可作为数据存储转发系统中的发起方存储设备的结构示意图;FIG. 4 is a schematic structural diagram of a storage device that can be used as the initiator in the data store-and-forward system in Embodiment 1 of the present invention;
图5是本发明实施例一中可作为数据存储转发系统中的响应方存储设备的结构示意图。FIG. 5 is a schematic structural diagram of a storage device that can be used as a responder in the data store-and-forward system according to Embodiment 1 of the present invention.
具体实施方式detailed description
为使本申请的目的、技术方案和优点更加清楚明白,下文中将结合附图对本申请的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。In order to make the purpose, technical solution and advantages of the application clearer, the embodiments of the application will be described in detail below in conjunction with the accompanying drawings. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.
实施例一Embodiment one
图1所示是本实施例提供一种数据存储转发系统的示意图,包括存储设备和服务器,存储设备可以是手机、PAD、照相机、电脑等具有存储器(如U盘、硬盘、移动硬盘等)的设备。Figure 1 is a schematic diagram of a data storage and forwarding system provided by this embodiment, including a storage device and a server. The storage device can be a mobile phone, a PAD, a camera, a computer, etc. equipment.
在本实施例中,存储设备分为发起方存储设备和响应方存储设备。在一个示例中,发起方存储设备内置有2G模块和一种或多种近距离无线通信模块,响应方存储设备内置有3G/4G模块和一种或多种近距离无线通信模块。发起方存储设备和响应方存储设备之间可以通过近距离无线通信模块进行通信。所述近距离无线通信可以使用蓝牙、红外数据传输(IrDA)、超宽带(UWB:Ultra Wideband)、WiFi或其他的近距离无线通信技术。发起方存储设备可以通过2G模块与服务器通信,响应方存储设备可以通过3G/4G或有线技术与服务器之间进行通信。In this embodiment, the storage device is divided into an initiator storage device and a responder storage device. In an example, the initiator storage device has a built-in 2G module and one or more short-range wireless communication modules, and the responder storage device has a built-in 3G/4G module and one or more short-range wireless communication modules. The initiator storage device and the responder storage device may communicate through a short-range wireless communication module. The short-range wireless communication may use Bluetooth, infrared data transmission (IrDA), ultra-wideband (UWB: Ultra Wideband), WiFi or other short-range wireless communication technologies. The initiator storage device can communicate with the server through the 2G module, and the responder storage device can communicate with the server through 3G/4G or wired technology.
响应方存储设备设置一定的空闲存储空间,并将该空闲存储空间在服务器上注册为共享空间,当发起方存储设备本身不便于直接将数据传输给服务器时,发起方存储设备可以通过近距离无线通信将数据发送给响应方存储设备,再由响应方存储设备将数据存储、转发至服务器上。The responder storage device sets a certain amount of free storage space and registers the free storage space on the server as a shared space. The communication sends the data to the responder storage device, and then the responder storage device stores and forwards the data to the server.
发起方存储设备不便于直接将数据传输给服务器,例如可以是,发起方存储设备只能通过2G网络向服务器传输数据,但在低速条件下没有充足的传输时间;或者,发起方虽然能够通过WiFi向服务器传输数据,但却需要支付额外的费用(局域网中各终端设备之间的传输免费),等等。It is inconvenient for the initiator’s storage device to directly transmit data to the server. For example, the initiator’s storage device can only transmit data to the server through the 2G network, but there is not enough transmission time under low-speed conditions; or, although the initiator can transmit data through WiFi Data transmission to the server, but at an additional cost (transmission between end devices in the LAN is free), etc.
如图2所示,本实施例提供一种数据存储转发控制方法,包括:As shown in FIG. 2, this embodiment provides a data storage and forwarding control method, including:
步骤110:服务器接收发起方存储设备发送的数据存储转发请求,获取发起方用户标识和发起方存储设备的位置信息;Step 110: The server receives the data storage and forwarding request sent by the initiator storage device, and acquires the initiator user ID and the location information of the initiator storage device;
当发起方用户需要利用转发方式向服务器发送数据时,通过发起方存储设备向服务器发送数据存储转发请求。When the initiator user needs to send data to the server in a forwarding manner, a data storage and forwarding request is sent to the server through the initiator storage device.
服务器可以要求发起方用户使用该业务前进行注册,注册时为发起方用户分配一发起方用户标识。服务器使用发起方用户标识来标识发起方用户在服务器上的存储空间,The server may require the initiator user to register before using the service, and assign an initiator user ID to the initiator user during registration. The server uses the initiator user ID to identify the initiator user's storage space on the server,
较佳地,数据存储转发请求中还携带待转发的数据大小的信息。Preferably, the data storage and forwarding request also carries information about the size of the data to be forwarded.
步骤120:服务器确定可为所述发起方存储设备转发数据的响应方存储设备;Step 120: The server determines a responder storage device that can forward data to the initiator storage device;
本步骤可以进一步分为以下步骤:This step can be further divided into the following steps:
第一步,服务器根据发起方存储设备的位置及待转发的数据大小,查找已注册的响应方存储设备上报的共享容量和位置信息;In the first step, the server searches for the shared capacity and location information reported by the registered responder storage device according to the location of the initiator storage device and the size of the data to be forwarded;
服务器可以从发起方存储设备所在的网络查询到发起方存储设备的位置,或者由发起方存储设备在数据存储转发请求中上报其位置信息。The server may query the location of the initiator storage device from the network where the initiator storage device is located, or the initiator storage device may report its location information in the data storage and forwarding request.
本实施例中,服务器为响应方存储设备进行注册,并保存注册的响应方存储设备上报的用于数据存储转发的共享容量和位置信息。响应方存储设备可以根据自身资源条件将部分存储空间共享,用于存储其它存储设备发送的要转发到服务器的数据。共享容量和位置信息可以在发起方存储设备注册时上报,也可以在注册后再上报并及时更新,如定时向服务器上报位置信息或者在位置更新时上报,以便服务器及时对位置信息做相应的更新。服务器也可以主动查询已注册的响应方存储设备的位置信息。In this embodiment, the server registers the responder storage device, and saves the shared capacity and location information for data storage and forwarding reported by the registered responder storage device. The responder storage device may share part of the storage space according to its own resource conditions to store data sent by other storage devices to be forwarded to the server. Shared capacity and location information can be reported when the initiator storage device is registered, or can be reported after registration and updated in time, such as reporting location information to the server regularly or when the location is updated, so that the server can update the location information in time . The server may also actively query the location information of the registered responder storage device.
发起方存储设备和响应方存储设备的位置信息可以用存储设备所在网络定义的区域表示,如移动通信网络中的小区、跟踪区等,也可以用存储设备中GPS定位装置得到的位置坐标表示,等等。The location information of the initiator storage device and the responder storage device can be expressed by the area defined by the network where the storage device is located, such as a cell, tracking area, etc. in the mobile communication network, or by the position coordinates obtained by the GPS positioning device in the storage device. wait.
第二步、服务器将与所述发起方存储设备位于同一区域或距离小于设定距离阈值,且共享容量不小于所述数据大小的响应方存储设备作为确定的所述响应方存储设备。In the second step, the server takes the responder storage device that is located in the same area as the initiator storage device or whose distance is smaller than a set distance threshold, and whose shared capacity is not less than the data size, as the determined responder storage device.
发送方存储设备和接收方存储设备的位置信息可以是网络中定义的区域信息,如移动通信网络中的小区信息,响应方存储设备与发起方存储设备位于同一区域时,服务器认为两者可能建立近距离无线通信连接,因此可以将同一区域的响应方存储设备确定为可为所述发起方存储设备转发数据的响应方存储设备。此时可以将确定的全部响应方存储设备返回给发起方存储设备。The location information of the sender's storage device and the receiver's storage device can be area information defined in the network, such as cell information in a mobile communication network. When the responder's storage device and the initiator's storage device are located in the same area, the server believes that the two may establish The short-range wireless communication connection, so the responder storage device in the same area can be determined as the responder storage device that can forward data to the initiator storage device. At this time, all determined responder storage devices may be returned to the initiator storage device.
发送方存储设备和接收方存储设备的位置信息还可以是GPS定位得到的位置坐标,服务器可以将与发起方存储设备的距离小于设定距离阈值的响应方存储设备确定为可为所述发起方存储设备转发数据的响应方存储设备。此时可以将确定的响应方存储设备中与发起方存储设备距离最近的一个或多个响应方存储设备返回给发起方存储设备。The location information of the sender's storage device and the receiver's storage device can also be the location coordinates obtained by GPS positioning, and the server can determine that the responder's storage device whose distance from the initiator's storage device is less than a set distance threshold value can be the initiator's storage device. The responder storage device to which the storage device forwards data. At this time, one or more responder storage devices that are closest to the initiator storage device among the determined responder storage devices may be returned to the initiator storage device.
应当说明的是,上述“可为所述发起方存储设备转发数据”是服务器的一种认定,并不表示随后确定的响应方存储设备一定可以为发起方存储设备转发数据。It should be noted that the above-mentioned "can forward data for the initiator storage device" is a confirmation of the server, and does not mean that the subsequently determined responder storage device must be able to forward data for the initiator storage device.
在其它实施例中,要转发的数据也可以分次发送给响应方存储设备。服务器在为发起方用户选择响应方存储设备时可以按照预先设定的选取规则,选择共享容量小于待转发数据大小的响应方存储设备,例如,如允许将待转发的数据分2次发送给响应方存储设备,响应方存储设备的共享容量只要不小于待转发的数据大小的1/2即可。In other embodiments, the data to be forwarded may also be sent to the responder storage device in batches. When the server selects the responder storage device for the initiator user, it can select the responder storage device with a shared capacity smaller than the size of the data to be forwarded according to the preset selection rules. For example, if the data to be forwarded is allowed to be sent to the responder in two Party storage device, the shared capacity of the responder storage device only needs to be no less than 1/2 of the size of the data to be forwarded.
步骤130:服务器将确定的全部或部分响应方存储设备的近距离无线通信连接信息返回给所述发起方存储设备;Step 130: The server returns all or part of the determined NFC connection information of the responder storage device to the initiator storage device;
该步骤又包括:This step in turn includes:
第一步:向确定的全部或部分响应方存储设备发送数据转发询问;Step 1: Send a data forwarding query to all or part of the determined responder storage devices;
服务器向步骤S102确定的所有或部分响应方存储设备发送数据转发询问。响应方用户选择是否接受数据转发请求,如果接收到用户同意进行数据转发的指令,响应方存储设备向服务器返回数据转发确认,携带响应方存储设备的近距离无线通信连接信息。该近距离无线通信连接信息是发起方存储设备发起与响应方存储设备建立近距离无线通信连接所需要的信息,如可以包含响应方存储设备的标识和响应方存储设备的连接密码。The server sends a data forwarding query to all or part of the responder storage devices determined in step S102. The responder user chooses whether to accept the data forwarding request. If the user agrees to the data forwarding instruction, the responder storage device returns a data forwarding confirmation to the server, carrying the short-range wireless communication connection information of the responder storage device. The short-range wireless communication connection information is information required by the initiator storage device to establish a short-range wireless communication connection with the responder storage device, for example, may include the identifier of the responder storage device and the connection password of the responder storage device.
响应方存储设备的近距离无线通信功能在空闲时可能处于关闭状态,当同意进行数据转发时,可以自动启动近距离无线通信功能。The short-range wireless communication function of the responder storage device may be turned off when idle, and the short-range wireless communication function may be automatically activated when data forwarding is agreed.
第二步:将返回数据转发确认的全部或部分响应方存储设备的近距离无线通信连接信息返回给所述发起方存储设备。Step 2: Return all or part of the short-distance wireless communication connection information of the responder storage device that returns the data forwarding confirmation to the initiator storage device.
服务器可以将收到的全部响应方存储设备的近距离无线通信连接信息发送给发起方存储设备,还可以优选出部分响应方存储设备,将该部分响应方存储设备的近距离无线通信连接信息发送给发起方存储设备。The server can send all received short-range wireless communication connection information of the responder storage device to the initiator storage device, and can also select some responder storage devices and send the short-range wireless communication connection information of this part of the responder storage device Give the initiator storage device.
步骤140:发起方存储设备根据所述近距离无线通信连接信息与响应方存储设备建立无线连接,向响应方存储设备发送待转发的数据、所述服务器的地址信息和发起方用户标识;Step 140: The initiator storage device establishes a wireless connection with the responder storage device according to the short-range wireless communication connection information, and sends the data to be forwarded, the address information of the server, and the initiator user ID to the responder storage device;
发起方用户可以从接收到的响应方存储设备中选择出一个响应方存储设备,并根据该响应方存储设备的近距离无线通信连接信息与其建立近距离无线通信连接。如果无法建立连接,再尝试与下一个响应方存储设备建立近距离无线通信连接。The initiator user may select a responder storage device from the received responder storage devices, and establish a short-range wireless communication connection with the responder storage device according to the short-range wireless communication connection information of the responder storage device. If the connection cannot be established, try to establish a NFC connection with the next responder storage device.
发起方存储设备在发送转发数据前,可以采用WPA2等加密技术通过加密,以增强数据的安全性。加密密码可以由发起方用户在服务器中注册时设定,也可以采用其它方式设定,加密密码还可以与发起方用户标识绑定。加密后,响应方用户无法识别其转发的数据。发起方用户访问其自身转发的数据时,需要通过密钥解密后才还原为原始待转发数据。Before the initiator storage device sends forwarded data, it can use WPA2 and other encryption technologies to pass encryption to enhance data security. The encryption password can be set by the initiator user when registering in the server, or can be set in other ways, and the encryption password can also be bound with the initiator user ID. After encryption, the responding user cannot identify the data it forwards. When the initiator user accesses the data forwarded by himself, he needs to decrypt it through the key before restoring the original data to be forwarded.
步骤150:响应方存储设备接收发起方存储设备发送的待转发数据、所述服务器的地址信息和发起方用户标识,将所述待转发数据存储在共享空间,然后将所述转发数据和发起方用户标识发送给所述服务器;Step 150: The responder storage device receives the data to be forwarded sent by the initiator storage device, the address information of the server, and the user ID of the initiator, stores the data to be forwarded in a shared space, and then sends the forwarded data and the initiator the user identification is sent to said server;
响应方存储设备有可能同时接受多个发起方存储设备的数据转发,要转发到的服务器也可能不同。接收到待转发数据后,响应方存储设备可以立刻将该待转发数据转发给服务器,也可以在空闲时段转发给服务器。The responder storage device may simultaneously accept data forwarding from multiple initiator storage devices, and the servers to be forwarded may also be different. After receiving the data to be forwarded, the responder storage device may forward the data to be forwarded to the server immediately, or may forward the data to the server during an idle period.
步骤160:服务器接收响应方存储设备转发的数据和发起方用户标识,将所述转发的数据存储在所述发起方用户标识对应的空间,向相应的发起方存储设备返回转发数据完成确认。Step 160: The server receives the data forwarded by the responder storage device and the initiator user ID, stores the forwarded data in the space corresponding to the initiator user ID, and returns a data forwarding completion confirmation to the corresponding initiator storage device.
服务器还可以记录本次数据转发及存储的日志信息。The server can also record the log information of this data forwarding and storage.
按照上述步骤,发起方存储设备可将数据通过响应方存储设备转发至服务器。在其它实施例中,响应方存储设备还可以上报共享时段,只在共享时段内对共享空间开通数据存储转发功能。服务器在向发起方存储设备提供响应方存储设备时,可以携带共享时段信息供发起方用户选择。响应方存储设备还可以向服务器提交变更申请,变更共享容量或者共享时段信息。According to the above steps, the initiator storage device can forward the data to the server through the responder storage device. In other embodiments, the responder storage device may also report the sharing period, and enable the data storage and forwarding function for the shared space only within the sharing period. When the server provides the storage device of the responder to the storage device of the initiator, it may carry sharing period information for the user of the initiator to choose. The responder storage device may also submit a change application to the server to change the shared capacity or shared period information.
此外,还可设定付费机制。在发起方存储设备向响应方存储设备发送转发数据前,发起方用户需要将空间占用费预付给响应方用户,预付的空间占用费由服务器方保管,待数据转发完成后由服务器方转付给响应方用户,以保证费用支付的可靠性。空间占用费的支付标准和支付规则可以由服务器或者响应方用户提供。如果设定付费机制,发起方存储设备还需要在向服务器发送转发数据时向服务器提供发起方用户的付款账户。In addition, payment mechanisms can also be set. Before the initiator storage device sends forwarded data to the responder storage device, the initiator user needs to prepay the space occupation fee to the responder user. The prepaid space occupation fee will be kept by the server, and will be transferred by the server to the responder after the data forwarding is completed. Responder users to ensure the reliability of fee payment. The payment standard and payment rule of the space occupation fee may be provided by the server or the responding user. If a payment mechanism is set, the initiator storage device also needs to provide the server with the payment account of the initiator user when sending the forwarding data to the server.
需要说明的是,发起方存储设备和响应方存储设备可设置数据存储转发功能开关。当发起方存储设备关闭数据存储转发功能后,该发起方存储设备将不再能依靠数据存储转发系统将数据间接传输到服务器;当响应方存储盘关闭数据存储转发功能后,该响应方存储设备将不再为其它存储设备提供数据存储转发服务。服务器可以显示响应方存储设备数据存储转发功能是否处于关闭状态,服务器在为发起方存储设备选择能够为其转发数据的响应方存储设备时,对于关闭该数据存储转发服务的响应方存储设备不做考虑,也不会向该响应方存储设备发送数据转发询问。It should be noted that the storage device at the initiator and the storage device at the responder may be configured with a data store and forward function switch. When the initiator storage device disables the data store and forward function, the initiator storage device will no longer be able to rely on the data store and forward system to indirectly transmit data to the server; when the responder storage disk disables the data store and forward function, the responder storage device Data storage and forwarding services will no longer be provided for other storage devices. The server can display whether the data store and forward function of the responder storage device is turned off. When the server selects a responder storage device that can forward data for the initiator storage device, it will not do anything to the responder storage device that disables the data store and forward service. consideration, and will not send a data forwarding query to the responder storage device.
此外,响应方存储设备空闲时可处于休眠或待机状态,当有省电的电源开关监测装置接收到服务器发送的数据转发询问时,则打开电源,使响应方存储设备处于工作状态,并根据当前存储设备状态确认是否需要接受数据转发请求。In addition, the responder storage device can be in a dormant or standby state when it is idle. When the power-saving power switch monitoring device receives the data forwarding query sent by the server, it will turn on the power, so that the responder storage device is in a working state, and according to the current The status of the storage device confirms whether it needs to accept the data forwarding request.
如图3所示,本实施例还提供一种数据存储转发系统的服务器1,包括:As shown in Figure 3, this embodiment also provides a server 1 of a data store and forward system, including:
请求处理模块11,用于接收发起方存储设备发送的数据存储转发请求,获取发起方用户标识和发起方存储设备位置信息;The request processing module 11 is configured to receive the data storage and forwarding request sent by the initiator storage device, and acquire the initiator user ID and the location information of the initiator storage device;
请求响应模块12,用于确定可为所述发起方存储设备转发数据的响应方存储设备,将确定的全部或部分响应方存储设备的近距离无线通信连接信息返回给所述发起方存储设备;The request response module 12 is configured to determine a responder storage device that can forward data to the initiator storage device, and return short-range wireless communication connection information of all or part of the determined responder storage devices to the initiator storage device;
数据处理模块13,用于接收响应方存储设备转发的数据和发起方用户标识,将所述转发的数据存储在所述发起方用户标识对应的空间,然后向相应的发起方存储设备返回转发数据完成确认。The data processing module 13 is configured to receive the data forwarded by the responder storage device and the initiator user ID, store the forwarded data in the space corresponding to the initiator user ID, and then return the forwarded data to the corresponding initiator storage device Complete confirmation.
可选地,Optionally,
还包括:注册存储模块14,用于对响应方存储设备进行注册,并保存注册的响应方存储设备上报的用于数据存储转发的共享容量和响应方存储设备的位置信息;Also includes: a registration storage module 14, configured to register the responder storage device, and save the shared capacity for data storage and forwarding reported by the registered responder storage device and the location information of the responder storage device;
所述请求处理模块11接收到的所述数据存储转发请求携带待转发的数据大小的信息;The data store and forward request received by the request processing module 11 carries information about the size of the data to be forwarded;
所述请求响应模块12确定可为所述发起方存储设备转发数据的响应方存储设备,包括:查找已注册的响应方存储设备上报的共享容量和位置信息,将与所述发起方存储设备位于同一区域或距离小于设定距离阈值,且共享容量不小于所述数据大小的响应方存储设备作为确定的所述响应方存储设备。The request-response module 12 determines the responder storage device that can forward data to the initiator storage device, including: searching for the shared capacity and location information reported by the registered responder storage device, and will be located with the initiator storage device A responder storage device in the same area or whose distance is smaller than the set distance threshold and whose shared capacity is not less than the data size is used as the determined responder storage device.
可选地,Optionally,
所述请求响应模块12将确定的全部或部分响应方存储设备的近距离无线通信连接信息返回给所述发起方存储设备,包括:向确定的全部或部分响应方存储设备发送数据转发询问;及将通过所述响应模块返回数据转发确认的全部或部分响应方存储设备的近距离无线通信连接信息返回给所述发起方存储设备,所述数据转发确认携带响应方存储设备的近距离无线通信连接信息。The request response module 12 returns the short-range wireless communication connection information of all or part of the determined responder storage devices to the initiator storage device, including: sending a data forwarding query to all or part of the determined responder storage devices; and Return all or part of the short-range wireless communication connection information of the responder storage device that returns the data forwarding confirmation through the response module to the initiator storage device, and the data forwarding confirmation carries the short-range wireless communication connection of the responder storage device information.
如图4所示,本实施例还提供一种存储设备,可作为数据存储转发系统中的发起方存储设备2,包括:As shown in Figure 4, this embodiment also provides a storage device that can be used as the initiator storage device 2 in the data store and forward system, including:
请求模块21,用于向服务器发送数据存储转发请求,所述数据存储转发请求携带发起方用户标识和发起方存储设备的位置信息;及用于接收所述服务器返回的响应方存储设备的近距离无线通信连接信息;The request module 21 is configured to send a data storage and forwarding request to the server, the data storage and forwarding request carries the initiator user ID and the location information of the initiator storage device; and is used to receive the short distance of the responder storage device returned by the server Wireless communication connection information;
连接模块22,用于根据所述近距离无线通信连接信息与所述响应方存储设备建立近距离无线通信连接;A connection module 22, configured to establish a short-range wireless communication connection with the responder storage device according to the short-range wireless communication connection information;
数据发送模块23,用于通过所述近距离无线通信连接将待转发的数据、所述服务器的地址信息和发送方用户标识发送给所述响应方存储设备。The data sending module 23 is configured to send the data to be forwarded, the address information of the server, and the sender user ID to the responder storage device through the short-range wireless communication connection.
可选地,Optionally,
所述请求模块21发送的所述数据存储转发请求还携带待转发的数据大小的信息。The data store and forward request sent by the request module 21 also carries information about the size of the data to be forwarded.
如图5所示,本实施例还提供一种存储设备,可作为数据存储转发系统中的响应方存储设备3,包括:As shown in Figure 5, this embodiment also provides a storage device that can be used as a responder storage device 3 in the data store and forward system, including:
响应模块31,用于接收服务器发送的数据转发询问;以及在接收到用户同意进行数据转发的指令时向所述服务器返回数据转发确认,携带本存储设备的近距离无线通信连接信息;The response module 31 is used to receive the data forwarding query sent by the server; and return the data forwarding confirmation to the server when receiving the user's instruction to agree to data forwarding, carrying the short-range wireless communication connection information of the storage device;
连接模块32,用于与发起方存储设备建立近距离无线通信无线连接;A connection module 32, configured to establish a short-range wireless communication wireless connection with the initiator storage device;
数据接收模块33,用于通过所述近距离无线通信无线连接接收所述发起方存储设备发送的数据、所述服务器的地址信息和发送方用户标识,将所述数据保存在用于数据存储转发的共享空间;The data receiving module 33 is configured to receive the data sent by the initiator storage device, the address information of the server, and the user identifier of the sender through the short-range wireless communication wireless connection, and store the data in the data storage and forwarding shared space;
数据发送模块34,用于根据所述服务器的地址信息将保存在共享空间的所述数据和发起方用户标识发送给所述服务器。A data sending module 34, configured to send the data stored in the shared space and the initiator user ID to the server according to the address information of the server.
可选地,Optionally,
注册上报模块35,用于到服务器将本存储设备注册为响应方存储设备,及向所述服务器上报本存储设备用于数据存储转发的共享容量和位置信息。The registration reporting module 35 is configured to register the storage device as a responder storage device with the server, and report the shared capacity and location information of the storage device for data storage and forwarding to the server.
需要说明的是,对于上述服务器以及数据存储转发系统中的发起方存储设备和响应方存储设备的各个模块的功能的具体描述可以参见上述流程中的说明。It should be noted that, for the specific description of the functions of each module of the server and the initiator storage device and the responder storage device in the data store-and-forward system, reference may be made to the description in the above process.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现,相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本申请不限制于任何特定形式的硬件和软件的结合。Those skilled in the art can understand that all or part of the steps in the above method can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk or an optical disk, and the like. Optionally, all or part of the steps in the above embodiments can also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above embodiments can be implemented in the form of hardware, or can be implemented in the form of software function modules. The form is realized. This application is not limited to any specific form of combination of hardware and software.
以上所述仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the present application. For those skilled in the art, various modifications and changes may be made to the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application shall be included within the protection scope of this application.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410032587.4A CN103731509B (en) | 2014-01-23 | 2014-01-23 | A kind of data storage transmission control method, respective storage devices and server |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410032587.4A CN103731509B (en) | 2014-01-23 | 2014-01-23 | A kind of data storage transmission control method, respective storage devices and server |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN103731509A CN103731509A (en) | 2014-04-16 |
| CN103731509B true CN103731509B (en) | 2017-03-08 |
Family
ID=50455431
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410032587.4A Active CN103731509B (en) | 2014-01-23 | 2014-01-23 | A kind of data storage transmission control method, respective storage devices and server |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN103731509B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108012250A (en) * | 2017-11-23 | 2018-05-08 | 北京洪泰同创信息技术有限公司 | Data transmission method and data transmission device |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101415027A (en) * | 2008-11-25 | 2009-04-22 | 哈尔滨工业大学 | Communication module based on HDLC protocol, and control method for data real time forwarding and storage |
| CN101729260A (en) * | 2008-10-21 | 2010-06-09 | 上海吉芯电子有限公司 | Design method of intelligent WiFi wireless router |
| CN102571881A (en) * | 2010-12-27 | 2012-07-11 | 北京爱国者信息技术有限公司 | Mobile storage device and method for reading data by mobile storage device |
| CN202523084U (en) * | 2011-09-02 | 2012-11-07 | 德杰电脑股份有限公司 | Wireless transmission card capable of inserting memory card |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6928476B2 (en) * | 2002-08-23 | 2005-08-09 | Mirra, Inc. | Peer to peer remote data storage and collaboration |
| EP2700019B1 (en) * | 2011-04-19 | 2019-03-27 | Seven Networks, LLC | Social caching for device resource sharing and management |
-
2014
- 2014-01-23 CN CN201410032587.4A patent/CN103731509B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101729260A (en) * | 2008-10-21 | 2010-06-09 | 上海吉芯电子有限公司 | Design method of intelligent WiFi wireless router |
| CN101415027A (en) * | 2008-11-25 | 2009-04-22 | 哈尔滨工业大学 | Communication module based on HDLC protocol, and control method for data real time forwarding and storage |
| CN102571881A (en) * | 2010-12-27 | 2012-07-11 | 北京爱国者信息技术有限公司 | Mobile storage device and method for reading data by mobile storage device |
| CN202523084U (en) * | 2011-09-02 | 2012-11-07 | 德杰电脑股份有限公司 | Wireless transmission card capable of inserting memory card |
Also Published As
| Publication number | Publication date |
|---|---|
| CN103731509A (en) | 2014-04-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP3550888B1 (en) | Wireless connection switching method and terminal | |
| KR101968512B1 (en) | Device and method for transceiving multamedia data using near field communication | |
| US10225719B2 (en) | Method and apparatus for establishing communication between an image photographing apparatus and a user device | |
| US9019878B2 (en) | Phone supporting mode conversion | |
| CN102832976B (en) | NFC method and device | |
| CN107182098B (en) | Method and equipment for realizing switching of user equipment between wireless access points | |
| WO2014183690A1 (en) | Method of processing application program upgrade, and terminal device | |
| US9668287B2 (en) | Method of connecting wireless communication devices and wireless communication device using the same | |
| WO2014059813A1 (en) | Data transmission method and terminal device | |
| CN104735814A (en) | Access method, system and related device for automatically getting access to WiFi network | |
| TWI446767B (en) | Mobile communication device, mobile network sharing method and electronic device | |
| CN108702602A (en) | Share method, electronic equipment and the system of image | |
| CN112751380A (en) | Wireless charging method, device and system | |
| CN105556492B (en) | Near-field communication(NFC)Data transmission | |
| CN101807945A (en) | Wireless data transmission system and data transmission method utilizing same | |
| WO2013067853A1 (en) | Method, device and system for establishing conversation relation | |
| CN106028266B (en) | Information transmission method, device and system | |
| CN102523019A (en) | Apparatus and method for sharing data in portable terminal | |
| JP2016187088A (en) | Communication equipment | |
| US20170195432A1 (en) | Communication system, communication method, communication apparatus, method of controlling the same, and computer program | |
| WO2019140657A1 (en) | Method and device for network connection and terminal | |
| WO2014146566A1 (en) | Negotiation working mode method, device, and system | |
| JP5554847B2 (en) | Region-based communication service processing method and apparatus | |
| TWI221224B (en) | Method for controlling wireless network access through wired network access interface and associated computer system | |
| CN103731509B (en) | A kind of data storage transmission control method, respective storage devices and server |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant |