多功能数据存储设备及方法 Multifunctional data storage device and method
技术领域 Technical field
本发明涉及智能数据存储技术, 尤其是涉及一种用于在电脑和 /或各类电子 设备之间进行数据存储与共享的多功能数据存储设备及方法。 背景技术 The present invention relates to intelligent data storage technology, and in particular, to a multifunctional data storage device and method for storing and sharing data between a computer and / or various electronic devices. Background technique
目前, 多功能数据存储设备可以根据存储介质的种类分为磁存储器、光磁存 储器和半导体存储器 (Flash Memory)等三大类。 At present, multi-function data storage devices can be classified into three categories: magnetic memory, magneto-optical memory, and semiconductor memory (Flash Memory) according to the type of storage medium.
磁存储器的特点是机械式读取,必须配合相应的驱动器才能正常使用,包括 软盘和 ZIP盘。 其中, 软盘的容量小 (现在一般为 1.44M), 速度慢, 只适用于 小型文件简单备份和数据交换。 而 ZIP盘虽然具有较大的容量, 其较大的体积和 较贵的价格使它的使用范围受到很大限制。 Magnetic memory is characterized by mechanical reading, which must be matched with the corresponding drive to use normally, including floppy disk and ZIP disk. Among them, the capacity of the floppy disk is small (now generally 1.44M) and the speed is slow, which is only suitable for simple backup and data exchange of small files. Although the ZIP disk has a large capacity, its large size and expensive price make its use range greatly limited.
光磁存储器的缺点在于写数据的速度慢且不方便,对于需要经常修改数据的 情形极不实用。 此外, 其同样需要额外的驱动设备支持, 并且体积较大。 The disadvantage of magneto-optical memory is that the speed of writing data is slow and inconvenient, and it is extremely impractical for situations where data needs to be frequently modified. In addition, it also requires additional drive equipment support and is relatively large.
因此, 可以满足计算机应用过程中对低功耗、 高可靠性、 髙存储密度、 高读 写速度的要求的半导体存储器得到迅速发展, 被广泛地应用于手机、 数码相机、 PDA等消费类电子设备之中, 其外形结构多样, 尺寸越来越小, 容量越来越大, 接口方式越来越灵活。 Therefore, semiconductor memory that can meet the requirements of low power consumption, high reliability, high storage density, and high read / write speed in computer applications has been rapidly developed and is widely used in consumer electronics devices such as mobile phones, digital cameras, and PDAs. Among them, its shape and structure are diversified, the size is getting smaller and smaller, the capacity is getting bigger and bigger, and the interface method is getting more and more flexible.
基于半导体技术的半导体存储器主要包括: 以 USB为接口的闪盘、智存卡、 P3 等以及自定义接口和标准的数据存储卡。 现有的数据存储卡包括 CF (Compact Flash Card )、 SM (Smart Media Card)、 MMC (Multi Media Card)、 SD (Secure Digital )、 Memory Stick (记忆棒) 和 Micro Drive (微型硬盘) 等。 Semiconductor memory based on semiconductor technology mainly includes: USB-based flash drives, smart memory cards, P3, etc. as well as custom interfaces and standard data storage cards. Existing data storage cards include CF (Compact Flash Card), SM (Smart Media Card), MMC (Multi Media Card), SD (Secure Digital), Memory Stick and Micro Drive.
每种半导体存储器都有自身特定的数据接口、 尺寸、 协议和市场发展方向, 应用的场景也不一样, 例如釆用标准 USB接口的数据存储产品主要用于计算机、 笔记本电脑等,而自定义接口和标准的数据存储卡多用于电子设备,如数码相机、 PDA等嵌入设备。 Each semiconductor memory has its own specific data interface, size, protocol, and market development direction, and the application scenarios are different. For example, data storage products that use standard USB interfaces are mainly used in computers, notebook computers, etc., and custom interfaces And standard data storage cards are mostly used in electronic devices, such as digital cameras, PDAs and other embedded devices.
为了实现电脑与电子设备之间的数据共享,需要在电脑上对各种各样的数据 存储卡进行读写操作。一种现有技术釆用读卡器作为连接数据存储卡和电脑的接
口设备, 从而为数据存储卡的数据转移提供一条便捷的数据通道。 同样, 通过读 卡器和数据存储卡可以在电脑与电脑之间进行数据共享。 In order to realize data sharing between a computer and an electronic device, various data storage cards need to be read and written on the computer. In the prior art, a card reader is used as an interface between a data storage card and a computer. Interface device to provide a convenient data channel for data transfer from the data storage card. Similarly, data can be shared between computers using a card reader and a data storage card.
按照读取的数据存储卡的种类来分,读卡器可以分为单功能读卡器和多功能 读卡器。 所谓单功能读卡器一般只能读取一种类型的数据存储卡, 如 CF读卡器 只能读取 CF卡, SM读卡器只能读取 SM卡。由于各种数据存储卡之间互不兼容, 单一功能的读卡器就不能满足"通用"的需求。 使得不同格式的数据存储卡需要不 同的读卡器, 如 SM卡读卡器, Memory Stiek读卡器等等, 数据的交换变得较为 复杂, 导致电脑和 /或不同电子设备之间的数据共享较为困难。 According to the type of data memory card read, card readers can be divided into single-function card readers and multi-function card readers. The so-called single function card reader can only read one type of data storage card, such as CF card reader can only read CF card, SM card reader can only read SM card. Because various data storage cards are incompatible with each other, a single-function card reader cannot meet the "universal" requirements. Data storage cards of different formats require different card readers, such as SM card readers, Memory Stiek card readers, etc., the data exchange becomes more complicated, resulting in data sharing between computers and / or different electronic devices More difficult.
多功能读卡器则可以兼容多种数据存储卡,无论是 SM卡、还是 Memory Stick 或者其他类型都可以读写。 但是所述多功能读卡器也具有缺陷: 对于不同的电子 设备与电脑之间的数据共享,需要将不同的数据存储卡插入到电脑中;除此之外, 多功能读卡器还有携带不方便、 价格不菲等缺点。 ' Multi-function card reader can be compatible with a variety of data storage cards, whether SM card, Memory Stick or other types can read and write. However, the multi-function card reader also has defects: for data sharing between different electronic devices and computers, different data storage cards need to be inserted into the computer; in addition, the multi-function card reader also carries Inconvenient, expensive and other disadvantages. '
而且,上述单功能读卡器和多功能读卡器具有相同的缺点: 由于电脑与电子 设备对数据的读写操作分别遵从不同的协议, 使得在实现数据交换时需要进行数 据格式的转换, 并不是真正意义上的数据共享, 从而耗费较长的时间, 影响读写 速度。 In addition, the above-mentioned single-function card reader and multi-function card reader have the same disadvantages: Since the data read and write operations of the computer and the electronic device comply with different protocols, the data format conversion needs to be performed when the data exchange is implemented, and It is not true data sharing, which takes a long time and affects reading and writing speed.
此外, 另一现有技术 CN1201235公幵了一种外部存储装置, 用于连接并且 高速存储具有不同类型的内置接口的电子设备。 图 14示出了该外部存储装置的 结构, 包括存储装置 22, 接口控制器 A21 , 和接口控制器 A24, 两个接口控制器 的每一个都具有用来执行向存储装置 22写入数据和 /或从存储装置 22读取数据的 不同类型的内置接口控制单元,和用来选择和连接接口控制器 A21和接口控制器 A24中的一个到该电子设备的连接装置 26,其中根据该电子设备发出的控制命令 来选择接口控制器 A21和接口控制器 B24之一。 In addition, another prior art CN1201235 discloses an external storage device for connecting and storing high-speed electronic devices with different types of built-in interfaces. FIG. 14 shows the structure of the external storage device, which includes a storage device 22, an interface controller A21, and an interface controller A24. Each of the two interface controllers has a function of performing data writing to the storage device 22 and / Or a different type of built-in interface control unit that reads data from the storage device 22, and a connection device 26 for selecting and connecting one of the interface controller A21 and the interface controller A24 to the electronic device, wherein according to the electronic device, Control command to select one of interface controller A21 and interface controller B24.
上述的现有技术同样存在不能同时在多个电子设备之间共享存储空间的缺 点, 因为该外部存储装置在同一时间只能与一个电子设备连接。 因此, 无法同时 建立与多个终端电子设备的数据通道, 实现终端电子设备的互联和资源实时共 享。 The above-mentioned prior art also has the disadvantage that the storage space cannot be shared among multiple electronic devices at the same time, because the external storage device can only be connected to one electronic device at the same time. Therefore, it is not possible to establish data channels with multiple terminal electronic devices at the same time, and realize the interconnection of terminal electronic devices and real-time sharing of resources.
其次, 现有技术的数据存储卡应用的范围和功能相对单一, 存在局限性; 进 而使得不同的终端电子设备之间的数据共享和交互变得较为复杂。 Secondly, the scope and functions of the existing data memory card applications are relatively single and have limitations; furthermore, data sharing and interaction between different terminal electronic devices becomes more complicated.
再次,现有技术的数据存储卡有些并非是计算机的标准配置,无法直接与计
67 算机交换数据, 计算机要读写数据存储卡还必须增加读卡器才能实现, 使用复杂 且增加额外的幵支, 并且读卡器通常难以兼容所有的移动存储卡; 另外, 读卡器 的使用对于对便携性要求较高的人士而言也较为不便。 Third, some existing data storage cards are not standard in computers and cannot be directly 67 Computers exchange data. Computers must read and write data memory cards by adding a card reader to achieve this. The use is complicated and adds extra support, and it is often difficult for card readers to be compatible with all mobile memory cards. In addition, It is also inconvenient for people who require high portability.
此外, 随着信息量的加大,现有的数据存储卡单纯具有的存储功能已不能满 足需求, 如为了防止数据被非法拷贝, 需要配置一定的加密机制。 In addition, with the increase in the amount of information, the existing data storage cards simply cannot meet the storage requirements. For example, in order to prevent data from being copied illegally, a certain encryption mechanism needs to be configured.
此外, 目前, 许多电子设备, 如手机, 对数据的存储容量的需求越来越大, 内置 USB接口实现外置存储也因此越来越被重视。 而时尚的 MP3播放器也在不 断的变革中, 外置存储装置也越来越成为一种趋势, 上述电子设备共同的特点是 均为电池供电设备, 一般釆用 3.3V方式。虽然手机和 MP3等电子设备具有 USB 接口存储功能, 与电脑遵从同种协议, 即 USB 协议。 但是, 由于电脑采用的完 全标准的 USB接口供应的电源为 5V, 而目前的消费电子设备则普適采用 3,3V 的供电方式。 因此, 完全标准的 USB接口的数据存储设备或存储卡的电压和功 耗等参数并不符合这些电子设备的应用需求。 发明内容 In addition, at present, many electronic devices, such as mobile phones, are increasingly demanding data storage capacity, and built-in USB interfaces are becoming more and more important for external storage. And stylish MP3 players are also constantly changing, and external storage devices are becoming a trend. The common feature of the above-mentioned electronic devices is that they are all battery-powered devices and generally use 3.3V. Although electronic devices such as mobile phones and MP3s have a USB interface storage function, they follow the same protocol as the computer, that is, the USB protocol. However, because the computer uses a fully standard USB interface to supply power of 5V, current consumer electronics devices generally use a 3,3V power supply. Therefore, parameters such as voltage and power consumption of data storage devices or memory cards with fully standard USB interfaces do not meet the application requirements of these electronic devices. Summary of the invention
由于现有技术在电脑和 /或电子设备之间的数据共享速度较慢且较为复杂, 本发明解决的一个技术问题在于提供一种多功能数据存储设备和方法, 可以实现 灵活方便的数据存储、 交互和共享功能。 Because the data sharing speed between computers and / or electronic devices in the prior art is slow and complicated, a technical problem solved by the present invention is to provide a multifunctional data storage device and method, which can realize flexible and convenient data storage, Interaction and sharing capabilities.
为此, 在本发明的一个方面, 提供一种多功能数据存储设备, 包括. · 多个 接口, 分别遵从各自的接口协议, 用于建立多功能数据存储设备与釆用相应接口 协议的多个外部设备之间的数据通道; 存储装置, 用于存储来自多个外部设备的 数据; 主控制装置, 用于控制多个接口和存储装置, 以通过多个接口中的一个接 口将来自多个外部设备中的一个外部设备的数据存储到存储装置中, 或者经过另 一接口将数据从存储装置读出到另一外部设备。 To this end, in one aspect of the present invention, a multifunctional data storage device is provided, including: a plurality of interfaces, each complying with a respective interface protocol, for establishing a multifunctional data storage device and a plurality of interfaces using a corresponding interface protocol. A data channel between external devices; a storage device for storing data from a plurality of external devices; a main control device for controlling a plurality of interfaces and a storage device so as to transfer data from a plurality of external devices through one of the plurality of interfaces Data of an external device in the device is stored in a storage device, or data is read from the storage device to another external device through another interface.
此外, 主控制装置包括: 分别与多个接口相连接的多个接口控制器, 用于 根据相应的接口协议, 建立数据通道; 以及与存储装置连接的存储控制器, 用于 控制存储装置。 In addition, the main control device includes: a plurality of interface controllers respectively connected to a plurality of interfaces to establish a data channel according to a corresponding interface protocol; and a storage controller connected to the storage device to control the storage device.
此外, 主控制装置还包括: 设置在多个接口控制器和存储控制器之间的缓 冲器, 用于缓存多功能数据存储设备与外部设备之间交换的数据; 以及协议控制 器, 用于选择与数据通道相对应的接口协议。
此外, 多个接口包括: 第一接口, 用于实现多功能数据存储设备和第一外 部设备的连通; 和与第一接口不同的第二接口, 用于实现多功能数据存储设备和 第二外部设备的连通; 多个接口控制器包括: 用于控制第一接口的第一接口控制 器, 和用于控制第二接口的第二接口控制器。 In addition, the main control device further includes: a buffer provided between the plurality of interface controllers and the storage controller, for buffering data exchanged between the multifunctional data storage device and an external device; and a protocol controller for selecting Interface protocol corresponding to the data channel. In addition, the multiple interfaces include: a first interface for implementing communication between the multifunctional data storage device and the first external device; and a second interface different from the first interface for implementing the multifunctional data storage device and the second external device Communication of the device; the plurality of interface controllers include: a first interface controller for controlling the first interface, and a second interface controller for controlling the second interface.
此外, 上述多功能数据存储设备还包括具有场效应管和稳压管的电源管理 单元, 其与第一接口、 第二接口相连接, 将第一或者第二外部设备供应的电源转 换为多功能数据存储设备的工作电源。 In addition, the multifunctional data storage device further includes a power management unit having a field effect tube and a voltage stabilizing tube, which is connected to the first interface and the second interface, and converts the power supplied by the first or second external device into a multifunctional device. The working power of the data storage device.
此外, 上述第一和第二接口分别从下面的接口中选出: SM、 MMC、 SD、 CF、 MS、 USB、 USBDP、 MD和 /或 x-D接口。 In addition, the first and second interfaces are selected from the following interfaces: SM, MMC, SD, CF, MS, USB, USBDP, MD, and / or x-D interfaces.
此夕卜,上述存储装置包括快闪存储器、 MRAM、 DRAM、 SDRAM. EEPROM、 Moreover, the above storage devices include flash memory, MRAM, DRAM, SDRAM. EEPROM,
SRAM和 /或 EPROM。 SRAM and / or EPROM.
相对于现有技术, 上述技术方案的有益效果是: 首先, 本发明多功能数据存 储设备具有分别遵从第一接口协议和第二接口协议的第一接口单元和第二接口 单元, 使得采用不同协议的外部设备之间可以共享记忆存储单元。 即在多功能数 据存储设备接入外部设备之后, 主控制器单元可以按照外部设备的接口特性遵从 不同的协议独立实现对记忆存储单元的操作, 加之, 记忆存储体是按照文件存储 方式, 与接口传输方式没有直接的关系,从而达到对记忆存储单元的共享。因此, 在采用本发明多功能数据存储设备的情况下, 遵从不同协议的外部设备之间不再 需要读卡器等转接设备、 也无需改变外部设备存储设计, 即可实现自由的数据存 储功能、 并且灵活方便的进行数据交互和共享。 Compared with the prior art, the above technical solution has the following beneficial effects: First, the multifunctional data storage device of the present invention has a first interface unit and a second interface unit that respectively comply with the first interface protocol and the second interface protocol, so that different protocols are adopted. Memory storage units can be shared between external devices. That is, after the multifunctional data storage device is connected to an external device, the main controller unit can independently implement operations on the memory storage unit according to the interface characteristics of the external device and comply with different protocols. In addition, the memory storage body is interfaced with the file according to the file storage mode. There is no direct relationship between the transmission methods, thus achieving the sharing of memory storage units. Therefore, in the case of adopting the multifunctional data storage device of the present invention, there is no need for a switching device such as a card reader between external devices complying with different protocols, and there is no need to change the storage design of the external device to realize a free data storage function. , And flexible and convenient for data interaction and sharing.
其次,对于釆用标准 USB接口的电脑和采用自定义 USB接口的电子设备(如 手机、 MP3等)而言, 第一接口单元可以采用双电源的 USBDP接口技术,从而在 遵从同种协议 (即 USB协议)的情况下,实现电脑和电子设备之间灵活方便的数据 交互和共享功能。 Secondly, for computers that use standard USB interfaces and electronic devices (such as mobile phones, MP3, etc.) that use custom USB interfaces, the first interface unit can use dual-power USBDP interface technology to comply with the same protocol (i.e. USB protocol), to achieve flexible and convenient data interaction and sharing functions between computers and electronic devices.
本发明解决的另一技术问题在于提供一种多功能数据存储设备,可以减少对 外部设备的硬件依赖性并易于实现数据共享。 Another technical problem solved by the present invention is to provide a multifunctional data storage device, which can reduce hardware dependence on external devices and facilitate data sharing.
在本发明的另一方面, 提供一种多功能数据存储设备, 包括: 主控制装置、 接口装置、存储装置和电源装置; 主控制装置与接口装置、存储装置和电源相连, 支持数据信息的流动并协调各部分的工作; 其中多功能数据存储设备还包括无线 收发装置, 无线收发装置连接主控制装置, 用于建立多功能数据存储设备与外部
T/CN2005/000167 设备的无线数据传输通道。 In another aspect of the present invention, a multifunctional data storage device is provided, including: a main control device, an interface device, a storage device, and a power supply device; the main control device is connected to the interface device, the storage device, and a power supply, and supports the flow of data information And coordinate the work of each part; the multifunctional data storage device also includes a wireless transceiver device, the wireless transceiver device is connected to the main control device, and is used to establish the multifunctional data storage device and the external T / CN2005 / 000167 Device's wireless data transmission channel.
此外, 该主控制装置包括: 用于对存储装置进行数据读写的存储控制器; 用 于控制接口装置的接口控制器; 和连接并控制存储控制器、 接口控制器的微处理 器。 In addition, the main control device includes: a storage controller for reading and writing data from and to the storage device; an interface controller for controlling the interface device; and a microprocessor connected to and controlling the storage controller and the interface controller.
此外, 该接口装置是存储数据接口和无线数据传输接口的复用接口模块。 此外, 该主控制装置还包括数据加 /解密器。 In addition, the interface device is a multiplexing interface module that stores a data interface and a wireless data transmission interface. In addition, the main control device includes a data encryption / decryption device.
此外, 该主控制装置是单一物理实体。 In addition, the master control device is a single physical entity.
此外,该接口装置是单个接口、多个相同接口和 /或多个不同类型接口的组合。 此外,该接口从下面的接口中选出; SM、 MMC、 SD、 CF、 MS、 USB、 USBDP、 MD和 /或 x-D接口。 Moreover, the interface device is a combination of a single interface, multiple identical interfaces, and / or multiple different types of interfaces. In addition, the interface is selected from the following interfaces: SM, MMC, SD, CF, MS, USB, USBDP, MD, and / or x-D interfaces.
此外, 该存储装置包括: 闪存储器、 MRAM、 DRAM、 SDRAM、 EEPROM、 SRAM禾口 /或 EPROM。 In addition, the storage device includes: flash memory, MRAM, DRAM, SDRAM, EEPROM, SRAM and / or EPROM.
此外, 无线收发单元包括蓝牙收发模块和 /或射频识别模块。 In addition, the wireless transceiver unit includes a Bluetooth transceiver module and / or a radio frequency identification module.
此外, 该电源装置是分级电源管理模块, 用于从外部电源和 /或自带电源汲 取电力, 提供至少两个不同的输出电压。 In addition, the power supply device is a hierarchical power management module, configured to draw power from an external power supply and / or a built-in power supply, and provide at least two different output voltages.
此外, 在无线收发装置不工作时, 分级电源管理模块切断无线收发装置的电 源。 In addition, when the wireless transceiver is not operating, the hierarchical power management module cuts off the power of the wireless transceiver.
相对于现有技术, 上述技术方案的有益效果是; 由于本发明同时具有接口单 元和无线收发单元, 可以降低对终端电子设备等外部设备的硬件的依赖性。 Compared with the prior art, the foregoing technical solution has a beneficial effect; since the present invention has an interface unit and a wireless transceiver unit at the same time, it can reduce the dependency on hardware of external devices such as terminal electronic equipment.
利用接口单元既可做为存储数据接口,又可作为无线数据传输接口的可复用 特点, 采用与主控制器单元连接的无线收发单元, 使得存储装置也可以作为诸如 蓝牙等无线通讯的载体, 使外部设备之间方便的形成无线存储网络, 从而实现外 部设备, 特别是嵌入式设备 (如 MP3、 数码相机等) 之间的无线互联、 数据共享 功能, 实现实时的数据交换。 此外, 相对于现有技术在嵌入式设备中设置无线收 发单元来实现无线互联来说, 本发明采用具有无线收发单元的多功能数据存储设 备, 可以大为降低嵌入式设备的成本。 Utilizing the reusable features of the interface unit as both a storage data interface and a wireless data transmission interface, a wireless transceiver unit connected to the main controller unit is used, so that the storage device can also be used as a carrier for wireless communications such as Bluetooth. The wireless storage network is conveniently formed between external devices, so as to realize the wireless interconnection and data sharing functions between external devices, especially embedded devices (such as MP3, digital cameras, etc.), and real-time data exchange. In addition, compared with the prior art, where a wireless transmitting and receiving unit is provided in an embedded device to implement wireless interconnection, the present invention uses a multifunctional data storage device with a wireless transmitting and receiving unit, which can greatly reduce the cost of the embedded device.
此外, 釆用双电源的 USBDP接口技术(标准 USB接口电源是 +5V, 另一路 电源为低电压电源) ,让计算机、 低电压接口的嵌入式设备 (如 USB接口存储功能 的手机 ,MP3等终端设备), 在遵从同种协议 (即 USB协议)的情况下, 通过多功能 数据存储设备实现灵活方便的数据交互和共享功能。
当采用多个接口的组合时, 还共享记忆存储单元, 实现不同接口的数字终端 设备在遵从各自不同协议的情况下,不需其他转换装置, 并通用数据存储, 灵活方 便实现数据交互和共享功能。 In addition, dual-power USBDP interface technology is used (standard USB interface power is + 5V, and the other power is low voltage power), allowing computers and embedded devices with low voltage interfaces (such as mobile phones with USB interface storage function, MP3 and other terminals) Device), in the case of complying with the same protocol (ie, the USB protocol), a flexible and convenient data interaction and sharing function is realized through a multifunctional data storage device. When a combination of multiple interfaces is used, a memory storage unit is also shared, and digital terminal devices that implement different interfaces do not need other conversion devices when they comply with their respective different protocols, and universal data storage, which is flexible and convenient to implement data interaction and sharing functions .
采用分级电源管理, 设备可自由的控制无线收发单元的电源, 在不需蓝牙数 据传输时关断蓝牙收发单元的电源, 特别是能提高以电池供电的嵌入式设备的电 源使用率, 同时也避免了在进行数据存储时会有蓝牙收发单元的无线干扰。 Using hierarchical power management, the device can freely control the power of the wireless transceiver unit, and turn off the power of the Bluetooth transceiver unit when Bluetooth data transmission is not needed, especially to improve the power usage of battery-powered embedded devices, while also avoiding In the process of data storage, there will be wireless interference from the Bluetooth transceiver unit.
另外, 由于主控制器单元中具有数据加 /解密器, 可以实现数据的安全存储。 附图说明 In addition, since the data encryption / decryption device is provided in the main controller unit, data can be safely stored. BRIEF DESCRIPTION OF THE DRAWINGS
图 1是本发明多功能数据存储设备的结构方框图; FIG. 1 is a structural block diagram of a multifunctional data storage device according to the present invention;
图 2是本发明多功能数据存储设备第一实施方式的方框图; 2 is a block diagram of a first embodiment of a multifunctional data storage device according to the present invention;
图 3是本发明多功能数据存储方法的流程图; 3 is a flowchart of a multifunctional data storage method according to the present invention;
图 4是本发明多功能数据存储设备第一实施方式的示意图; 4 is a schematic diagram of a first embodiment of a multifunctional data storage device according to the present invention;
图 5是图 2所示多功能数据存储设备的电源管理单元的电路图; 5 is a circuit diagram of a power management unit of the multifunctional data storage device shown in FIG. 2;
图 6是图 2所示多功能数据存储设备进行数据读写的流程图; 6 is a flowchart of reading and writing data by the multifunctional data storage device shown in FIG. 2;
图 7是本发明第二实施例的多功能数据存储设备的原理框图; 7 is a principle block diagram of a multifunctional data storage device according to a second embodiment of the present invention;
图 8是本发明第二实施例多功能数据存储设备的一个具体结构框图; 图 9是本发明第二实施例的多功能数据存储设备另一具体结构框图; 图 10是图 9所示多功能数据存储设备的电路原理图; 8 is a specific structural block diagram of a multifunctional data storage device according to a second embodiment of the present invention; FIG. 9 is another specific structural block diagram of a multifunctional data storage device according to a second embodiment of the present invention; FIG. 10 is a multifunctional data storage device shown in FIG. 9 Circuit diagram of data storage device;
图 11是图 9所示多功能数据存储设备执行的数据读写操作的流程图; 图 12是图 9所示多功能数据存储设备执行的数据传输的流程图; FIG. 11 is a flowchart of data read and write operations performed by the multifunctional data storage device shown in FIG. 9; FIG. 12 is a flowchart of data transmission performed by the multifunctional data storage device shown in FIG. 9;
图 13是图 9所示的多功能数据存储设备执行的数据接收的流程图; 以及 图 14是现有技术的外部存储装置的配置图。 具体实施方式 FIG. 13 is a flowchart of data reception performed by the multifunctional data storage device shown in FIG. 9; and FIG. 14 is a configuration diagram of a conventional external storage device. detailed description
【第一实施例】 [First embodiment]
请参考图 1, 本发明多功能数据存储设备 100用于实现外部设备 (图未示) 的存储功能, 使得采用不同接口类型的外部设备之间可以灵活方便地进行数据交 互和共享。 多功能数据存储设备 100包括主控制器单元 110、 记忆存储单元 120、 第一接口单元 130和第二接口单元 140。
记忆存储单元 120 釆用闪存作为存储介质, 用于存储数据; 第一接口单元 130和第二接口单元 140分别遵从第一接口协议和第二接口协议, 用于建立设备 100和外部设备的数据通道; 主控制器单元 110与记忆存储单元 120、 第一接口 单元 130和第二接口单元 140相连, 用于控制记忆存储单元 120、 第一接口单元 130和第二接口单元 140, 实现与外部设备的数据通信和对记忆存储单元 120的 读写操作。 Please refer to FIG. 1. The multifunctional data storage device 100 of the present invention is used to implement the storage function of an external device (not shown), so that external devices using different interface types can flexibly and conveniently perform data interaction and sharing. The multifunctional data storage device 100 includes a main controller unit 110, a memory storage unit 120, a first interface unit 130, and a second interface unit 140. The memory storage unit 120 uses a flash memory as a storage medium for storing data; the first interface unit 130 and the second interface unit 140 respectively comply with the first interface protocol and the second interface protocol, and are used to establish a data channel between the device 100 and an external device. The main controller unit 110 is connected to the memory storage unit 120, the first interface unit 130, and the second interface unit 140, and is configured to control the memory storage unit 120, the first interface unit 130, and the second interface unit 140 to implement communication with an external device. Data communication and read and write operations to the memory storage unit 120.
主控制器单元 110包括第一接口控制器 111、 第二接口控制器 112和记忆存 储控制器 113, 分别用于控制第一接口单元 130、 第二接口单元 140和记忆存储 单元 120。 The main controller unit 110 includes a first interface controller 111, a second interface controller 112, and a memory storage controller 113, which are respectively used to control the first interface unit 130, the second interface unit 140, and the memory storage unit 120.
图 3是本发明多功能数据存储方法的流程图。 FIG. 3 is a flowchart of a multifunctional data storage method according to the present invention.
首先执行步骤 S301, 多功能数据存储设备 100接入外部设备 (例如包括数码 相机、手机、 MP3、 电脑等外部设备), 从外部设备获取电源, 并进行系统初始化。 随后执行步骤 S302, 多功能数据存储设备 100准备接收外部设备的命令。 First, step S301 is performed. The multi-function data storage device 100 is connected to an external device (for example, an external device such as a digital camera, a mobile phone, an MP3, and a computer), obtains power from the external device, and initializes the system. Subsequently, step S302 is performed, and the multifunctional data storage device 100 is ready to receive a command from an external device.
多功能数据存储设备 100的主控制器单元 110接下来执行步骤 S303, 根据 外部设备的接口类型选择第一接口单元 130 或第二接口单元 140来建立数据通 道。 The main controller unit 110 of the multifunctional data storage device 100 next executes step S303, and selects the first interface unit 130 or the second interface unit 140 according to the interface type of the external device to establish a data channel.
在步骤 S304, 多功能数据存储设备 100接收来自外部设备的传输命令包, 通过主控制器单元 110对该传输命令包进行解析。 然后在步骤 S305判断是否为 读写操作请求, 如果是, 则执行步骤 S307; 如果不是读写操作请求, 则在步骤 S306执行相应的操作并返回步骤 S304。 In step S304, the multifunctional data storage device 100 receives a transmission command packet from an external device, and analyzes the transmission command packet through the main controller unit 110. It is then determined in step S305 whether it is a read-write operation request, and if so, step S307 is performed; if it is not a read-write operation request, then a corresponding operation is performed in step S306 and the process returns to step S304.
在步骤 S307, 主控制器单元 110根据解析结果对记忆存储单元 120进行读 写操作, 最后执行步骤 S308, 将操作结果返回至外部设备。 In step S307, the main controller unit 110 performs a read and write operation on the memory storage unit 120 according to the analysis result, and finally executes step S308 to return the operation result to the external device.
图 2是本发明多功能数据存储设备的一个具体实施方式。多功能数据存储设 备 200包括主控制器单元 210、 记忆存储单元 220、 USBDP (双电源 USB) 接口 单元 230、 MMC接口单元 240和电源管理单元 250。 其中, 主控制器单元 210与 其他单元相连, 用于控制其他单元的操作。 为了使附图更为清晰, 简化了电源管 理单元 250与其他单元之间的连线。 FIG. 2 is a specific embodiment of the multifunctional data storage device of the present invention. The multifunctional data storage device 200 includes a main controller unit 210, a memory storage unit 220, a USBDP (dual power USB) interface unit 230, an MMC interface unit 240, and a power management unit 250. The main controller unit 210 is connected to other units and is used to control operations of other units. To make the drawings clearer, the wiring between the power management unit 250 and other units is simplified.
主控制器单元 210是多功能数据存储设备 200的控制核心,其使得釆用不同 协议的外部设备可以分别独立地共享记忆存储单元 220, 从而不同的外部设备之 间的数据交互易于进行而无需两种协议的转换。该主控制器单元 210包含 USBDP
控制器 211、 MMC控制器 212、 记忆存储控制器 213、 数据缓冲器 214以及固化 有 Firmware (协议控制程序) 的协议控制器 215。 The main controller unit 210 is the control core of the multifunctional data storage device 200, which enables external devices using different protocols to share the memory storage unit 220 independently, so that data interaction between different external devices is easy to perform without the need for two This protocol conversion. The main controller unit 210 includes USBDP The controller 211, the MMC controller 212, the memory storage controller 213, the data buffer 214, and the protocol controller 215 in which Firmware (protocol control program) is fixed.
该记忆存储单元 220釆用半导体存储介质 FLASH, 具备容量大、 速度快、 体积小等特性, 用于存储数据。 可以采用三星公司生产的大容量 NAND 结构的 FLASH, 也可以其他公司的 FLASH产品。 The memory storage unit 220 uses a semiconductor storage medium FLASH, which has characteristics such as large capacity, high speed, and small size, and is used for storing data. Can use the high-capacity NAND structure FLASH produced by Samsung, or other companies' FLASH products.
图 4示出了该多功能数据存储设备的外观, 其中, USBDP接口单元 230采 用的 USBDP接口的管脚定义如表 1所示。 FIG. 4 shows the appearance of the multifunctional data storage device. The pin definitions of the USBDP interface used by the USBDP interface unit 230 are shown in Table 1.
USBDP接口单元管脚定义 USBDP interface unit pin definition
由表 1可知, USBDP接口单元 230可以通过在标准 USB接口的基础上增加 两片 3.3V管脚形成, 考虑保留现有的 USB本身接口尺寸, 增加两片 3.3V管脚 尺寸加起来的宽度相当一片 5V管脚的宽度。 It can be known from Table 1 that the USBDP interface unit 230 can be formed by adding two pieces of 3.3V pins to the standard USB interface. Considering to retain the existing USB interface size, adding two pieces of 3.3V pin size adds up to a similar width. The width of a 5V pin.
MMC接口单元 240以标准的 MMC接口尺寸和接口定义为基础, 遵从标准 的 MMC规范和接口电气特性, 使得本发明多功能数据存储设备 200可以应用于 釆用标准 MMC接口的外部设备。 上述 MMC接口单元 240的管脚定义如表 2所 示。 The MMC interface unit 240 is based on the standard MMC interface size and interface definition, and complies with the standard MMC specifications and interface electrical characteristics, so that the multifunctional data storage device 200 of the present invention can be applied to external devices that use the standard MMC interface. The pin definitions of the MMC interface unit 240 are shown in Table 2.
MMC接口单元管脚定义 MMC interface unit pin definition
图 5是图 2所示多功能数据存储设备的电源管理单元的电路图,电源管理单
N2005/000167 元 250用于配合 USBDP接口单元 230和 MMC接口单元 240, 将外部设备供应 的电源转换为多功能数据存储设备 200的工作电源。 FIG. 5 is a circuit diagram of a power management unit of the multifunctional data storage device shown in FIG. N2005 / 000167 yuan 250 is used to cooperate with the USBDP interface unit 230 and the MMC interface unit 240 to convert the power supplied by the external device into the working power of the multifunctional data storage device 200.
目前, 电脑釆用的标准的 USB接口通常是 5V 电压供电, 而通常的电子设 备如嵌入式设备多以电池供电, 可提供 3.3V 的电压输出。 多功能数据存储设备 200中的主控制器单元 210和记忆存储单元 220通常使用 3.3V的工作电压。为了 可靠的工作, 从 USBDP接口单元 230获取的 5V电压还必需通过电源管理单元 250转换为 3.3V电压;如果从 USBDP接口单元 230的 3.3V管脚或 MMC接口单 元 240供电, 则可直接起供电的作用。 At present, the standard USB interface used in computers is usually powered by 5V, and most electronic devices, such as embedded devices, are mostly battery-powered and can provide 3.3V voltage output. The main controller unit 210 and the memory storage unit 220 in the multifunctional data storage device 200 generally use an operating voltage of 3.3V. In order to work reliably, the 5V voltage obtained from the USBDP interface unit 230 must also be converted to a 3.3V voltage by the power management unit 250; if it is powered from the 3.3V pins of the USBDP interface unit 230 or the MMC interface unit 240, it can directly power Role.
如图 5所示, 电源管理单元 250包括场效应管 251和稳压器 252。 当多功能 数据存储设备 200在电脑等釆用标准的 USB接口的外部设备上使用时, 仅有 5V 电源输入, 需先经过稳压器 252转换为 3.3V电源输出, 再经过场效应管 251输 出。 当多功能数据存储设备 200在采用自定义的 USB接口或 MMC接口的外部 设备上使用时, 场效应管 251处于断开状态, 3.3V电源直接输出。 As shown in FIG. 5, the power management unit 250 includes a field effect transistor 251 and a voltage regulator 252. When the multi-function data storage device 200 is used on a computer or other external device using a standard USB interface, it has only a 5V power input, which needs to be converted to a 3.3V power output by the regulator 252 and then output by the field effect tube 251 . When the multifunctional data storage device 200 is used on an external device using a custom USB interface or an MMC interface, the field effect tube 251 is in an off state, and the 3.3V power supply is directly output.
图 6是多功能数据存储设备 200进行数据读写的流程图。为了便于对本发明 的理解, 以数码相机和电脑之间通过多功能数据存储设备 200进行数据转移为例 进行说明。 FIG. 6 is a flowchart of data reading and writing performed by the multifunctional data storage device 200. In order to facilitate the understanding of the present invention, the data transfer between the digital camera and the computer through the multifunctional data storage device 200 is taken as an example for description.
首先执行步骤 S601 , 多功能数据存储设备 200接入数码相机的多功能存储 卡座(未示出), 从数码相机获取电源, 并进行系统初始化。 随后执行步骤 S602, 准备接收来自数码相机的命令。 First, step S601 is performed. The multifunctional data storage device 200 is connected to a multifunctional memory card holder (not shown) of a digital camera, obtains power from the digital camera, and initializes the system. Then step S602 is executed to prepare to receive a command from the digital camera.
在步骤 S603,主控制器单元 210等待来自多功能数据存储设备 200的 USBDP 接口单元 230的数据, 并判断是否有 USB命令。 如果, 此时主控制器单元 210 从多功能数据存储设备的 USBDP接口单元 230得不到有效的 USB命令,即判断 结果为否。 然后主控制器单元 210将会在步骤 S604从多功能数据存储设备 200 的 MMC接口单元 240等待数据并判断是否有 MMC命令。 如果判断结果为否, 则跳回步骤 S602, 进入准备接收命令的状态; 如果在步骤 S604的判断结果是肯 定的, 即如果是 MMC命令, 则执行步骤 S615, 由数码相机通过 MMC复位、 MMC卡识别、并进入数据传输模式状态,与多功能数据存储设备 200通过 MMC 接口单元 240建立 MMC数据通道, 多功能数据存储设备 200通过 MMC控制单 元 212进行通信和控制。 In step S603, the main controller unit 210 waits for data from the USBDP interface unit 230 of the multi-function data storage device 200, and determines whether there is a USB command. If, at this time, the main controller unit 210 cannot obtain a valid USB command from the USBDP interface unit 230 of the multifunctional data storage device, that is, the judgment result is no. Then, the main controller unit 210 will wait for data from the MMC interface unit 240 of the multifunctional data storage device 200 and determine whether there is an MMC command in step S604. If the judgment result is no, then jump back to step S602 to enter a state ready to receive a command; if the judgment result in step S604 is affirmative, that is, if it is an MMC command, execute step S615 to reset the digital camera through the MMC and the MMC card. Identify and enter the data transmission mode state, establish an MMC data channel with the multifunctional data storage device 200 through the MMC interface unit 240, and communicate and control the multifunctional data storage device 200 through the MMC control unit 212.
随后, 在步骤 S616, 主控制器单元 210从 MMC数据通道接收来自数码相
机的操作请求, 并对其进行解析, 判断是否要进行读写操作, 如果不是则执行步 骤 S617, 进行其他的 MMC操作; 如果在步骤 S616的判断是肯定的, 则执行步 骤 S608,在由数码相机通过 MMC接口单元 240对 MMC控制器 212中的寄存器 进行操作, 有效数据 (如图片数据) 将通过数据缓冲器 214进行缓存, 然后, 通 过记忆存储控制器 213的驱动, 按照 MMC控制器 212中的寄存器命令要求将有 效数据写入到记忆存储单元 220中。 Subsequently, in step S616, the main controller unit 210 receives the digital video from the MMC data channel. And analyze the operation request of the machine to determine whether read and write operations are to be performed. If not, perform step S617 and perform other MMC operations. If the determination in step S616 is affirmative, perform step S608. The camera operates the registers in the MMC controller 212 through the MMC interface unit 240. Effective data (such as picture data) will be buffered through the data buffer 214, and then driven by the memory storage controller 213, according to the MMC controller 212 The register command requires writing valid data into the memory storage unit 220.
接下来, 在步骤 S609, 向数码相机返回操作结果。 这样, 实现了数码相机 遵从 MMC协议通过多功能数据存储设备 200的 MMC接口单元 240对记忆存储 单元 220的读写操作。 Next, in step S609, the operation result is returned to the digital camera. In this way, the digital camera complies with the MMC protocol to read and write the memory storage unit 220 through the MMC interface unit 240 of the multifunctional data storage device 200.
待数码相机的图片数据存入到多功能数据存储设备 200后,电脑等其他外部 设备可以通过多功能数据存储设备 200对其进行访问。 After the digital camera's picture data is stored in the multifunctional data storage device 200, other external devices such as a computer can access it through the multifunctional data storage device 200.
首先实施步骤 S601, 多功能数据存储设备 200接入电脑 (台式电脑或笔记 本电脑) 的标准的 USB接口, 从 USB接口获取电源, 并进行系统初始化。 随后 -执行步骤 S602, 准备接收来自电脑的命令。 First, step S601 is implemented. The multifunctional data storage device 200 is connected to a standard USB interface of a computer (desktop computer or notebook computer), obtains power from the USB interface, and initializes the system. Subsequently-Step S602 is performed to prepare to receive a command from the computer.
在步骤 S603 , 主控制器单元 210首先等待来自多功能数据存储设备 200的 In step S603, the main controller unit 210 first waits for the
USBDP接口单元 230的数据并判断是否有 USB命令。因为此时主控制器单元 210 从多功能数据存储设备的 USBDP接口单元 230可以得到有效的 USB命令,即步 骤 S603的判断是肯定的。 然后在步骤 S605, 由电脑通过 USB复位、 设备枚举、 遵从海量存储类以及传输命令, 与多功能数据存储设备 200通过 USBDP接口单 元 230建立 USB数据通道 (即 Bulk only通道), 多功能数据存储设备 200通过 USBDP控制器 211进行通信和控制。 Data of the USBDP interface unit 230 and determine whether there is a USB command. Because at this time, the main controller unit 210 can obtain a valid USB command from the USBDP interface unit 230 of the multifunctional data storage device, that is, the judgment of step S603 is affirmative. Then in step S605, the computer establishes a USB data channel (ie, a Bulk only channel) with the multifunctional data storage device 200 through the USBDP interface unit 230 through the USB reset, device enumeration, compliance with mass storage classes, and transmission commands, and the multifunctional data storage The device 200 performs communication and control through the USBDP controller 211.
随后, 在步骤 S606, 主控制器单元 210从 USB数据通道接收来自电脑的操 作请求,并对其进行解析,判断是否要进行读写操作,如果不是则执行步骤 S607, 进行其他的 USB操作; 如果是, 则在步骤 S608 由电脑通过 USB接口单元 230 对 USB控制器 211 中的寄存器进行操作, 通过记忆存储控制器 213的驱动, 按 照 USB控制器 211中的寄存器命令要求将有效数据从记忆存储单元 220中读出, 有效数据将通过数据缓冲器 214进行缓存。然后再执行步骤 S609,通过 USB控制 器 212, 按照 USB的协议从 USBDP接口单元 230传输到电脑。 Subsequently, in step S606, the main controller unit 210 receives the operation request from the computer from the USB data channel and analyzes it to determine whether to perform read and write operations. If not, step S607 is performed to perform other USB operations. If yes, the computer operates the registers in the USB controller 211 through the USB interface unit 230 in step S608, and drives the effective data from the memory storage unit according to the register command in the USB controller 211 through the drive of the memory storage controller 213. Read in 220, and the valid data will be buffered through the data buffer 214. Then step S609 is performed, and the USB controller 212 is used to transmit the data from the USBDP interface unit 230 to the computer according to the USB protocol.
也就是说, 通过多功能数据存储设备 200, 釆用 MMC接口的数码相机所拍 的图片数据在不釆用读卡器的情况下可以直接被电脑进行存取访问。
前述实施方式中, 通过主控制器单元 210对 USBDP接口单元 230和 MMC 接口单元 240的通信进行査询来确定使用多功能数据存储设备 200的外部设备的 接口类型, 从而建立相应的数据通道。 也可以通过其他方法来实现对接口单元的 选择, 如可以通过中断的方式来确定多功能数据存储设备工作于何种接口模式, 即外部设备通过 USBDP接口单元或 MMC接口单元向主控制器单元 210发送中 断请求, 用于建立相应的数据通道。 In other words, through the multifunctional data storage device 200, picture data taken by a digital camera using an MMC interface can be directly accessed by a computer without using a card reader. In the foregoing embodiment, the main controller unit 210 queries the communication between the USBDP interface unit 230 and the MMC interface unit 240 to determine the interface type of the external device using the multifunctional data storage device 200, thereby establishing a corresponding data channel. The interface unit can also be selected by other methods. For example, the interface mode of the multifunctional data storage device can be determined by interrupting the mode. That is, the external device sends the USBDP interface unit or MMC interface unit to the main controller unit 210. Send an interrupt request to establish the corresponding data channel.
此外, 由于多功能数据存储设备 200的 USBDP接口单元 230支持 3.3V和 5V两种 USB接口, 因此电脑可以通过 5V的 USB接口将 MP3歌曲下载到多功 能数据存储设备 200中, 随后多功能数据存储设备 200接入 MP3播放器的多功 能存储卡座(未示出)中, 通过 USBDP接口单元 230进行 3.3V供电并进行数据 交换, 实行 MP3播放器播放多功能数据存储设备 200中的 MP3歌曲。 手机也可 以通过多功能数据存储设备 200的 USBDP接口单元 230的 3.3V供电接口方式, 将大容量数据存入到多功能数据存储设备 200 中,再将多功能数据存储设备 200 接入电脑的标准的 USB接口, 利用 USBDP接口单元 230的 5V供电方式, 将手 机的大容量数据转移至电脑。 In addition, since the USBDP interface unit 230 of the multi-function data storage device 200 supports both 3.3V and 5V USB interfaces, the computer can download MP3 songs to the multi-function data storage device 200 through the 5V USB interface, and then the multi-function data storage The device 200 is connected to a multi-function memory card holder (not shown) of the MP3 player, performs 3.3V power supply and data exchange through the USBDP interface unit 230, and implements the MP3 player to play MP3 songs in the multi-function data storage device 200. The mobile phone can also store large-capacity data into the multifunctional data storage device 200 through the 3.3V power supply interface of the USBDP interface unit 230 of the multifunctional data storage device 200, and then connect the multifunctional data storage device 200 to a computer. The USB interface uses the 5V power supply method of the USBDP interface unit 230 to transfer the large-capacity data of the mobile phone to the computer.
当然, 本发明第一实施例的移动存储装置还可以有一些变化, 如根据实际需 要, 主控制器单元连接的接口单元的数目并不限于两个, 第二接口单元也不一定 局限于 MMC接口单元, 可以采用任何合适的接口方式。 【第二实施例】 Of course, the mobile storage device of the first embodiment of the present invention may also have some changes. For example, according to actual requirements, the number of interface units connected to the main controller unit is not limited to two, and the second interface unit is not necessarily limited to the MMC interface. The unit can use any suitable interface method. [Second embodiment]
本发明第二实施例的多功能数据存储设备一方面用于实现终端电子设备或 计算机等数据处理系统的外存储功能, 另一方面可以实现不同外部设备(特别是 嵌入式设备)之间的无线互联, 使得数据处理系统之间可以灵活方便的进行数据 交互和共享。 The multifunctional data storage device according to the second embodiment of the present invention is used to implement an external storage function of a data processing system such as a terminal electronic device or a computer. On the other hand, it can implement wireless communication between different external devices (especially embedded devices). Interconnection enables flexible and convenient data exchange and sharing between data processing systems.
图 7是本发明第二实施例的多功能数据存储设备的原理框图。该多功能数据 存储设备包括主控制器单元 710、接口单元 720、记忆存储单元 730、无线收发单 元 740和电源管理单元 750。 FIG. 7 is a principle block diagram of a multifunctional data storage device according to a second embodiment of the present invention. The multifunctional data storage device includes a main controller unit 710, an interface unit 720, a memory storage unit 730, a wireless transceiver unit 740, and a power management unit 750.
主控制器单元 710 分别以不同的接口形式与接口单元 720、 记忆存储单元 730、无线收发单元 740、 电源管理单元 750相连, 支持数据信息的流动并协调各 单元的工作; 上述接口单元 720用于建立多功能数据存储设备与终端电子设备等
外部设备的连接; 上述记忆存储单元 730用于存储数据; 上述无线收发单元 740 用于建立多功能数据存储设备与终端电子设备等外部设备的无线连接; 上述电源 管理单元 750用于为多功能数据存储设备提供工作电源。 The main controller unit 710 is connected to the interface unit 720, the memory storage unit 730, the wireless transceiver unit 740, and the power management unit 750 in different interface forms, respectively, to support the flow of data information and coordinate the work of each unit; the above-mentioned interface unit 720 is used for Establish multi-functional data storage equipment and terminal electronic equipment, etc. Connection of external devices; the memory storage unit 730 is used to store data; the wireless transceiver unit 740 is used to establish a wireless connection between the multifunctional data storage device and an external device such as a terminal electronic device; the power management unit 750 is used for multifunctional data The storage device provides working power.
主控制器单元 710 是本发明第二实施例的多功能数据存储设备的控制中心 模块。 作为多功能存储卡的控制核心, 上述主控制器单元 710包括记忆存储控制 器 713、 接口控制器 711、 微处理器 715和数据加 /解密器 716。 该主控制器单元 710是单一的物理实体。 The main controller unit 710 is a control center module of a multifunctional data storage device according to the second embodiment of the present invention. As the control core of the multi-function memory card, the main controller unit 710 includes a memory storage controller 713, an interface controller 711, a microprocessor 715, and a data encryption / decryption device 716. The main controller unit 710 is a single physical entity.
其中, 接口控制器 711用于对接口单元 720进行协调通信。记忆体存储控制 器 713用于统一完成对记忆存储单元 730进行的数据读写和管理。数据加 /解密器 716用于对传输数据进行加 /解密, 可根据不同的模式进行可选择的加 /解密数据, 对于处在无线收发工作方式时还提供用户认证管理等功能。微处理器 715完成整 体控制和协调工作, 负责不同接口的协议解析, 加 /解密的运算等。 The interface controller 711 is configured to coordinate and communicate with the interface unit 720. The memory storage controller 713 is configured to uniformly complete reading, writing, and managing data on the memory storage unit 730. The data encryption / decryption device 716 is used for encrypting / decrypting the transmission data, and can select the encryption / decryption data according to different modes. It also provides functions such as user authentication management when it is in the wireless transmitting and receiving working mode. The microprocessor 715 completes the overall control and coordination work, and is responsible for protocol analysis of different interfaces, encryption / decryption operations, and so on.
接口单元 720指有线或接触接口,其接口类型包括但不限于 SM、 MMC/SD、 CF、 MS、 USB、 MD及 x-D等接口。 接口单元 720中既可以是单个接口、 也可 以是多个相同接口和 /或多个不同类型接口的组合,各个接口通过各自所基于的接 口协议与不同的终端电子设备连接。接口单元 720是存储数据接口和无线数据传 输接口的复用接口模块。 The interface unit 720 refers to a wired or contact interface, and its interface types include, but are not limited to, SM, MMC / SD, CF, MS, USB, MD, and x-D interfaces. The interface unit 720 may be a single interface or a combination of multiple same interfaces and / or multiple different types of interfaces, and each interface is connected to a different terminal electronic device through its own interface protocol. The interface unit 720 is a multiplexing interface module that stores a data interface and a wireless data transmission interface.
记忆存储单元 730的主要功能在于存储数据文件和各种信息,采用半导体存 储介质,包括但不限于快闪存储器、 MRAM、 DRAM、 SDRAM、 EEPROM、 SRAM、 EPROM等类型。 The main function of the memory storage unit 730 is to store data files and various information. Semiconductor storage media are used, including but not limited to flash memory, MRAM, DRAM, SDRAM, EEPROM, SRAM, EPROM and other types.
无线收发单元 740主要完成无线数据的收发工作,包括无外置天线的无线通 信类型, 如 Buletooth (蓝牙)、 RFID (射频识别) 等。 The wireless transceiver unit 740 mainly completes the transmission and reception of wireless data, including wireless communication types without external antennas, such as Buletooth (Bluetooth), RFID (Radio Frequency Identification), and so on.
电源管理单元 750可以从外部电源和 /或自带电源汲取电力, 主要通过接口 单元 720从外部获取电源, 提供不同的输出电压以给本发明的多功能数据存储设 备提供工作电源, 对于无线收发单元 740的供电采用单独分级控制管理。 为了简 化图中线条, 图 7中省略了电源管理单元 750与其他单元之间的连线。 The power management unit 750 can draw power from an external power source and / or a built-in power source, and mainly obtains power from the outside through the interface unit 720, and provides different output voltages to provide working power to the multifunctional data storage device of the present invention. The power supply of the 740 is managed separately. In order to simplify the lines in the figure, the connections between the power management unit 750 and other units are omitted in FIG. 7.
为了便于对本发明的理解, 下面结合更详细的实施例进行说明。 In order to facilitate the understanding of the present invention, a more detailed embodiment will be described below.
图 8是本发明第二实施例的一个详细结构框图。 在图 8 中, 接口单元釆用 MMC接口 720,, 接口控制器采用 MMC控制器 711', 无线收发单元采用蓝牙收 发单元 740'。
67 本实施例的多功能数据存储设备可以通过 MMC 接口实现终端电子设备等 外部设备的数据存储功。 通过数据加 /解密单元 716实现数据的安全机制. FIG. 8 is a detailed structural block diagram of the second embodiment of the present invention. In FIG. 8, the MMC interface 720 is used as the interface unit, the MMC controller 711 'is used as the interface controller, and the Bluetooth transceiver unit 740' is used as the wireless transceiver unit. 67 The multifunctional data storage device of this embodiment can implement data storage functions of an external device such as a terminal electronic device through an MMC interface. The data security mechanism is implemented by the data encryption / decryption unit 716.
此外,本实施例的多功能数据存储设备还可以通过复用 MMC接口 720'和蓝 牙收发单元 740'来实现蓝牙设备之间的互联,也可使得外部设备可通过无线蓝牙 扩充存储容量, 即一台外部设备除了可以对本机的外置的多功能数据存储设备进 行存储操作, 也可以通过无线传输同另一台外部设备的外置多功能数据存储设备 进行读写操作。例如两台带有多功能数据存储设备的 MP3, 各自能播放自带多功 能数据存储设备中的歌曲, 也可通过无线播放对方多功能数据存储设备中的歌 曲。 In addition, the multifunctional data storage device of this embodiment can also realize the interconnection between Bluetooth devices by multiplexing the MMC interface 720 'and the Bluetooth transceiver unit 740', and can also enable external devices to expand the storage capacity through wireless Bluetooth, namely In addition to the external multifunction data storage device of this machine, the external device can perform the storage operation, and can also perform the reading and writing operation with the external multifunction data storage device of another external device through wireless transmission. For example, two MP3s with multi-function data storage devices can each play songs from their own multi-function data storage devices, or they can wirelessly play songs from each other's multi-function data storage devices.
图 9是本发明第二实施例的另一具体结构框图。 FIG. 9 is another specific structural block diagram of the second embodiment of the present invention.
本例中, 接口单元 720"釆用并存的 MMC 接口 720B 和低厚度的双电压 USBDP (Universal Serial Bus Double Power) 接口 720 A, 其中, MMC接口 721 遵从 MMC4.0规范; USBDP接口 720B符合 USB接口电气特性, 其物理尺寸上 与 USB接口有所区别, 去掉了通用 USB接口采用的金属环行结构接头, 其电路 板本身就直接设计有低厚度 USB 接口, 从而降低多功能数据存储设备接口的厚 度, 但不影响多功能数据存储设备与采用标准 USB接口的外部设备的数据交换。 In this example, the interface unit 720 "uses a coexisting MMC interface 720B and a low-thickness dual-voltage USBDP (Universal Serial Bus Double Power) interface 720 A, of which the MMC interface 721 complies with the MMC4.0 specification; the USBDP interface 720B complies with the USB interface Electrical characteristics, its physical size is different from that of the USB interface, the metal ring structure connector used by the universal USB interface is removed, and the circuit board itself is directly designed with a low-thickness USB interface, thereby reducing the thickness of the multifunctional data storage device interface. However, it does not affect the data exchange between the multifunctional data storage device and the external device using the standard USB interface.
带有 MMC、USB相应接口的外部设备,可以通过 MMC接口 720A或 USBDP 接口 720B对本实施例多功能数据存储设备进行访问。 External devices with corresponding interfaces of MMC and USB can access the multifunctional data storage device of this embodiment through MMC interface 720A or USBDP interface 720B.
与此相应, 接口控制器 711 "包括 MMC接口控制器 711A和 USB接口控制 器 711B, 分别对 MMC接口信号、 USB接口信号进行处理, 完成信号的转换如 串 /并、 并 /串, 编解码等。 Corresponding to this, the interface controller 711 "includes MMC interface controller 711A and USB interface controller 711B, which respectively process MMC interface signals and USB interface signals, and complete signal conversions such as serial / parallel, parallel / serial, encoding and decoding, etc. .
微处理器 713进行协议解析。 The microprocessor 713 performs protocol analysis.
在存储数据时可进行加 /解密设定,并通过数据加 /解密器 716对数据进行加 / 解密操作。 Encryption / decryption settings can be made when data is stored, and the data encryption / decryption device 716 can be used to perform encryption / decryption operations.
此外, 图 10示出了图 9所示多功能数据存储设备的电路原理图。 In addition, FIG. 10 shows a circuit schematic diagram of the multifunctional data storage device shown in FIG. 9.
图 10所示的实现本发明多功能数据存储设备所涉及的主要元器件可以来自 以下厂商: 主控制单元 710可参考 OTI、 SANDISK ST公司的产品资料; 记忆 存储单元 730可参考 SAMSUNG、 TOSHIBA ^ ST等公司的产品资料; 无线收发 单元 740可参考爱立信、 美国国家半导体公司等公司的产品资料; 电源管理单元 750 是一个器件组合, 主要包括电压调节器和可控电压输出电路, 可参考 TI、
T/CN2005/000167 The main components involved in implementing the multifunctional data storage device of the present invention shown in FIG. 10 can come from the following manufacturers: The main control unit 710 can refer to the product information of OTI and SANDISK ST; the memory storage unit 730 can refer to SAMSUNG and TOSHIBA ^ ST Product information of other companies; Wireless transceiver unit 740 can refer to product information of companies such as Ericsson and National Semiconductor; Power management unit 750 is a device combination that mainly includes voltage regulators and controllable voltage output circuits. Refer to TI, T / CN2005 / 000167
LINEAR等公司的产品资料。 Product information from LINEAR and other companies.
此外,第二实施例的多功能数据存储设备还可以包括第一实施例的数据缓冲 器, 用于对存储或者接收的数据进行缓存, 供下一步的处理。 In addition, the multifunctional data storage device of the second embodiment may further include the data buffer of the first embodiment, which is used to buffer the stored or received data for further processing.
此外,本发明可选择不同的工作模式进行相关的工作,如数据存储模式或数 据无线传输模式。 In addition, the present invention can select different working modes for related work, such as data storage mode or data wireless transmission mode.
请参阅图 11一 13, 针对本发明处在不同的工作模式下的数掘操作, 以第二 实施例为例进行数据流程说明。 Please refer to Figs. 11-13. For the data mining operation in different working modes of the present invention, the second embodiment is taken as an example to describe the data flow.
图 11 为本发明第二实施例的多功能数据存储设备工作于数据存储模式的流 程图。 FIG. 11 is a flowchart of a multifunctional data storage device working in a data storage mode according to a second embodiment of the present invention.
首先, 在步骤 S1101 , 多功能数据存储设备插入主设备。 如果主设备使用的 是 USB接口(如主设备为计算机), 多功能数据存储设备从 USBDP接口 720B获 取电源; 如果主设备采用 MMC 接口 (如主设备为数码相机), 则多功能数据存 储设备从 MMC接口 720A获取电源。 First, in step S1101, the multifunctional data storage device is inserted into the main device. If the main device uses a USB interface (if the main device is a computer), the multifunctional data storage device obtains power from the USBDP interface 720B; if the main device uses an MMC interface (if the main device is a digital camera), the multifunctional data storage device MMC interface 720A obtains power.
在步骤 S1102, 多功能数据存储设备获取电源后进行系统初始化, 随后在步 骤 S1103准备接收来自主设备的命令。 In step S1102, the multi-function data storage device initializes the system after obtaining power, and then in step S1103, it is ready to receive a command from the master device.
在步骤 S1104, 多功能数据存储设备的 USB接口控制器 711B首先判断是否 有来自 USBDP接口 720B的 USB通信命令。 In step S1104, the USB interface controller 711B of the multifunctional data storage device first determines whether there is a USB communication command from the USBDP interface 720B.
如果步骤 S1104的判断是肯定的, 则执行步骤 S1106, 主控制器单元 710进 入 USB存储控制状态, 主设备会通过 USB复位、 设备枚举、 遵从海量存储类以 及传输命令, 与多功能数据存储设备通过 USB接口控制器 711B建立 USB数据 通道 (即 Bulk only通道) 。在此通道的基础上, 主设备可通过 SCSI命令对多功能 数据存储设备进行数据存储操作。 If the determination of step S1104 is affirmative, then step S1106 is executed, the main controller unit 710 enters the USB storage control state, and the main device will reset, USB device enumeration, follow the mass storage class and transmission command through the USB, and the multifunctional data storage device USB data channel (ie Bulk only channel) is established through the USB interface controller 711B. Based on this channel, the master device can perform data storage operations on the multifunctional data storage device through SCSI commands.
在步骤 S1107, 判断是进行数据传输还是进行无线传输。 如果为否, 则在步 骤 S1108, 流程转入无线传输过程。 否则, 在步骤 S1109, 判断是否进行读写操 作, 如果为否, 则在步骤 S1110执行其他 USB操作, 然后返回到步骤 S1109。 In step S1107, it is determined whether data transmission or wireless transmission is performed. If not, then in step S1108, the flow shifts to the wireless transmission process. Otherwise, in step S1109, it is determined whether to perform read and write operations. If not, then other USB operations are performed in step S1110, and then the process returns to step S1109.
如果在步骤 S1109的判断是肯定的,则在步骤 S1111判断是进行写操作还是 进行读操作。 如果是进行写操作, 则在步骤 S1112, 对待写入的数据进行加密, 然后在步骤 S1117迸行缓冲, 然后在步骤 S1118, 将加密的数据写入记忆存储单 元。 可以看出, 上述的加密步骤是可选的, 也就是说, 可以不进行加密而将数据 直接存储在记忆存储单元。
如果在步骤 Sllll的判断结果是否定的,即要进行读操作,则在步骤 SU 13, 对记忆存储单元进行读取操作, 然后在步骤 S1114缓冲读取的数据, 如果数据是 己经加密的, 则在步骤 S1115对数据进行机密。 在步骤 S1116, 主设备对数据进 行相应的处理, 例如播放或者显示。 If the determination in step S1109 is affirmative, then it is determined in step S1111 whether a write operation or a read operation is performed. If a write operation is performed, the data to be written is encrypted in step S1112, and then buffered in step S1117, and then the encrypted data is written in the memory storage unit in step S1118. It can be seen that the foregoing encryption step is optional, that is, the data can be directly stored in the memory storage unit without being encrypted. If the judgment result in step S111 is negative, that is, a read operation is to be performed, then in step SU 13, a read operation is performed on the memory storage unit, and then the read data is buffered in step S1114. If the data is encrypted, The data is confidential in step S1115. In step S1116, the main device performs corresponding processing on the data, such as playing or displaying.
当多功能数据存储设备通过 USBDP接口 720B, 没有检测到 USB主设备, 则在步骤 S1105 多功能数据存储设备会通过 MMC接口 720A继续检测是否有 MMC主设备, 如果没有则返回接受命令状态。 When the multi-function data storage device passes the USBDP interface 720B and no USB host device is detected, the multi-function data storage device continues to detect whether there is an MMC host device through the MMC interface 720A in step S1105, and if not, it returns to the command acceptance state.
当多功能数据存储设备 MMC接口控制器 711A通过 MMC接口 720A检测 到主设备发来的命令, 则在步骤 S1126根据主设备的命令进行响应并建立 MMC 数据通道, 多功能数据存储设备进入 MMC接口数据传输状态。 When the multi-function data storage device MMC interface controller 711A detects the command sent by the main device through the MMC interface 720A, it responds and establishes the MMC data channel according to the command of the main device in step S1126, and the multi-function data storage device enters the MMC interface data Transmission status.
同样, 在步骤 S1127, 判断是进行数据传输还是进行无线传输。 如果为否, 则在步骤 S1128, 流程转入无线传输过程。 否则, 在步骤 S1129, 判断是否进行 读写操作, 如果为否, 则在步骤 S1130 执行其他 MMC 操作, 然后返回到步骤 S1129。 Similarly, in step S1127, it is determined whether data transmission or wireless transmission is performed. If not, then in step S1128, the flow proceeds to a wireless transmission process. Otherwise, in step S1129, it is judged whether to perform read and write operations. If not, then perform other MMC operations in step S1130, and then return to step S1129.
如果在步骤 S1129的判断是肯定的,则在步骤 S1131判断是进行写操作还是 进行读操作。 如果是进行写操作, 则在步骤 S1132, 对待写入的数据进行加密, 然后在步骤 S1137进行缓冲, 然后在步骤 S1118, 将加密的数据写入记忆存储单 元。 可以看出, 上述的加密步骤是可选的, 也就是说, 可以不进行加密而将数据 直接存储在记忆存储单元。 If the judgment in step S1129 is affirmative, it is judged in step S1131 whether a write operation or a read operation is performed. If a write operation is performed, the data to be written is encrypted in step S1132, and then buffered in step S1137, and then the encrypted data is written into the memory storage unit in step S1118. It can be seen that the foregoing encryption step is optional, that is, data can be directly stored in the memory storage unit without encryption.
如果在步骤 S1131的判断结果是否定的,即要进行读操作,则在歩骤 S1133, 对记忆存储单元进行读取操作, 然后在步骤 S1134缓冲读取的数据, 如果数据是 已经加密的, 则在步骤 S1135对数据进行机密。 在步骤 S1116, 主设备对数据进 行相应的处理, 例如播放或者显示。 If the judgment result in step S1131 is negative, that is, a read operation is to be performed, then in step S1133, a read operation is performed on the memory storage unit, and then the read data is buffered in step S1134. If the data is encrypted, then The data is confidential in step S1135. In step S1116, the main device performs corresponding processing on the data, such as playing or displaying.
多功能数据存储设备通过主设备命令来选择是进行数据存储模式还是进入 接口无线数据传输模式。 如果是数据存储模式, 则多功能数据存储设备通过建立 的接口通道, 进行数据是否加 /解密的判断, 如果有加 /解密的需求, 数据存储时, 还需经过加 /解密通道, 通过加 /解密单元 14 实现数据的加 /解过程, 数据通过缓 冲器进入到记忆存储单元 730。 The multifunctional data storage device selects the data storage mode or enters the interface wireless data transmission mode through the command of the main device. If it is a data storage mode, the multifunctional data storage device judges whether the data is encrypted / decrypted through the established interface channel. If there is a need for encryption / decryption, the data needs to go through the encryption / decryption channel through the encryption / decryption channel. The decryption unit 14 implements the data addition / decryption process, and the data enters the memory storage unit 730 through the buffer.
图 12为本发明多功能数据存储设备工作于数据无线传输模式的传输过程的 流程图。
7 首先, 在步骤 S 1201 , 多功能数据存储设备插入主设备, 并从主设备获取电 源在步骤 S1202进行系统初始化。 , FIG. 12 is a flowchart of a transmission process in which the multifunctional data storage device of the present invention operates in a wireless data transmission mode. 7 First, in step S1201, the multifunctional data storage device is inserted into the main device, and power is obtained from the main device, and the system is initialized in step S1202. ,
随后, 在步骤 S 1203 , 主设备发送命令给多功能数据存储设备, 并确定和建 立接口通道。 Subsequently, in step S1203, the master device sends a command to the multifunctional data storage device, and determines and establishes an interface channel.
随后, 在步骤 S1204, 多功能数据存储设备根据主设备的命令, 确定多功能 数据存储设备的工作模式, 判断是否无线数据的传输, 如果不是则在步骤 S 1205 进入数据存储模式, 即进行如上所述的数据读写操作。 Subsequently, in step S1204, the multifunctional data storage device determines the working mode of the multifunctional data storage device according to the command of the master device, and determines whether wireless data transmission is performed. If not, in step S1205, the data storage mode is entered, that is, as described above. Data read and write operations described above.
多功能数据存储设备判断并确定是数据的无线传输模式后, 在步骤 S1206 微处理器 13控制电源管理单元 750启动对蓝牙收发单元 740'的供电, 并在步骤 S1207对蓝牙收发单元 740'进行初始化工作。 After the multifunctional data storage device determines and determines that the data is a wireless transmission mode, the microprocessor 13 controls the power management unit 750 to start power supply to the Bluetooth transceiver unit 740 'in step S1206, and initializes the Bluetooth transceiver unit 740' in step S1207. jobs.
此后, 在步骤 S 1208数据加 /解密器 714首先对蓝牙无线连接进行设备认证 工作, 通过认证, 设备之间才可进行数据的有效的传输。 考虑数据的安全性, 在 步骤 S 1209判断是否要进行加密和解密, 如果是, 在步骤 S 1210按照指定的加 / 解密协议进行数据的加 /解密, 然后在步骤 S1211进行数据无线安全传输。 否则, 主设备通过多功能数据存储设备直接开始进行数据的蓝牙无线传输。 Thereafter, in step S 1208, the data encryption / decryption device 714 first performs device authentication for the Bluetooth wireless connection. After the authentication, the data can be effectively transmitted between the devices. Considering the security of the data, it is determined whether to perform encryption and decryption in step S1209. If so, the data is encrypted / decrypted according to the specified encryption / decryption protocol in step S1210, and then the data is wirelessly and securely transmitted in step S1211. Otherwise, the master device directly starts Bluetooth wireless transmission of data through the multifunctional data storage device.
图 13为本发明多功能数据存储设备工作于数据无线传输模式的接收过程的 流程图。 FIG. 13 is a flowchart of a receiving process in which the multifunctional data storage device of the present invention operates in a wireless data transmission mode.
首先, 在步骤 S1301 , 多功能数据存储设备插入主设备, 并从主设备获取电 源在步骤 S1302进行系统初始化。 First, in step S1301, the multifunctional data storage device is inserted into the main device, and the power is obtained from the main device, and the system is initialized in step S1302.
随后, 在步骤 S 1303 , 主设备发送命令给多功能数据存储设备, 并确定和建 立接口通道。 Subsequently, in step S1303, the master device sends a command to the multifunctional data storage device, and determines and establishes an interface channel.
随后, 在歩骤 S 1.304, 微处理器 13控制电源管理单元 750启动对蓝牙收发 单元 740,的供电, 并在步骤 S 1305对蓝牙收发单元 740'进行初始化工作。 Subsequently, in step S 1.304, the microprocessor 13 controls the power management unit 750 to start power supply to the Bluetooth transceiver unit 740 ′, and initializes the Bluetooth transceiver unit 740 ′ in step S 1305.
此后, 在步骤 S1306数据加 /解密器 714首先对蓝牙无线连接进行设备认证 工作, 通过认证, 设备之间才可进行数据的有效的传输。 通过认证之后, 在步骤 S1307, 执行数据接收。 考虑数据的安全性, 在步骤 S1308判断是否要对接收的 数据进行加密和解密, 如果是, 在步骤 S1309 按照指定的加 /解密协议进行数据 的加 /解密, 然后在步骤 S 1310 存储或者显示数据。 否则, 主设备通过多功能数 据存储设备直接存储或者应用数据。 Thereafter, in step S1306, the data encryption / decryption device 714 first performs device authentication for the Bluetooth wireless connection. After the authentication, data can be effectively transmitted between the devices. After passing the authentication, in step S1307, data reception is performed. Considering the security of the data, it is determined in step S1308 whether the received data is to be encrypted and decrypted. If so, the data is encrypted / decrypted according to the specified encryption / decryption protocol in step S1309, and then the data is stored or displayed in step S1310. . Otherwise, the master device directly stores or applies the data through the multifunctional data storage device.
综上所述,通过本发明多功能数据存储设备可实现对多个遵从不同存储接口
的终端设备的数据的自由的存储共享、 蓝牙无线互联。 In summary, the multifunctional data storage device of the present invention can realize multiple compliance with different storage interfaces. Free storage and sharing of data for terminal devices, Bluetooth wireless interconnection.
可以理解, 本发明提供了一种多功能数据存储设备,在电子设备领域可以实 现: It can be understood that the present invention provides a multifunctional data storage device, which can be implemented in the field of electronic equipment:
数码相机等嵌入式设备以 MMC接口为代表, 计算机以 USB接口为代表, 共享记忆存储单元, 实现不同接口的数字终端设备在遵从各自不同协议的情况 下, 不需其他转换装置, 并通用数据存储, 灵活方便实现数据交互和共享功能。 Embedded devices such as digital cameras are represented by MMC interfaces, computers are represented by USB interfaces, and shared memory storage units. Digital terminal devices that implement different interfaces do not need other conversion devices and comply with general data storage when they comply with different protocols. It is flexible and convenient to implement data interaction and sharing functions.
采用双电源的 USBDP接口技术(标准 USB接口电源是 +5V, 另一路电源为 低电压电源), 使得计算机、低电压接口的嵌入式设备 (如 USB接口存储功能的手 机、 MP3等终端设备), 在遵从同种协议 (即 USB协议)的情况下, 通过多功能数 据存储设备实现灵活方便的数据交互和共享功能。 Adopt dual-power USBDP interface technology (standard USB interface power is + 5V, the other power is low voltage power), so that the computer, embedded devices with low voltage interface (such as mobile phones with USB interface storage function, MP3 and other terminal devices), In the case of complying with the same protocol (ie, the USB protocol), a flexible and convenient data interaction and sharing function is implemented through a multifunctional data storage device.
利用设备传输接口 (MMC、 USB) 既可做为存储数据接口, 又可作为无线 数据传输接口的可复用特点, 多功能数据存储设备也可以作为诸如蓝牙等无线通 讯的载体, 使主设备之间方便的形成无线存储网络。 The device transmission interface (MMC, USB) can be used as both a storage data interface and a reusable feature of a wireless data transmission interface. A multi-function data storage device can also be used as a carrier for wireless communications such as Bluetooth. It is convenient to form a wireless storage network.
釆用分级电源管理,设备可自由的控制无线收发单元的电源,在不需蓝牙数 据传输时关断蓝牙收发单元的电源, 特别是能提高以电池供电的嵌入式设备的电 源使用率, 同时也避免了在进行数据存储时会有蓝牙收发单元的无线干扰。 分级 Using hierarchical power management, the device can freely control the power of the wireless transceiver unit, and turn off the power of the Bluetooth transceiver unit when Bluetooth data transmission is not needed, especially to improve the power usage of battery-powered embedded devices. The wireless interference of the Bluetooth transceiver unit during data storage is avoided.
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技 术人员来说, 在不脱离本发明原理的前提下, 还可以作出若干改进和润饰, 这些 改进和润饰也应视为本发明的保护范围。
The above is only a preferred embodiment of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the principles of the present invention, several improvements and retouches can be made. These improvements and retouches should also be made. It is regarded as the protection scope of the present invention.