New! View global litigation for patent families

CN100458744C - Method and device for remote storing data - Google Patents

Method and device for remote storing data Download PDF

Info

Publication number
CN100458744C
CN100458744C CN 200410027207 CN200410027207A CN100458744C CN 100458744 C CN100458744 C CN 100458744C CN 200410027207 CN200410027207 CN 200410027207 CN 200410027207 A CN200410027207 A CN 200410027207A CN 100458744 C CN100458744 C CN 100458744C
Authority
CN
Grant status
Grant
Patent type
Prior art keywords
method
device
remote
storing
data
Prior art date
Application number
CN 200410027207
Other languages
Chinese (zh)
Other versions
CN1696914A (en )
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
Grant date

Links

Abstract

本发明公开一种数据远程存储装置及方法,所述数据远程存储的装置包括接口单元、通信单元及提供两者连接的微处理单元,并通过软件的方式虚拟出一个数据存储设备,通过通信单元数据存储设备建立与远程存储服务器的连接,提供数据存储的操作,实现数据的远程存储。 The present invention discloses a data storage device and a remote method, the remote data storage device includes an interface unit, a communication unit and providing micro processing unit connected to both, and a virtual data storage device by way of software, by the communication unit the data storage device connection to a remote storage server, provide operational data storage, remote storage of data. 所述数据远程存储的装置通过远程的方式存储数据,提高了存储装置数据存储的容量及存储的安全。 The remote data storage means for storing data by way of the remote, storage capacity and improve the security of data stored in a storage device.

Description

数据远程存储的方法及装置 Remote data storage method and apparatus

技术领域 FIELD

本发明关于数据存储及通信领域,特别涉及一种数据远程存储的方法及装置。 The present invention relates to data storage and communications, and in particular relates to a method and apparatus for remotely stored data.

背景技术 Background technique

在信息技术不断发展,特别是网络传输技术日益完善的当前,移动存储装置在用户带来存储便利的同时,移动存储装置的存储容量已成为其应用的瓶 In the continuous development of information technology, particularly network transmission technology increasingly sophisticated Currently, the mobile storage devices to bring convenience store bottles at the same time, the storage capacity of mobile storage devices have become its application in the user

颈,现行的移动存储装置通过提高其内置闪存芯片(FlashMemory)的容量,以提高数据的存储能力,然而单芯片移动存储装置的存储容量的提高,受半导体制造工艺的限制,容量提高的幅度有限,而通过增加闪存芯片的数量,提高移动存储装置的容量,将导致移动存的体积的增加,与移动存储装置移动的便利性产生矛盾。 Neck, existing mobile storage devices by improving their internal flash memory chip (FlashMemory) capacity, to increase the storage capacity of data, however, increase the storage capacity of a single chip mobile storage device is limited by a semiconductor manufacturing process, capacity is increased amplitude limited , and by increasing the number of flash chips, increase the capacity of mobile storage devices, leads to an increase of the volume of stored movement, moving convenience conflict with the mobile storage device.

另一个方面,现在移动存储装置的其数据的存储是利用内置的闪存芯片实现,因而移动存储装置的容量不可扩展,限制了其在大容量存储领域的应用。 Another aspect, which is now stored in a mobile data storage device using the built-in flash memory chip, and thus the capacity of the removable memory device can not be expanded, which limits its application in the field of mass storage.

有鉴于此,有效的提高移动存储装置的容量的成为当前移动存储领域内的急需解决的问题。 In view of this, effectively increase the capacity of mobile storage unit becomes an urgent problem in the current mobile storage.

发明内容 SUMMARY

由于现有的移动存储装置其数据的存储是利用内置的闪存芯片(Flash Memory)实现,因而移动存储装置的存储容量有限且不可扩展,本发明要解决的技术问题是提供一种能有效的提高移动存储装置存储容量的方法。 Since the data stored in its existing mobile storage device using the built-in flash memory chips (Flash Memory) implemented, thus limited storage capacity and a removable storage device is not expanded, the present invention is to solve the technical problem is to provide an effective increase the method of the mobile storage device storage capacity.

本发明要解决的另一技术问题是提供一种具有数据远程存储的装置。 Another technical problem to be solved by the present invention is to provide a remote data storage device.

为此,本发明解决技术问题的技术方案是提供一种数据远程存储的方法, 包括建立数据远程存储装置与数据处理主机之间的数据连接,所述数据远程存储装置包括微处理单元和通信单元,所述微处理单元包括USB设备子模块、 ISCSI子模块、网络子模块以及主控制模块,所述通信单元经网络子模块驱动成为USB网络设备;USB设备子才莫块虛拟出软USB HUB和USB虛拟设备, To this end, the present invention is to solve the technical problem is to provide a technical solution of remotely stored data, comprising establishing a data connection between the data storage means and data processing remote host, the remote data storage means comprises a micro processing unit and the communication unit the micro processing unit includes a USB device sub-module, the ISCSI sub-module, the sub-network module and a main control module, the communication unit via the network sub-module becomes USB network device driver; Mo USB device sub-block before the soft virtual USB HUB and USB virtual device,

所述软USB HUB作为虚拟连接设备提供所述USB大容量存储设备和USB网络设备与数据处理主机的数据连接;建立USB大容量存储设备经所述USB网络设备与远端存储服务器的数据连接;及所述USB大容量存储设备接受数据处理主机的指令,通过所述USB网络设备将数据传输至远端存储服务器进行存储,或通过所述USB网络设备从远端存储服务器接收数据。 The soft as a virtual USB HUB USB connection device providing the data connection USB mass storage devices and network devices and data processing host; a USB mass storage device connected via a USB data to the network device and a remote storage server; and the USB mass storage device accepts the command data processing host device via the USB transmit data to the network storage server for storing a distal end, a distal end or receiving data from a network storage server via the USB device.

一种数据远程存储装置,包括提供所述数据远程存储装置与数据处理主机数据连接的接口单元;提供所述数据远程存储装置与远端存储服务器建立数据连接的通信单元;以及控制所述通信单元与所述接口单元的微处理单元,所述数据远程存储装置还包括虛拟存储设备,所述虚拟存储设备经所述USB网络设备建立与远端存储服务器的数据连接;所述微处理单元包括USB设备子模块、ISCSI子模块、网络子模块和主控制模块;所述USB设备子模块通过软件方式虚拟出软USB HUB及虛拟USB设备,所述虚拟USB设备包括USB 大容量存储设备和USB网络设备;所述ISCSI子模块将ISCSI命令封装为IP 数据包发送至远端存储服务器;所述网络子模块驱动通信单元成为一USB网络设备;主控制模块协调USB设备子模块、ISCSI子模块和/或网络子模块工作。 A data remote storage device, comprising providing a data interface unit remote storage device is connected to the data processing host data; providing said remote data storage device and remote storage server to establish a data connection to the communication unit; and controlling the communication unit and microprocessing unit the interface unit, the data storage apparatus further comprises a remote virtual storage device, the storage device via the USB virtual network device to establish a connection with the remote data storage server; the USB micro processing unit comprises device sub-module, the ISCSI sub-modules, sub-modules and a network master control module; virtual sub-modules to the USB device by means of software and a software virtual USB HUB USB device, the USB device comprising a USB virtual mass storage devices and network devices USB ; ISCSI the sub-module ISCSI command encapsulates IP packets sent to the remote storage server; the communication network sub-module drive unit into a USB network device; master USB device control module coordination submodule, ISCSI sub-module and / or network sub-module work.

相比现有数据存储技术,本发明提供的数据存储方法通过整合网络通信与数据存储于一体,建立远程数据存储的装置与服务器的连接,实现了数据的实时移动存储,极大方便了用户数据存储与网络连接的需求。 Compared with the prior art data storage, data storing method of the present invention is provided by the integration of communication and data stored in a body, means to establish a connection to the remote server data storage, to achieve real-time movement of storing data, which greatly facilitates the user data storage and network connectivity needs.

相对于现有技术,本发明远程数据存储的装置有益效果是:首先,其数据存储容量可以根据需要进行分配,容量的大小不受限制,其次,其数据并没存储在移动存储装置内,不会因移动存储装置的遗失、损坏造成数据的丢失,提高了数据存储的安全,再次,因移动存储装置内没有数据存储的单元,降低了移动存储装置的成本,此外,本发明的远程数据存储的装置还能独立于数据的远程存储实现网络通信的功能„ With respect to the prior art, the beneficial effects of the present invention, remote data storage apparatus is: firstly, the data storage capacity can be allocated, the size is not limited capacity required, secondly, that no data is stored in the mobile storage unit, not due to loss of the mobile storage device, damage caused by the loss of data and improve the security of data storage, again, because there is no means of data stored within a removable storage device, reducing the cost of the mobile storage device, in addition, remote data storage according to the present invention. It means independent of the data can implement the functions of remote storage network communication "

附图说明 BRIEF DESCRIPTION

图1是本发明数据远程存储装置原理框图; 图2是本发明数据远程存储装置软USB HUB连接结构图; 图3是本发明数据远程存储装置的软件系统引导流程图; 图4是本发明数据远程存储装置的虛拟设备加载的流程图; 图5是对本发明数据远程存储装置的数据传输的流程图。 FIG 1 is a remote data storage block diagram of apparatus according to the present invention; FIG. 2 is a data storage device remote USB HUB flexible coupling structure according to the present invention, FIG.; FIG. 3 is a software data storage device according to the present invention, the remote boot flowchart; FIG. 4 of the present invention is a data flowchart of the virtual remote storage device loaded; FIG. 5 is a flowchart of a data transmission remote data storage device according to the present invention.

具体实施方式 detailed description

本发明提供的数据远程存储装置主机实现数据的远端存储和上网卡功能的一体化,用户可以通过本装置与数据处理主机相连接,并通过网络访问存储在远端服务上的数据,实现对数据的远端存储。 Integration of the data storage device remote host implementation of the present invention provides remote storage and data functions on the card, the user can be connected via this data processing host device, and the data on the distal end and services accessed over a network storage, to achieve remote data storage.

本发明所述的数据处理主机泛指各种有数据处理能力的电子设备,包括但不限于各种个人计算机、小型计算机、数据处理工作站以及各种具有外存储功 Data processing host of the present invention refers to a variety of electronic devices have data processing capability, including but not limited to various personal computers, minicomputers, workstations, and a variety of data processing work memory having an outer

能的专用数据处理系统,特别是各类无线便携设备,如笔记本电脑、PDA、手机等无线设备,以及具有无线资源的数字家电等。 Dedicated data processing systems can, in particular, various types of wireless portable devices such as laptops, PDA, mobile phones and other wireless devices, and digital home appliances with wireless resources.

请参阅图l,本发明提供的数据远程存储装置的原理框图,所述数据远程存储装置主要由接口单元20、微处理单元30、通信单元40构成。 Referring to FIG. L, schematic block diagram of the remote data storage device according to the present invention provides a remote data storage device consists of an interface unit 20, the microprocessing unit 30, a communication unit 40 configured. 所述的接口单元20及通信单元40分别连4妄樣吏处理单元30,接受孩t处理单元30的控制, 进行数据的操作。 The interface unit 20 and the communication unit 40 are respectively connected to the processing unit 4 to jump the sample 30 Officials, t child receives the control processing unit 30 performs the data operation.

所述接口单元20主要用于与本发明的数据远程存储装置与数据处理主机之间建立数据连接,实现数据处理主机与数据远程存储装置之间的通信,所述接口单元可以采用但不限于USB接口、 IEEE1394接口、 IDE/SCSI接口、 RS232 接口、 RS485接口、 USB OTG( USB On-The-Go )接口、 UWB( Ultra Wide Band ) 接口、 GPIO接口、 UART接口、并行接口等有线接口单元;也可以是蓝牙接口、 HomeRF接口、 IrDA红外线接口、 802.11接口等无线接口单元。 The interface unit 20 is mainly used to establish a data connection between the remote data storage device and a data processing host and the present invention, the data communication between the data processing host and a remote storage device, the interface unit may be, but is not limited to USB an interface, IEEE1394 interfaces, IDE / SCSI interface, RS232 interfaces, RS485 interfaces, USB OTG (USB On-The-Go) interfaces, UWB (Ultra Wide Band) interface to the GPIO interfaces, UART interface, a parallel interface, a wired interface unit; also may be a Bluetooth interface, HomeRF the interface, IrDA infrared interface, a wireless interface unit interface 802.11. 在本实施例中4姿口单元20采用的接口方式是USB接口, 一个优选的方案是通过将USB接口的数据格式映射成RS232串行接口的数据格式,这样从操作系统和应用程序的角度来看,本发明是一个串行设备,理论上传统的基于串行口的应用程序不加修改就可以应用于本发明。 In the present embodiment the interface manner as in Example 4 Pose port unit 20 uses a USB interface, a preferred embodiment of the USB interface by mapping the data format into a data format RS232 serial interface, so that from the operator to systems and applications See, the present invention is a serial device, the serial port of the conventional theoretical application without modification on the present invention can be applied. 本发明的数据远程存储装置的接口单元20采用USB接口,数据远程存储装置所需的工作电源可以通过USB接口从外部数据处理主机汲取,当然也可采用自带电源。 A remote storage device data interface unit according to the present invention using the USB interface 20, data necessary for remote storage device may draw operating power from the external data processing host through the USB interface, of course, also be employed own power. 需要进一步指出的是,如果数据远程存储装置的接口单元20采用无线接口方式,如蓝牙接口(Bluetooth)、 红外线接口、 802.11接口在内的任一种无线接口方式,数据远程存储装置必须自带工作电源,所述自带电源可以是电池、可充电电池等。 It is further noted that, if the data interface unit 20 of the remote storage device using a wireless interface means, such as a Bluetooth interface (the Bluetooth), infrared interface, the interface including any 802.11 wireless interface mode, the data storage device must have its own remote work power supply, the power supply may be built battery, rechargeable battery or the like.

微处理单元30包含无线数据通信控制模块和存储控制模块,所述无线数 Micro processing unit 30 includes a wireless data communication control module and a storage control module, the wireless data

据通信控制模块和存储控制模块可以是独立的,也可以合二为一。 According to the communication control module and a storage control module may be separate, it can be combined. 所述微处理 The microprocessor

单元30中固化有第一固化软件;其主要功能在于:通过标准RS232串口完成与通信单元40之间的通信;所述微处理单元30中还固化有第二固化软件,其主要功能在于控制接口单元20,完成与接口单元20之间的通信,同时兼有对串行、并行或无线通信接口的控制功能,并通过接口单元20完成与数据处理主机之间的数据通信。 Curing unit 30 in a first firmware; Its main function is: 40 through communication between the completion of a standard RS232 serial communication unit; the micro-processing unit 30 further has a second cured firmware, its main function is to control the interface unit 20, the communication between the interface unit 20 is completed, with both serial, parallel or wireless communication interface control function, through the interface unit and the data communication between the data processing host 20 is completed.

通信单元40主要用于建立所述数据远程存储装置与互联网络之间的数据连接,从而实现对数据的传输,在本实施方式中,所述通信单元40采用无线广域网通信无线收发模块,以实现装置对数据的无线传输,所述通信单元40 The communication unit 40 is used to establish a data connection between the remote data storage device and the Internet, enabling the transmission of data, in the present embodiment, the wireless communication unit 40 of wireless wide area network transceiver module, in order to achieve the data radio transmission device, the communication unit 40

元40采用芯片SiemensTC35模块,此时本发明的数据远程存储装置可工作于GSM网络;此外通信单元40也可以采用Wavecom WIS02C模块或UbiNeticsGM400/GM401模块,此时本发明的数据远程存储装置可以工作于GSM网络和GPRS网络;无线收发^t块也可以采用其它模块,使本发明的无线数据通信设备可以工作于CDMA等其它网络。 SiemensTC35 module using chip unit 40, the data at this time a remote storage device according to the present invention can operate in a GSM network; in addition the communication unit 40 may also be employed Wavecom WIS02C module or UbiNeticsGM400 / GM401 module, the data at this time a remote storage device according to the present invention can operate in GSM network and a GPRS network; a wireless transceiver block ^ t may also be employed other modules, so that wireless data communication apparatus according to the present invention can operate in CDMA and other networks.

所述通信单元40可以采用无线广域网通信模块、无线局域网通信模块、 以及有线局域网通信模块等三种通信模块,从而使得整个装置可以按需要以不同的方式与网络之间进行连接,前述的三种通信模块并非共存,而是可替换的。 The communication unit 40 may employ a wireless wide area network communication module, a wireless LAN communication module, communication module and a wired LAN three communication modules, so that the entire device can be connected in different ways between the network and as required, the three the communication module is not co-exist, but alternative.

本发明数据远程存储装置还包括状态显示单元50,用于显示整个装置工作的状态,通过不同的可替换的状态指示模块,可以实现LED、 LCD等多种不同的状态指示方式。 The present invention is a data storage device further includes a remote status display unit 50 for displaying the operating status of the entire apparatus, through different replaceable module status indication can be achieved LED, LCD and other status indications in many different ways.

在前述装置的基础,本发明的远程网络存储的方案是利用装置本身的网络通信能力,在ISCSI协议的基础上,对服务端进行数据存储的动作。 On the basis of the foregoing devices, the remote network storage of the present invention is a network communication capability of the device itself, based on ISCSI protocol, the server operates to store data. 整个过程由虛拟的大容量存储装置(Virtual Mass Storage Device)、 1SCSI子模块、网络子模块、网络物理通道、服务端共同完成。 The whole process from the virtual mass storage device (Virtual Mass Storage Device), 1SCSI sub-modules, sub-network module, the network physical channel, the server together to complete.

本发明的远程网络存储的方案的整个核心是通过对原本在USB接口之间交互的SCSI命令进行重新分析、筛选、打包等工作来实现我们所需要的特定功能。 The entire core of the remote networked storage solutions of the present invention is to achieve a particular functionality we need for SCSI commands through the USB interface originally interaction between the re-analysis, screening, packaging and so on. 这些特定功能包括:用户及配置信息的设置及保存、数据的远端存储、 The specific functions include: setting and saving the user information and configuration, remote data storage,

数据传输的加密方式、与远端存储服务器之间的认证等等。 Encryption of data transmission between the server and remote storage like authentication. 下面对整个远程网络存储的方这案进行详细的说明: Here on the side remote network storage throughout this case will be described in detail:

本发明的数据远程存储装置通过在微处理单元30固化不同的软件,完成相应的数据处理功能,所述的软件部分由USB设备子模块、ISCSI子模块、 网络子模块、主控制模块等几部分组成,各个子模块相互独立,由主控制模块进行协调。 Remote data storage device according to the present invention by curing the micro processing unit 30 different software, the corresponding data processing function is completed, the software sub-modules by the USB device, the ISCSI sub-module, the sub-network module, the main control module parts composition, independent of each other each sub-module, coordinated by the master control module. 下面就各个软件模块进行描述。 Described below on various software modules.

USB设备子模块该部分主要完成以下两个功能,实现软USBHUB (USB集线器)及虛拟USB设备,所述的软USB HUB是通过软件的方式虛拟出一个USBHUB,所述的软USBHUB将完全符合USB规范,提供不同的虛拟的USB设备连接。 The USB device submodule main portion to complete the following two functions, to achieve soft USBHUB (USB hub) and the USB virtual device, said virtual USB HUB soft USBHUB a software manner, the soft USBHUB fully compliant with the USB specifications, providing different virtual USB device connected. 所述的虚拟USB设备是通过软件的方式虚拟出USB大容量存储设备和USB网络设备,并通过软USB HUB建立与外界进行交换信息。 The virtual USB device is a virtual USB mass storage USB devices and network equipment by way of software, and USB HUB established by soft to exchange information with the outside world. 请参阅图2,软USB HUB 62连接虛拟的USB大容量存储设备66和USB网络设备64。 Please refer to FIG. 2, the soft USB HUB 62 is connected to the virtual USB mass storage device 66 and network device 64 USB.

ISCSI子模块主要负责将SCSI命令包进一步封装为IP数据包,并通过网络将其发送至远端存储服务器上去,该部分遵循ISCSI规范。 ISCSI sub-module is mainly responsible for the SCSI command packet is further encapsulated into IP packets, and transmits it over the network to the remote storage server is up, the portion follows the ISCSI specification.

网络子模块主要负责驱动硬件的通信单元40成为一USB网络设备64, USB网络设备64主要包括USB modem和USB网络适配器(USB Network Adapter)两类,针对不同的USB网络适配器,从而采用不同的网络子模块, 包括以CDMA网络子模块、GPRS网络子模块、以太网络子模块、802.11g网络子模块等。 Network is mainly responsible for driving the hardware sub-module communication unit 40 into a USB network device 64, network device 64 includes USB Modem USB and USB network adapter (USB Network Adapter) two, for different USB network adapter, so that different network sub-modules, sub-modules comprises a CDMA network, GPRS network sub-modules, sub-modules Ethernet, 802.11g network sub-module. 其中CDMA和GPRS将对应于USB network adapter。 Wherein CDMA and GPRS corresponding to the USB network adapter. 以太网和802.1 lg网络子模块将对应于USB modem。 Ethernet and 802.1 lg network sub-module will correspond to the USB modem. 网络子模块根据远程存储装置的通信单元40采用的硬件配置进行相应的驱动,对具体硬件设备进行操作,从而使得通信单元40成为一真正的USB网络设备,在本实施例中,通过对芯片Siemens TC35驱动,使得其成为一真正的无线网卡,独立于存储装置而运行, Network sub-module according to a hardware communication unit of the remote storage device 40 using a configuration corresponding driver, a specific hardware device is operated, so that the communication unit 40 to become a true USB network device in the present embodiment, the chip Siemens TC35 drive, making it a true wireless card, it operates independently of the storage means,

主控制模块是整个软件部分的协调单元,负责协调各个子模块进行工作, 并依据相应的状态创建、注销以及配置各个子模块。 The main control module is part of the entire software coordination unit responsible for coordinating the work of various sub-modules, and in accordance with the appropriate state is created, log off, and configure each module.

当用户将本发明的数据远程存储装置插入到数据处理主机的相应接口,在 When the user data to a remote storage device according to the present invention is inserted into the corresponding interface of the data processing host, in

本实施方式是接入到数据处理装置的USB接口,此时,微处理单元30内置的 The present embodiment is an access to the USB interface to the data processing apparatus, in which case, the microprocessing unit 30 built

引导系统立即运行,执行对相关功能模块的加载工作,具体的引导流程请参阅图3。 Guidance systems run immediately perform the work load of the relevant functional modules, specific to guide the flow See Figure 3.

第一步:执行主控制模块的加载,如主控制模块加载不成功,则系统引导失败; Step: Load execution of the main control module, such as the main control module loading is unsuccessful, then the failed system boot;

第二步:如主控制模块加载成功,执行网络子模块的加载,如网络子模块加载不成功,则系统引导失败; Step Two: The main control module is loaded successfully, the network load execution sub-module, such as network load sub-module is not successful, then the system failed to boot;

第三步:如网络子模块加栽成功,判断是否连接上远端存储服务器,如没有连接上远端存储服务器,则系统引导失败; The third step: The network sub-module plant successfully applied, whether or not connected to the remote storage server, such as remote storage server is not connected, the system fails to boot;

第四步:如连接上远端存储服务器,执行ISCSI子模块加载,如ISCSI子模块加载不成功,则系统引导失败; Fourth Step: The connector on the distal end of the storage server, load sub-module performs ISCSI, such as ISCSI submodule load is unsuccessful, the system fails to boot;

第五步:如ISCSI子模块加载成功,执行USB设备子模块加载,如加载成功,则系统引导结束,如加栽不成功,则系统引导失败。 Step five: If the ISCSI sub-module loaded successfully, perform USB device sub-module loading, such as loading is successful, the system boot ends, such as adding plant is not successful, the system fails to boot.

在数据远程存储装置内的各功能模块加载完备之后,装置内的固化软件执行对设备的驱动,建立数据远程存储装置与数据处理系统之间的数据连接,具体的执行流程请参阅图4。 After the functional modules within the data storage means of the remote loading is complete, the firmware performs the driving of the apparatus equipment, establish a data connection between the remote data storage device and the data processing system, the specific implementation process, please refer to FIG. 4.

首先执行软USB HUB的加载,通过加载USBHUB,建立数据远程存储装置通过USB接口单元20与数据处理主机之间的数据连接; First USB HUB performing soft loading, loading by USBHUB, to establish a data connection between the USB interface unit 20 and the remote host data processing data storage means;

接下来,执行设备驱动程序的加载,所述的设备驱动程序的加载主要用于驱动虚拟的USB网络设备和虛拟的USB大容量存储设备与软USB HUB之间的连接; Next, the loading device driver, loading the device driver is used to connect between the drive of the USB virtual network devices and virtual USB mass storage device with soft T4 HUB USB;

当软USB HUB收到虛拟的USB网络设备和虛拟的USB大容量存储设备之后,软USBHUB开始向数据处理主机报告,进行设备的登记,主机操作系统收到软USB HUB的4良告之后,即为装置分配相应的USB网络设备标识符和USB大容量存储设备的盘符。 When, after the soft received USB HUB USB virtual network devices and virtual USB mass storage device, the data processing soft start USBHUB reported to the host, the registration device, the host operating system receives reports good soft USB HUB 4, i.e. means for assigning a network drive letter corresponding to the USB device identifier and the USB mass storage device is.

至此,设备的加载成功,数据远程存储装置与数据处理主机的数据传输的通道建立完备,数据远程存储装置处于等待用户的操作指令。 Thus, the success of loading equipment, the data transmission means of the data storage and data processing remote hosts to establish a complete path, remote data storage apparatus is waiting for the user's operation instruction.

整个数据远程存储装置远端存储的过程包括: The distal end of the entire data stored in remote storage device procedure comprising:

一. 设备启动 A. The device starts

当整个装置上电后,在主控制模块调正确完成网络部分的创建和初始化 After the entire apparatus is powered on, the main control module to create and initialize the network to complete the transfer of the right portion

后,则主控制模块将会调用和初始化ISCSI子模块,并通过调用USB设备子模块,创立和初始化USB大容量存储设备和USB网络存储设备,并依据配置文件对这两个模块进行相应的设置,以使其能够正确的工作。 After, the main control module will call and initialization ISCSI sub-modules and sub-modules by calling the USB devices, the creation and initialization of USB mass storage devices and USB network storage devices, and make the appropriate settings based on the profile of these two modules to enable them to work correctly.

二. 认证 II. Certification

数据远程存储装置正确启动后,USB大容量存储设备将会依照配置所描述的信息连接远端存储服务器,并在认证通过后通知数据处理主机:如示出"这里有一个USB大容量存储设备上电了",至此,在数据处理主机上将会出现一个盘符。 After remote storage device data starts correctly, USB mass storage device will connect to a remote information storage server in accordance with the described configuration, the data and notifies the host after the authentication process: As shown, "there is a USB mass storage device electricity, "at this point, a letter will appear in the data processing host.

三. 传输 III. Transmission

传输过程则是一个SCSI数据包封装、解封及转发的过程,包括发送和接收两个部分。 SCSI is a transmission packet encapsulation, decapsulation, and forwarding process, including sending and receiving two portions. 对于发送:虛拟的USB大容量存储设备获得了由数据处理主机发送来得数据包后,通过筛选,将一些可以本地处理的数据包筛选出来进行本地处理,对于需要传输的数据包则发送至ISCSI模块进行处理。 For transmission: When a virtual USB mass storage device that was sent by the data processing host is more data packets, by screening, some may packets are processed locally screened for local processing, is sent to the ISCSI module for a data packet to be transmitted for processing. ISCSI子模块将SCSI数据包封装成IP数据包,也就是ISCSI数据包,并通过通信单元40 将其发送至远端存储服务器。 ISCSI submodule SCSI packets encapsulated into IP packets, i.e. ISCSI data packet, and transmits it to the distal end 40 to the storage server through the communication unit. 对于接收:虚拟的USB大容量存储设备通过通信单元40侦测网络获取从远端存储服务器发送来的1SCSI包,并对其进行解封处理。 For receiving: a virtual USB mass storage device class acquired from the remote storage server transmits the packet via the communication unit 40 1SCSI detect network, and subjected to deblocking process. 然后转发至数据处理主机。 And then forwarded to the data processing host.

四. 注销 IV. Logout

该过程将导致虛拟的USB大容量存储设备的关闭,该过程通过从远端存储服务器进行注销,从而释放服务端和装置内的各部分资源。 This process will result in the closure of the virtual USB mass storage device, the process proceeds from cancellation by a remote storage server, and the server to release resources within various parts of the device. 存储服务端在注销过后,则将拒绝任何从该设备发送来的请求信息。 After the storage server logout, any request information sent from the device are denied.

五. 设备关闭 V. device is turned off

设备关闭将导致与其连接的数据处理主机上盘符的消失,通过设备关闭将会使得装置内的虛拟的USB大容量存储设备的卸载。 Close the device will result in the disappearance of the letter on a data processing host computer connected thereto through the device will be turned off so that the unloading virtual USB mass storage devices within the device. 从而使其所占用的资源获得释放。 Making it the resources occupied released.

六. 配置 VI. Configuration

配置主要是在数据处理主机上进行,通过在数据处理主机上运行配置程 Is mainly arranged on a data processing host, by running on a data processing host configuration process

序,该配置程序将会通过私有命令的方式将所修改的配置下发至与其连接的数据远程存储装置中,装置在依据该配置信息对装置内的相应子模块进行设置。 Sequence, the program will be configured by way of a private The command issued to the modified configuration data is connected thereto in a remote storage device, setting device of the respective sub-module in the apparatus according to the configuration information. 所述的配置包括远端存储服务器信息、用户信息、以及装置运行所依赖的一些其他的参数。 The configuration includes a number of other parameters remote storage server information, user information, and the operation of the apparatus dependent.

对数据远程存储装置的配置也可以在远端存储服务器端执行,由远端存储服务器端直接执行对包括相应的数据远程存储装置的文件访问权限进行配置, 对应各远程存储装置的容量进行设置。 Configuring the remote data storage device may also be performed in a remote storage server, configured to perform direct file access data comprising a respective remote storage device by the remote storage server, set corresponding to the capacities of the remote storage device. 所述数据远程存储装置的配置也可从数据处理主机发送指令至远端存储服务器,由远端存储服务器根据指令的要求配置数据远程存储装置的相关参数。 The remote storage device configuration data may be transmitted from the data processing host command to the remote storage server, the configuration parameter data associated remote storage device according to the request command from the remote storage server.

需要说明的是,由于所有的数据是存储在远端存储服务器,因此只有当装置内整个网络准备好的时候,所述的虚拟USB大容量存储设备才能执行存储 Incidentally, since all the data is stored in a remote storage server, and therefore the device only when the entire network ready, said virtual USB mass storage device to perform storage

工作„ jobs"

关于本发明数据远程存储装置的远程网络存储流程,请参阅图5,网络存 Data on the remote storage device remote network storage processes of the present invention, please refer to FIG. 5, network storage

储数据流程实际上就是一个遵循icsa协议进行交互的过程,它也如scsi — 样,采用一应一答的方式。 Storing a data flow is actually follow icsa protocol interaction process, as it scsi - like, using a manner should answer.

首先,对于发送的SCSI数据包,装置检测1SCSI子模块是否已加载,如果没有加载,则提示产生错误;如ISCSI子模块已加载,则将SCSI数据包封装成ISCSI数据包; First, the SCSI data packet transmitted, means for detecting whether a sub-module 1SCSI loaded, if not loaded, an error is prompted; ISCSI submodule as loaded, then the packet is encapsulated into ISCSI SCSI data packets;

接下来,系统检测网络子模块是否已加载,如没有加载则提示产生错误; 如果网络子模块已加载,则数据包发送远端存储服务器,并等待应答; Next, the system detects the sub-network module is loaded, if no error is prompted to load; submodule if the network is loaded, then the remote storage server transmits the data packet, and waits for a response;

在等待应答的过程,判断应答是否超时,如果等待超时,则提示发生错误; 如果没有等待超时,则将收到的婆t据包拆分成SCSI数据包,并将执行的结果通前述的方式返回。 In the process of waiting for a response, the response is determined whether a timeout, if waiting for the timeout, the error occurred;, po t of the embodiment will be received without waiting for the timeout data packets SCSI split into packets and pass the results of execution of the return.

远端存储服务端主要任务是接收客户端发送来的各项请求,并依据该请求将返回客户端所需要的各类数据和进行相应的操作.为了适应在ISCSI规范下的各类大容量存储操作,同时又不能影响远端存储服务器上本身对存储设备的访问。 The main task of remote storage server receiving the client sends the request, according to the request and return various types of data required for the client and perform corresponding operations. In order to accommodate various types of mass storage in the specification under ISCSI operation, while not affecting the remote storage server itself access to the storage device. 远端存储服务端将采取文件虛拟磁盘的方法处理客户端对块数据的要 Remote storage server will take the virtual disk files approach to client wants to block data

求。 begging. 另外远端存储服务端还将采取类似UNIX的用户管理策略,这意味着不仅仅是每一个客户装置只是针对一个用来虛拟磁盘的文件,而是每一个虛拟磁盘都将会映射到不同的文件中的不同位置。 In addition remote storage server will take UNIX-like user management strategy, which means more than just each client device only for a virtual disk file is used, but each will have a virtual disk mapped to a different file in different locations. 因此,除了以文件来虚拟磁盘以外, 针对每一个客户都还将建立一个映射关系,通过这种映射关系,远端存储服务器将可以寻找到物理磁盘中数据真正存储的地方,从而进行访问。 Therefore, in addition to a virtual disk file for each client will also establish a mapping relationship, this relationship mapping, remote storage server will be able to find a local physical disk data in real storage, so access.

远端存储服务端从指定的网络接口接收数据,并对该数据进行分析,对于客户端发送来的请求将会判断其合法性。 Remote storage server receives the data from the designated network interface, and analyzing the data, for transmission to the requesting client will determine its legitimacy. 只有当权限允许的时候才会进行下一步操作。 Only when the authority will allow the next step.

远端存储服务端所接收的数据类型包括两类, 一个是指令数据, 一个是块 Remote storage server type data received includes two types, one is the command data, a block is

数据。 data. 指令数据包括认证、配置等操作,块数据则是依照ISCSI规范的操作数据,对于块数据服务端将会对其进行IP包的解封操作,以将其还原成SCSI 数据包,然后在依据该SCSI的包类型执行相应的搡作,将结果封装成ISCS1 数据包返回至客户端。 Instruction data including authentication, configuration, and so, the data block is in accordance with the operation data ISCSI specification for the server block data will be inverse-capsulation operation of the IP packet, to be reduced to the SCSI data packets, then according to the SCSI packet types corresponding shoving performed as the result ISCS1 encapsulated into packets back to the client.

本发明的数据远程存储装置在其内的设有通信单元的基础上通过软件的方式虚拟出一个存储设备及一连接设备,经该虛拟的连接设备连接虛拟的存储设备及通信单元(虚拟的网络设备),并借助该通信单元建立虛拟的存储设备与远端存储服务器的数据连接,当数据远程存储装置与数据处理主机建立连接时,所述虛拟连接设备将其所连接的存储设备与USB网络设备报告给数据处理主机,数据处理主机同时给存储设备和USB网络设备分别分配相应的存储标识符和网络标识符,通过对存储标识符操作,实现数据存取的要求,而通过对网络标识符的配置操作,提供数据处理主机连接互联网络,实现上网功能。 The communication unit is provided with a data base remote storage device in which the present invention is by way of software on the virtual storage device a and a connecting device connecting via the virtual device and the storage device connected to the virtual communication unit (the virtual network equipment), and by means of the communication unit to establish a virtual storage device connected to the remote data storage server, when the data storage device establishes a connection with the remote data processing host device connected to the virtual storage device to which it is connected to a USB network reported to the host data processing apparatus, data processing host to the storage device while assigning the network and USB storage devices respectively corresponding to the network identifier and an identifier, by storing an identifier of the operation, implementation requires data access, through the network identifier configuration operations to provide a data processing network host is connected, to achieve Internet access.

以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,对本发明所作的若干改进和润饰,这些改进和润饰也应视为本发明的保护范围„ The above are only preferred embodiments of the present invention, it should be noted that those of ordinary skill in the art, in the present invention without departing from the principles of the premise, improvements and modifications made of the present invention, which improvements and modifications also It shall be deemed scope of the present invention "

Claims (6)

  1. 1.一种数据远程存储的方法,包括: 建立数据远程存储装置与数据处理主机之间的数据连接,所述数据远程存储装置包括微处理单元和通信单元,所述微处理单元包括USB设备子模块、ISCSI子模块、网络子模块以及主控制模块,所述通信单元经网络子模块驱动成为USB网络设备; USB设备子模块虚拟出软USB HUB和USB虚拟设备,所述软USB HUB作为虚拟连接设备提供所述USB大容量存储设备和USB网络设备与数据处理主机的数据连接; 建立USB大容量存储设备经所述USB网络设备与远端存储服务器的数据连接;及所述USB大容量存储设备接受数据处理主机的指令,通过所述USB网络设备将数据传输至远端存储服务器进行存储,或通过所述USB网络设备从远端存储服务器接收数据。 A method of remotely stored data, comprising: establishing a data connection between the data storage means and data processing remote host, the remote data storage means comprises a micro processing unit and a communication unit, a micro processing unit includes a USB device sub module, the ISCSI sub-module, the sub-network module and a main control module, the communication unit via the network sub-module becomes USB network device driver; virtual USB device submodule and a soft USB HUB USB virtual devices, the virtual connection as soft USB HUB the device provides data USB mass storage device and the data processing network device USB host connection; establishing a USB mass storage device with a network device via the USB remote data storage server is connected; and the USB mass storage device receiving command data processing host, transmitting data to remote storage server for storing network via the USB device, or receive data from a remote network storage server via the USB device.
  2. 2. 如权利要求1所述的数据远程存储的方法,其特征在于:所述建立数据远程存储装置与数据处理主机之间的数据连接包括步骤:加载主控制模块,如主控制模块加载成功,则执行下一步骤,否则系统引导失败;加载网络子模块,如网络子模块加载成功,则执行下一步骤,否则系统引导失败;判断是否连接上远端存储服务器,如连接上远端存储服务器,则执行下一步骤,否则系统引导失败;加载ISCSI子模块,如加载ISCSI子模块成功,则执行下一步骤,否则系统引导失败;加载USB设备子模块,如加载USB设备子模块成功,则系统引导结束, 否则系统引导失败。 2. The method of remotely stored data according to claim 1, wherein: said establishing data between the data storage means and data processing remote host connection comprising the steps of: loading the main control module, such as the main control module is loaded, the next step is executed, otherwise the system boot failure; submodule loading network, such as network sub-module is loaded successfully, the next step is performed, otherwise the system boot fails; determining whether the storage server is connected to the distal end, the distal connector storage server , the next step is performed, otherwise the system boot fails; ISCSI loading submodule, such as ISCSI load sub-module is successful, the next step, otherwise the system boot fails; loading USB device submodules, USB devices such as load sub-module is successful, end system boot, or the system fails to boot.
  3. 3. 如权利要求1或2所述的数据远程存储的方法,其特征在于:所述数据远程存储装置建立与数据处理主机的连接包括步骤:执行软USB HUB加载,建立数据远程存储装置与数据处理主机之间的数据连接;进行设备驱动程序加载,驱动USB网络设备和USB大容量存储设备与软USB HUB之间的连4妾;数据处理主机进行设备登记,分配USB网络设备标识符和USB大容量存储设备盘符。 3. The data stored remotely method according to claim 12, wherein: said data storage means to establish a connection with the remote data processing host comprises the steps of: performing a soft loading USB HUB, establishing a data storage device and the remote data connection between the data processing host; for device drivers are loaded, the drive 4 is connected between the USB concubine network devices and USB mass storage device with soft T4 HUB USB; data processing host device registration, distribution network USB and USB device identifier mass storage device letter.
  4. 4. 如权利要求1或2所述的数据远程存储的方法,其特征在于:所述USB 网络设备将数据传输至远端存储服务器进行存储包括步骤:发送SCSI数据包;检测ISCSI子模块是否加栽;1SCSI子模块加载后将SCSI数据包封装成ISCSI数据包; 检测网络子模块是否已加载;网络子模块加载后将ISCSI数据包发送至远端存储服务器,并等待应答; 判断应答是否超时;若应答未超时,将收到的ISCSI数据包拆分成SCSI数据包,并返回结果。 4. The data stored remotely method according to claim 12, wherein: said USB devices transmit data to the network storage server for storing a distal end comprising the steps of: transmitting SCSI data packets; detecting whether a sub-module added ISCSI planted; 1SCSI submodule after loading SCSI data packets encapsulated into ISCSI data packet; detecting whether the sub-network module is loaded; ISCSI after loading submodule network packet to the remote storage server and waits for a response; determining whether the response is a timeout; If the response does not expire, the received data packet is split into ISCSI SCSI data packets, and returns the result.
  5. 5. —种数据远程存储装置,包括提供所述数据远程存储装置与数据处理主机数据连接的接口单元;提供所述数据远程存储装置与远端存储服务器建立数据连接的通信单元;以及控制所述通信单元与所述接口单元的微处理单元, 其特征在于:所述数据远程存储装置包括虛拟存储设备,所述虛拟存储设备经所述USB 网络设备建立与远端存储服务器的数据连接;所述微处理单元包括USB设备子模块、ISCSI:子模块、网络子模块和主控制模块;所述USB设备子模块通过软件方式虚拟出软USB HUB及虚拟USB设备;所述ISCSI子模块将SCSI 命令封装为IP数据包发送至远端存储服务器;所述网络子模块驱动通信单元成为一USB网络设备;主控制模块协调USB设备子模块、ISCSI子模块和/ 或网络子模块工作。 5. - Species remote data storage device, comprising providing a data interface unit remote storage device is connected to the data processing host data; providing said remote data storage device and remote storage server to establish a data connection communication unit; and controlling the micro processing unit communication unit and the interface unit, wherein: said data storage means comprises a remote virtual storage device, the storage device via the USB virtual network device to establish a connection with the remote data storage server; the micro processing unit includes a USB device sub-module, ISCSI: sub-module, a network control sub-module and the main module; sub-modules to the USB device a virtual soft virtual USB HUB USB device and by means of software; ISCSI the submodule encapsulate SCSI commands sending IP packets to the remote storage server; the communication network sub-module drive unit into a USB network device; master USB device control module coordination submodule, ISCSI sub-module and / or the sub-modules work network.
  6. 6. 如权利要求5所述数据远程存储装置,其特征在于:所述软USBHUB 作为虛拟连接设备建立所述USB大容量存储设备经所述接口单元与数据处理主机的数据连接。 5 6. The remote data storage device of claim, wherein: establishing a data connection to the USB mass via the interface unit and the data processing host to the storage device as a virtual soft USBHUB connected device.
CN 200410027207 2004-05-11 2004-05-11 Method and device for remote storing data CN100458744C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200410027207 CN100458744C (en) 2004-05-11 2004-05-11 Method and device for remote storing data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200410027207 CN100458744C (en) 2004-05-11 2004-05-11 Method and device for remote storing data

Publications (2)

Publication Number Publication Date
CN1696914A true CN1696914A (en) 2005-11-16
CN100458744C true CN100458744C (en) 2009-02-04

Family

ID=35349645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200410027207 CN100458744C (en) 2004-05-11 2004-05-11 Method and device for remote storing data

Country Status (1)

Country Link
CN (1) CN100458744C (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202758B (en) 2006-12-14 2010-08-25 英业达股份有限公司 Method for network virtual storage of multi-client terminals
CN101551802B (en) 2008-04-03 2011-09-21 纬创资通股份有限公司 File access method used for management system
CN102025751B (en) 2009-09-21 2013-04-24 北京闪联云视信息技术有限公司 Method, device and system for remotely accessing data
CN102243614A (en) * 2010-05-12 2011-11-16 深圳市江波龙电子有限公司 Network virtual storage equipment
CN102281264B (en) * 2010-06-13 2014-03-26 杭州华三通信技术有限公司 Virtual universal serial bus (USB) system, equipment and method for realizing USB host remote access
CN102487395B (en) * 2010-12-01 2014-11-05 北京闪联云视信息技术有限公司 Method, device and system for realizing data access
CN102970313A (en) * 2011-08-31 2013-03-13 北京中电华大电子设计有限责任公司 System for achieving wireless virtual universal serial bus (USB) flash disk based on wireless local area network (WLAN) technology
CN102662881A (en) * 2012-03-26 2012-09-12 深圳市朗科科技股份有限公司 USB (Universal serial bus) interconnection device and USB interconnection system
CN102981085A (en) * 2012-12-08 2013-03-20 江苏泰斯特电子设备制造有限公司 Dynamic signal test and analysis system of universal serial bus interface

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6421753B1 (en) 1997-12-31 2002-07-16 Crossroads Systems, Inc. Storage router and method for providing virtual local storage
CN1405689A (en) 2001-08-02 2003-03-26 Nexter情报技术有限公司 Portable storage medium and use of same
CN1474275A (en) 2002-08-06 2004-02-11 中国科学院计算技术研究所 System of intellignent network storage device based on virtual storage

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6421753B1 (en) 1997-12-31 2002-07-16 Crossroads Systems, Inc. Storage router and method for providing virtual local storage
CN1405689A (en) 2001-08-02 2003-03-26 Nexter情报技术有限公司 Portable storage medium and use of same
CN1474275A (en) 2002-08-06 2004-02-11 中国科学院计算技术研究所 System of intellignent network storage device based on virtual storage

Also Published As

Publication number Publication date Type
CN1696914A (en) 2005-11-16 application

Similar Documents

Publication Publication Date Title
US20060094461A1 (en) Dual mode human interface device
US20120324067A1 (en) Method and apparatus for remote delivery of managed usb services via a mobile computing device
US20030112820A1 (en) Security in multiple wireless local area networks
US20060154691A1 (en) Architecture and protocol for software defined radio system
CN102711282A (en) Method for accessing zero-input wireless equipment into network and zero-input wireless equipment
EP1134935A2 (en) Wireless local area network with plural RF ports
US20090204725A1 (en) Wimax communication through wi-fi emulation
CN101626351A (en) Multiprotocol data acquisition gateway
CN101083537A (en) Method, apparatus and system for realizing device management
CN1805441A (en) Integrated WLAN authentication architecture and method of implementing structural layers
US20030056098A1 (en) Electronic apparatus and wireless communication system
US7693044B2 (en) Single logical network interface for advanced load balancing and fail-over functionality
US20090262753A1 (en) System and method of communication protocols in communication systems
CN101662838A (en) Device, method and USB data card for realizing internet surfing without drive
CN101141354A (en) Terminal of selecting access to mobile network or wireless LAN
CN101938848A (en) Host computer equipment wireless network access method and system
CN103095565A (en) Software definition network operating system and implement method thereof
CN101860440A (en) Wireless internet module and data synchronism method and data card using same
CN101201620A (en) Built-in controller based on 802.11 wireless network protocol
CN102572891A (en) System and method for configuring network parameters fast
CN103914041A (en) Binding method of user operation terminal and household appliance control device and household appliance control system
CN201294545Y (en) Multi-protocol data acquisition gateway
CN1398093A (en) Wireless data communication method and device for data processing system
CN101808428A (en) Communication method and device of double-card dual-standby cell phone
CN102611750A (en) Double-protocol-stack accessing method and system

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C14 Granted