WO2008034284A1 - Peripheral device extended by using general external memory card and data processing method thereof - Google Patents

Peripheral device extended by using general external memory card and data processing method thereof Download PDF

Info

Publication number
WO2008034284A1
WO2008034284A1 PCT/CN2006/002411 CN2006002411W WO2008034284A1 WO 2008034284 A1 WO2008034284 A1 WO 2008034284A1 CN 2006002411 W CN2006002411 W CN 2006002411W WO 2008034284 A1 WO2008034284 A1 WO 2008034284A1
Authority
WO
WIPO (PCT)
Prior art keywords
memory card
peripheral device
external memory
data
general
Prior art date
Application number
PCT/CN2006/002411
Other languages
French (fr)
Chinese (zh)
Inventor
Shengke Xu
Peng Zhang
Xuhao Zhang
Kaian Li
Original Assignee
Neobeyondvision Inc.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Neobeyondvision Inc. filed Critical Neobeyondvision Inc.
Publication of WO2008034284A1 publication Critical patent/WO2008034284A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices

Definitions

  • Peripheral device extended by universal external memory card and data processing method thereof
  • the present invention relates to a computer technology, and more particularly to a peripheral device for external device function expansion using an external memory card and a data processing method thereof. Background technique
  • a standard external interface device in particular, a popular wireless TV or RFID.
  • the functionality of (Radio Frequency Identification) is extended, and the use of these new types of devices provides a convenient and fast access path.
  • the technical solution adopted by the present invention is to provide a peripheral device extended by a universal external memory card, comprising: a memory card bus controller and a flash memory, wherein: the program further includes: a programmable logic control, a function Modules and custom interface buses, where
  • the memory card bus controller is connected to a host having a memory card interface
  • the flash memory is connected to a memory card bus controller
  • the programmable logic control is respectively connected to the memory card bus controller and the flash memory, and Connected to the functional module via the custom interface bus;
  • the memory card bus controller, the flash memory, and the programmable logic control constitute an external extension base, and the function module is connected to the external extension base;
  • the memory card bus controller is a USB controller, an SD memory card controller, an MMC controller;
  • the host machine is a mobile phone, a personal digital assistant, a single chip microcomputer or a notebook computer;
  • the function module is a fingerprint collector, a wireless television receiver or a radio frequency identification card reader;
  • the custom interface bus is a static memory storage bus structure.
  • a data processing method for a peripheral device extended by a general-purpose external memory card is also provided, which is applied to the peripheral device of the universal external memory card expansion, wherein the steps included are:
  • Step a General-purpose external memory card expansion system program initialization on the peripheral device
  • Step b Perform a write operation to the general external memory card expansion peripheral device
  • Step c The peripheral device of the general external memory card expansion is in a state of waiting for an operation command, and the driver on the host having the memory card interface issues an operation instruction;
  • Step d The programmable logic device determines the bus operation type. If it is a write operation type, perform the following steps e; if it is a read operation type, perform the following steps f;
  • Step e The programmable logic device implements driving of the custom data bus, drives the data signal on the flash memory bus to the custom bus, executes the general external memory card to extend the write operation of the peripheral device, and returns to the above step c after the operation is completed. ;
  • Step f The programmable logic device implements driving of the flash memory bus, drives the data signal on the custom data bus to the flash memory bus, executes a general external memory card to expand the read operation of the peripheral device, and returns to the above step c after the operation is completed. ;
  • the universal external memory card extends the write operation of the peripheral device, and the steps included are:
  • Step el Start the general external memory card to expand the peripheral device write operation
  • Step e2 Dynamic address mapping by the memory card bus controller
  • Step e3 The programmable logic device determines whether the feature data is included, if the following step e4 is performed, if the following step e5 is not included;
  • Step e4 The programmable logic device records the current physical address, and writes the data following the feature data into the function 1 module;
  • Step e5 writing data to the flash memory
  • Step e6 The write operation of the general external memory card expansion peripheral device ends
  • the feature data refers to byte data used to mark the operation of the function module; thereafter, the control word to be written into the function module or the data to be transmitted; if the byte data does not contain the feature data, Write to the file for the file system, directly respond to the write operation by the flash memory;
  • the current physical address recorded by the programmable logic device also dynamically changes with the mapping relationship, so that the accessed logical space corresponds to the functional module;
  • the general external memory card expands the read operation of the peripheral device, and the steps included are: step fl: starting a read operation of the universal external memory card expansion peripheral device;
  • Step ⁇ Dynamic address mapping by the memory card bus controller
  • Step ⁇ The programmable logic device determines whether the current physical address is the same. If the following step f4 is performed consistently, if the inconsistency is performed, the following step f5 is performed;
  • Step f4 output data by the function module, perform the following step f6;
  • Step f5 outputting data from the flash memory, performing the following step f6;
  • Step f6 The read operation of the universal external memory card expansion peripheral device ends;
  • the programmable logic device determines whether the current physical address is the same, which means comparing the currently accessed physical address, whether the address recorded in step e4 is the same;
  • the dynamic address mapping is performed by the memory card bus controller, i.e., the logical address of the data block in the operating system on the host having the memory card interface and the physical address in the flash memory have a dynamic mapping relationship.
  • FIG. 1 is a schematic structural diagram of a peripheral device extended by a general-purpose external memory card according to the present invention
  • FIG. 2 is a schematic structural view of a preferred embodiment of a peripheral device extended by a general-purpose external memory card according to the present invention
  • FIG. 3 is a flow chart showing a data processing method of a preferred embodiment of a peripheral device extended by a general-purpose external memory card according to the present invention
  • FIG. 4 is a flow chart showing a write operation process in the data processing method of the preferred embodiment of the peripheral device extended by the general external memory card of the present invention
  • Figure 5 is a flow chart showing the read operation process in the data processing method of the preferred embodiment of the peripheral device extended by the general external memory card of the present invention.
  • FIG. 1 is a schematic structural diagram of a peripheral device extended by a general-purpose external memory card according to the present invention, which includes: a memory card bus controller 021 and a flash memory (flash memory) 022 , wherein: Programming logic control 03, function module 04, and custom interface bus 05, wherein the memory card bus controller 021 is connected to a host 01 having a memory card interface; the flash memory 022 and a memory card bus controller Connected to 021;
  • the programmable logic control 03 is respectively connected to the memory card bus controller 021 and the flash memory 022, and is connected to the function module 04 through the custom interface bus 05.
  • the memory card bus controller 021, the flash memory 022, and the programmable logic control 03 constitute an external extension base 02, and the function module 04 is connected to the external extension base 02.
  • the memory card bus controller 021 can be a USB controller, an SD card controller, an MMC controller, or the like.
  • the host machine 01 can be a processor device having a corresponding memory card insertion slot, such as a mobile phone, a personal digital assistant, a single chip microcomputer or a notebook computer.
  • the function module 04 can be a fingerprint collector, a wireless television receiver or a radio frequency identification card reader.
  • the custom interface bus 05 can be a SRAM (static memory) memory bus structure.
  • FIG. 2 is a schematic structural diagram of a preferred embodiment of a peripheral device extended by a universal external memory card according to the present invention; substantially, the present figure is a portable radio frequency identification card reader combined with a personal digital assistant of the present invention.
  • Schematic diagram of the structure here the host machine 01 is the personal digital assistant 1, the memory card bus controller 021 is the SD card controller 21, the function module 04 is the radio frequency identification card reader 4, and the custom interface bus 05 is the SRAM storage bus. 5 structure to implement a portable RFID reader for processing information on a mobile RFID tag-attached item.
  • SD memory card including a secure digital memory card
  • the SD card controller 2 and the flash memory 22 form an integrated solid medium without any moving parts, so there is no need to worry about mechanical movement damage.
  • Most of the current personal digital assistants 1 have an SD memory card slot for plugging SD.
  • the SD card controller 21 performs mutual authentication between the SD memory card and the personal digital assistant incorporating the memory card, parses the command of the SD interface, and controls the operation of the flash memory 22; it has hardware data write protection The protection switch prevents the risk of accidental deletion of stored contents.
  • the programmable logic device 3 is connected to and control an RFID reader 4 through the SRAM storage bus 5; in the present configuration, the SD card controller 21 is used to parse the command of the SD card interface on the PDA 1, and control the operation of the flash memory 22, There are many types of operations. To extend an external device, you only need to interpret two of them. The read command word is (00, 05) and the command word is 0, 85). For other operation types, the SD card controller 21 can directly control the flash memory 22 without interference.
  • the flash memory 22 is used to store data information or other data in the radio frequency identification tag, and the other data is some files in the personal digital assistant.
  • the programmable logic device 3 parses the command issued by the SD card controller 21, and decomposes the command into the operation of the file system to the flash memory 22, or the operation of the driver on the personal digital assistant to the RFID reader 4.
  • the loading of the control signal to the flash memory 22 or the RFID reader 4 is completed to implement the command response of the two to the SD card controller 21.
  • the RFID reader 4 is a prior art product.
  • FIG. 3 is a flowchart of a data processing method of a preferred embodiment of a peripheral device extended by a general-purpose external memory card according to the present invention, which includes the following steps:
  • Step a Initializing the system program of the portable RFID reader
  • Step b performing a write operation on the portable RFID reader
  • Step c The portable radio frequency identification card reader is in a state of waiting for an operation command, and the driver system on the personal digital assistant 1 issues an operation instruction;
  • Step d The programmable logic device 3 determines the bus operation type, is a write operation type, performs step e, and if it is a read operation type, performs the following steps f;
  • Step e The programmable logic device 3 implements driving of the SRAM memory bus 5, drives the data signal on the flash memory 22 bus to the SRAM storage bus 5, performs a write operation of the portable radio frequency identification card reader, and returns to the above steps after the operation is completed.
  • Step f The programmable logic device 3 implements driving of the flash memory 22 bus, drives the data signal on the SRAM memory bus 5 to the flash memory 22 bus, and performs a portable radio frequency identification card reading. Read operation of the device, the operation is completed and returns to step 0 above.
  • FIG. 4 is a flowchart of a write operation process in a data processing method of a preferred embodiment of a peripheral device extended by a general-purpose external memory card according to the present invention.
  • the write operation refers to an operation command of the personal digital assistant 1 operating system or
  • the other data to be transmitted is written into the portable RFID reader, and the steps included are: Step el: Start the writing operation of the portable RFID reader on the personal digital assistant 1; Step e2: By the SD card controller 21 for dynamic address mapping;
  • Step e3 The programmable logic device 3 determines whether the feature data is included, if the following step e4 is performed, if the following step e5 is not included;
  • Step e4 Record the current physical address, and write the data behind the feature data to the RFID reader.
  • Step e5 writing data to the flash memory 22;
  • Step e6 The write operation of the portable RFID reader ends.
  • the startup write operation refers to checking that the command word is 80 or 85, and the SD card controller 21 performs address mapping.
  • the SD card controller 21 has the function of address mapping, that is, the data block is operated by the personal digital assistant 1.
  • the logical address in the system has a dynamic mapping relationship with the physical address in the flash memory 22, and the mapping relationship is invisible to the operating system on the personal digital assistant 1;
  • the programmable logic device 3 checks the written data. When the data is found to have the characteristic data, the current physical address of the bar is recorded to B0 as the physical address corresponding to the RFID reader 4, and the data behind it is written.
  • the RFID reader 4 if there is no feature part, it is considered to operate on the file system, not the write operation to the RFID reader, and the write operation is ended, and for the personal digital assistant 1 itself, The write operation will be performed by the flash memory 22; when the set identification data is sufficiently complicated, the possibility of marking the byte data of the RFID reader 4 and the data conflict in the file system is as small as negligible.
  • step fl Personal Digital Assistant 1 initiates reading of a portable RFID reader
  • Step ⁇ Dynamic address mapping by the SD card controller 21;
  • Step ⁇ Programmable logic device 3 determines whether the physical address is the same, if the following step f4 is performed consistently, if the inconsistency is performed, the following step f5;
  • Step f4 outputting data by the radio frequency identification card reader 4, performing the following step f6;
  • Step f5 outputting data from the flash memory 22, performing the following step f6;
  • Step f6 The read operation ends.
  • the startup read operation refers to that the data obtained by the radio frequency identification card reader 4 is outputted by the personal digital assistant 1 operating system to the personal digital assistant 1SD card controller 21, and compares the physical location of the current access with the address of the B0 record. If they are equal, if the address comparison is equal, the radio frequency identification card reader 4 outputs the data information in the collected radio frequency identification tag; if the address comparisons are not equal, the flash memory 22 outputs the data.
  • address B0 is an invalid address, so only b write operations are performed.
  • the SD card controller 21 has a dynamic address mapping relationship, as long as the operation of writing a command to the flash memory 22 each time has identification data, the physical address recorded by the programmable logic device 3 also dynamically changes with the mapping relationship. It is also always possible to ensure that the logical space of the access corresponds to the RFID reader 4.
  • the present invention does not abandon the space in which the flash memory 22 is used, and still uses the file system of the personal digital assistant 1 operating system to perform the storage space file operation of the flash memory 22.
  • files are not used to save the data identification, and operations such as file copying are prevented from causing malfunction to the radio frequency identification card reader 4.
  • the present invention extends the external RFID reader 4 by utilizing unused storage space in the storage space of the secure digital memory card defined by the file system.
  • the specific method is as follows:
  • Some of the storage space of the flash memory 22 is not used, and is called a remaining space in the file system.
  • a remaining space For example, in the file allocation table 16 (fatl 6), about 3,000 remaining sectors (Sector) of the 256M flash memory 22 belong to the remaining space; other file systems also have unequal remaining space. Using the remaining space that is invisible to these file systems to enable access to RFID readers ask.
  • the portion of the data in front of the sector data is filled with the feature data, and the latter portion is filled with the data to be actually written.
  • Data can be written to the RFID reader 4 using the address mapping method described above.
  • the programmable logic device 3 can know to read the data of the RFID reader 4. These unused areas, the personal digital assistant operating system, are not used, so that the external device and the file system exist at the same time, and share the same storage space.
  • the flash memory is a standard memory, that is, an external device can be extended to a host having a USB interface by using a USB controller.
  • the data processing method is the same as that of the extended portable RFID reader through the SD interface of the personal digital assistant.
  • the extension of the MMC interface is the same, and will not be described here.

Abstract

A peripheral device extended by using a general external memory card, comprises a memory card bus controller(021,21) and a flash memory(022,22), wherein the peripheral device also comprises a programmable logic controller(03,3), a function module(04,4), and a custom interface bus. The memory card bus controller(021,21) is connected to the host machine(01,1) having a memory card interface. The flash memory(022,22) is connected to the memory card bus controller(021,21). The programmable logic controller(03,3) is connected to the memory card bus controller(021,21) and flash memory(022,22) respectively, and to the function module(04,4) through the custom interface bus. Thus, the peripheral device realize a new extended function, especially realize the extend function of the radiovision or RFID(radio frequency identify) being popular at present, wherein the usage of these new devices provides a easy and quick accessing way.

Description

利用通用外部存储卡扩展的外设装置及其数据处理方法 技术领域  Peripheral device extended by universal external memory card and data processing method thereof
本发明涉及的是一种计算机技术, 特别涉及的是一种利用外部存储卡进行外 部设备功能扩展的外设装置及其数据处理方法。 背景技术  The present invention relates to a computer technology, and more particularly to a peripheral device for external device function expansion using an external memory card and a data processing method thereof. Background technique
一方面, 随着 IT产业的迅速发展, 对于移动式处理各种信息的产品的研究开 发, 已经成为比较热门的方向, 对于现有的插接方式来扩展外部设备, 一直以来 都被业内人士认为最有效、 最有前景的功能扩展方案, 但是现有的外部设备的扩 展通常都是以 I/O方式进行扩展, 这在一定程度上限制了这种扩展的广泛性, 以 及拓展的空间;  On the one hand, with the rapid development of the IT industry, the research and development of products that process various information on the mobile has become a hot trend. For the existing plug-in methods to expand external devices, it has always been considered by the industry. The most effective and promising feature expansion solution, but the expansion of existing external devices is usually extended by I/O, which limits the extensiveness of this expansion and the expansion space to a certain extent;
另一方面, 随着新技术的不断涌现, 像娱乐型的无线电视、 用于公安刑侦的 指紋采集设备, 用于物流信息管理的 RFID (射频识别技术)等技术, 由于其需要专 有的设备作为基础才能使用, 这给用户在使用上带来很大的不便, 若想使用无线 电视就只能购买专用无线电视接收的设备, 若想采集指紋就要用专用的指纹采集 设备, 这在一定程度上造成了资源的重复浪费, 因此以符合一种通讯协议的设备 作为扩展基础, 用以进行功能装置扩展的方法急待出现, 为此本发明创作人员经 过长期的研究和开发终于有所突破。 发明内容  On the other hand, with the emergence of new technologies, such as entertainment-type wireless TV, fingerprint collection equipment for public security criminal investigation, RFID (radio frequency identification technology) technology for logistics information management, because it requires proprietary equipment. As a basis for use, this brings great inconvenience to users. If you want to use wireless TV, you can only buy equipment for receiving special wireless TV. If you want to collect fingerprints, you need to use a dedicated fingerprint collection device. To a certain extent, it causes repeated waste of resources. Therefore, the method for extending the functional device is urgently needed to expand the device according to a communication protocol. Therefore, the creators of the present invention have finally made breakthroughs through long-term research and development. . Summary of the invention
本发明的目的在于, 提供一种利用通用外部存储卡扩展的外设装置及其数据 处理方法, 利用标准的外部接口设备, 实现新的功能扩展, 特别是对时下比较流 行的无线电视或是 RFID (射频识别技术)的功能扩展,这些新类型设备的使用提供 了一种方便快捷的接入途径。  It is an object of the present invention to provide a peripheral device and a data processing method thereof that are extended by a universal external memory card, and realize a new function expansion by using a standard external interface device, in particular, a popular wireless TV or RFID. The functionality of (Radio Frequency Identification) is extended, and the use of these new types of devices provides a convenient and fast access path.
为实现上述目的, 本发明采用的技术方案在于, 提供一种利用通用外部存储 卡扩展的外设装置, 其包括: 存储卡总线控制器以及闪烁存储器, 其中, 还包括: 可编程逻辑控件、 功能模块以及自定义接口总线, 其中,  In order to achieve the above object, the technical solution adopted by the present invention is to provide a peripheral device extended by a universal external memory card, comprising: a memory card bus controller and a flash memory, wherein: the program further includes: a programmable logic control, a function Modules and custom interface buses, where
所述的存储卡总线控制器与具有存储卡接口的宿主机相连接;  The memory card bus controller is connected to a host having a memory card interface;
所述的闪烁存储器与存储卡总线控制器相连;  The flash memory is connected to a memory card bus controller;
所述的可编程逻辑控件分别与存储卡总线控制器以及闪烁存储器相连接, 并 通过所述的自定义接口总线与功能模块相连接; The programmable logic control is respectively connected to the memory card bus controller and the flash memory, and Connected to the functional module via the custom interface bus;
所述的存储卡总线控制器、 闪烁存储器、 可编程逻辑控件构成外部扩展基, 所述的功能模块与所述的外部扩展基相连接;  The memory card bus controller, the flash memory, and the programmable logic control constitute an external extension base, and the function module is connected to the external extension base;
所述的存储卡总线控制器为 USB控制器、 SD存储卡控制器、 MMC控制器; 所述的宿主机为手机、 个人数字助理、 单片机或笔记本电脑;  The memory card bus controller is a USB controller, an SD memory card controller, an MMC controller; the host machine is a mobile phone, a personal digital assistant, a single chip microcomputer or a notebook computer;
所述的功能模块为指纹采集器、 无线电视接收仪或者射频识别读卡器; 所述的自定义接口总线为静态存储器存储总线结构。 同时也提供了一种利用通用外部存储卡扩展的外设装置的数据处理方法, 其 应用于所述的通用外部存储卡扩展的外设装置, 其中, 包括的步骤为:  The function module is a fingerprint collector, a wireless television receiver or a radio frequency identification card reader; the custom interface bus is a static memory storage bus structure. A data processing method for a peripheral device extended by a general-purpose external memory card is also provided, which is applied to the peripheral device of the universal external memory card expansion, wherein the steps included are:
步骤 a: 通用外部存储卡扩展外设装置上的系统程序初始化;  Step a: General-purpose external memory card expansion system program initialization on the peripheral device;
步骤 b: 执行对通用外部存储卡扩展外设装置的写操作;  Step b: Perform a write operation to the general external memory card expansion peripheral device;
步骤 c: 通用外部存储卡扩展的外设装置处于等待操作命令状态, 具有存储 卡接口的宿主机上的驱动程序发出操作指令;  Step c: The peripheral device of the general external memory card expansion is in a state of waiting for an operation command, and the driver on the host having the memory card interface issues an operation instruction;
步驟 d: 可编程逻辑器件判断总线操作类型, 若是写操作类型, 执行下述步 骤 e; 若是读操作类型, 则执行下述步驟 f;  Step d: The programmable logic device determines the bus operation type. If it is a write operation type, perform the following steps e; if it is a read operation type, perform the following steps f;
步骤 e: 可编程逻辑器件实现对自定义数据总线的驱动, 把闪烁存储器总线 上的数据信号驱动到自定义总线上,执行通用外部存储卡扩展外设装置的写操作, 操作完成返回上述步驟 c;  Step e: The programmable logic device implements driving of the custom data bus, drives the data signal on the flash memory bus to the custom bus, executes the general external memory card to extend the write operation of the peripheral device, and returns to the above step c after the operation is completed. ;
步骤 f: 可编程逻辑器件实现对闪烁存储器总线的驱动,把自定义数据总线上 的数据信号驱动到闪烁存储器总线上, 执行通用外部存储卡扩展外设装置的读操 作, 操作完成返回上述步骤 c;  Step f: The programmable logic device implements driving of the flash memory bus, drives the data signal on the custom data bus to the flash memory bus, executes a general external memory card to expand the read operation of the peripheral device, and returns to the above step c after the operation is completed. ;
所述的通用外部存储卡扩展外设装置的写操作, 其包括的步驟为:  The universal external memory card extends the write operation of the peripheral device, and the steps included are:
步骤 el : 启动通用外部存储卡扩展外设装置写操作;  Step el: Start the general external memory card to expand the peripheral device write operation;
步骤 e2: 由存储卡总线控制器进行动态地址映射;  Step e2: Dynamic address mapping by the memory card bus controller;
步骤 e3: 可编程逻辑器件判断是否包含特征数据, 若包含执行下述步骤 e4, 若不包含执行下述步驟 e5 ;  Step e3: The programmable logic device determines whether the feature data is included, if the following step e4 is performed, if the following step e5 is not included;
步骤 e4: 可编程逻辑器件记录当前的物理地址, 将特征数据后面的数据写入 功1能模块; Step e4: The programmable logic device records the current physical address, and writes the data following the feature data into the function 1 module;
步骤 e5: 将数据写入闪烁存储器; 步骤 e6 : 通用外部存储卡扩展外设装置的写操作结束; Step e5: writing data to the flash memory; Step e6: The write operation of the general external memory card expansion peripheral device ends;
所述的特征数据, 是指用来标记对功能模块进行操作的字节数据; 其后为要 写入功能模块的控制字或需要传输的数据; 若所述字节数据不包含特征数据, 则 为文件系统对文件的写操作, 直接由闪烁存储器响应写操作;  The feature data refers to byte data used to mark the operation of the function module; thereafter, the control word to be written into the function module or the data to be transmitted; if the byte data does not contain the feature data, Write to the file for the file system, directly respond to the write operation by the flash memory;
所述的可编程逻辑器件记录的当前物理地址也随着映射关系动态变化, 使访 问的逻辑空间对应到功能模块;  The current physical address recorded by the programmable logic device also dynamically changes with the mapping relationship, so that the accessed logical space corresponds to the functional module;
所述的通用外部存储卡扩展外设装置的读操作, 其包括的步骤为: 步骤 fl : 启动通用外部存储卡扩展外设装置的读操作;  The general external memory card expands the read operation of the peripheral device, and the steps included are: step fl: starting a read operation of the universal external memory card expansion peripheral device;
步骤 Ω: 由存储卡总线控制器进行动态地址映射;  Step Ω: Dynamic address mapping by the memory card bus controller;
步骤 β : 可编程逻辑器件判断当前物理地址是否相同, 若一致执行下述步 骤 f4, 若不一致执行下述步骤 f5 ;  Step β: The programmable logic device determines whether the current physical address is the same. If the following step f4 is performed consistently, if the inconsistency is performed, the following step f5 is performed;
步驟 f4: 由功能模块输出数据, 执行下迷步骤 f6;  Step f4: output data by the function module, perform the following step f6;
步骤 f5 : 由闪烁存储器输出数据, 执行下述步骤 f6;  Step f5: outputting data from the flash memory, performing the following step f6;
步骤 f6: 通用外部存储卡扩展外设装置的读操作结束;  Step f6: The read operation of the universal external memory card expansion peripheral device ends;
所述的可编程逻辑器件判断当前物理地址是否相同, 是指比较当前访问的物 理地址, 是否为步骤 e4记录的地址相同;  The programmable logic device determines whether the current physical address is the same, which means comparing the currently accessed physical address, whether the address recorded in step e4 is the same;
所述的由存储卡总线控制器实行动态地址映射, 即数据块在具有存储卡接口 的宿主机上的操作系统中的逻辑地址和闪烁存储器中的物理地址具有动态映射关 系。 附图说明  The dynamic address mapping is performed by the memory card bus controller, i.e., the logical address of the data block in the operating system on the host having the memory card interface and the physical address in the flash memory have a dynamic mapping relationship. DRAWINGS
图 1为本发明利用通用外部存储卡扩展的外设装置的结构示意图; 图 2 为本发明利用通用外部存储卡扩展的外设装置较佳实施例的结构示意 图;  1 is a schematic structural diagram of a peripheral device extended by a general-purpose external memory card according to the present invention; FIG. 2 is a schematic structural view of a preferred embodiment of a peripheral device extended by a general-purpose external memory card according to the present invention;
图 3为本发明利用通用外部存储卡扩展的外设装置较佳实施例的数据处理方 法的流程图;  3 is a flow chart showing a data processing method of a preferred embodiment of a peripheral device extended by a general-purpose external memory card according to the present invention;
图 4为本发明利用通用外部存储卡扩展的外设装置较佳实施例的数据处理方 法中写操作过程的流程图;  4 is a flow chart showing a write operation process in the data processing method of the preferred embodiment of the peripheral device extended by the general external memory card of the present invention;
图 5为本发明利用通用外部存储卡扩展的外设装置较佳实施例的数据处理方 法中读操作过程的流程图。 附图标记说明: 01 -宿主机; 02 -设备扩展基; 021 -存储卡总线控制器; 022、 22 - flash存储器; 03、 3 -可编程逻辑器件; 04 -功能模块; 05 -自定义 接口总线; 1 -个人数字助理; 2- 射频识别读卡器扩展基; 2 ] - SD存储卡控制器; 4射频识别读卡器; 5 -静态存储器数据总线。 具体实施方式 Figure 5 is a flow chart showing the read operation process in the data processing method of the preferred embodiment of the peripheral device extended by the general external memory card of the present invention. DESCRIPTION OF REFERENCE NUMERALS 01 - host machine; 02 - device extension base; 021 - memory card bus controller; 022, 22 - flash memory; 03, 3 - programmable logic device; 04 - function module; 05 - custom interface Bus; 1 - personal digital assistant; 2- radio frequency identification card reader extension base; 2] - SD memory card controller; 4 radio frequency identification card reader; 5 - static memory data bus. detailed description
以下结合附图, 对本发明上述的和另外的技术特征和优点作更详细的说明。 请参阅图 1所示, 本图为本发明利用通用外部存储卡扩展的外设装置的结构 示意图, 其包括: 存储卡总线控制器 021以及 flash存储器 (闪烁存储器) 022 , 其中, 还包括: 可编程逻辑控件 03、 功能模块 04以及自定义接口总线 05 , 其中, 所述的存储卡总线控制器 021与具有存储卡接口的宿主机 01相连接; 所述的 flash存储器 022与存储卡总线控制器 021相连;  The above and other technical features and advantages of the present invention are described in more detail below with reference to the accompanying drawings. Please refer to FIG. 1 , which is a schematic structural diagram of a peripheral device extended by a general-purpose external memory card according to the present invention, which includes: a memory card bus controller 021 and a flash memory (flash memory) 022 , wherein: Programming logic control 03, function module 04, and custom interface bus 05, wherein the memory card bus controller 021 is connected to a host 01 having a memory card interface; the flash memory 022 and a memory card bus controller Connected to 021;
所述的可编程逻辑控件 03分别与存储卡总线控制器 021以及 flash存储器 022 相连接, 并通过所述的自定义接口总线 05与功能模块 04相连接。  The programmable logic control 03 is respectively connected to the memory card bus controller 021 and the flash memory 022, and is connected to the function module 04 through the custom interface bus 05.
其中所述的存储卡总线控制器 021、 flash存储器 022、 可编程逻辑控件 03构 成外部扩展基 02 , 所述的功能模块 04与所述的外部扩展基 02相连接。  The memory card bus controller 021, the flash memory 022, and the programmable logic control 03 constitute an external extension base 02, and the function module 04 is connected to the external extension base 02.
所述的存储卡总线控制器 021可为 USB控制器、 SD卡控制器、 MMC控制器 等。  The memory card bus controller 021 can be a USB controller, an SD card controller, an MMC controller, or the like.
所述的宿主机 01可以为手机、个人数字助理、单片机或笔记本电脑等具有相 应存储卡插接槽的处理器设备。  The host machine 01 can be a processor device having a corresponding memory card insertion slot, such as a mobile phone, a personal digital assistant, a single chip microcomputer or a notebook computer.
所述的功能模块 04可以为为指纹采集器、无线电视接收仪或者射频识別读卡 器等。  The function module 04 can be a fingerprint collector, a wireless television receiver or a radio frequency identification card reader.
所述的自定义接口总线 05可以为 SRAM (静态存储器)存储总线结构。 请参阅图 2所示, 其为本发明利用通用外部存储卡扩展的外设装置较佳实施 例的结构示意图; 实质上本图为本发明与个人数字助理相结合的便携式射频识别 读卡器的结构示意图, 这里以宿主机 01为个人数字助理 1、 储卡总线控制器 021 为 SD卡控制器 21、 功能模块 04为射频识别读卡器 4, 所采用的自定义接口总线 05为 SRAM存储总线 5结构, 来实现一个便携式的射频识别器, 用于对流动的贴 有射频识别标签的物品的信息进行处理。  The custom interface bus 05 can be a SRAM (static memory) memory bus structure. Please refer to FIG. 2, which is a schematic structural diagram of a preferred embodiment of a peripheral device extended by a universal external memory card according to the present invention; substantially, the present figure is a portable radio frequency identification card reader combined with a personal digital assistant of the present invention. Schematic diagram of the structure, here the host machine 01 is the personal digital assistant 1, the memory card bus controller 021 is the SD card controller 21, the function module 04 is the radio frequency identification card reader 4, and the custom interface bus 05 is the SRAM storage bus. 5 structure to implement a portable RFID reader for processing information on a mobile RFID tag-attached item.
通常与个人数字助理 1上的 SD插槽相连 SD存储卡其包括安全数码存储卡 SD卡控制器 2 !与 flash存储器 22 , 构成一体化固体介质, 没有任何移动部分, 所以不用担心机械运动的损坏, 现在的个人数字助理 1大都具有一个 SD存储卡 插槽, 用以插接 SD存储卡, 所述的 SD卡控制器 21使 SD存储卡和内置该存储 卡的个人数字助理〗间进行相互认证, 解析 SD接口的命令, 并控制 flash存储器 22的操作; 其具有硬件数据写保护保护开关, 可避免储存内容不慎删除的风险。 Usually connected to the SD slot on the personal digital assistant 1 SD memory card including a secure digital memory card The SD card controller 2 and the flash memory 22 form an integrated solid medium without any moving parts, so there is no need to worry about mechanical movement damage. Most of the current personal digital assistants 1 have an SD memory card slot for plugging SD. a memory card, the SD card controller 21 performs mutual authentication between the SD memory card and the personal digital assistant incorporating the memory card, parses the command of the SD interface, and controls the operation of the flash memory 22; it has hardware data write protection The protection switch prevents the risk of accidental deletion of stored contents.
可编程逻辑器件 3, 通过 SRAM存储总线 5连接控制一个射频识别读卡器 4; 在本结构中 SD卡控制器 21用于解析 PDA1上 SD卡接口的命令,并控制 flash 存储器 22的搡作, 操作类型有很多种, 扩展外部设备只需要解释其中两种, 读命 令字为 ( 00, 05 ) , 写命令字 0, 85 ) 。 其他的操作类型, 让 SD卡控制器 21 直接控制 flash存储器 22即可, 无需干扰。  The programmable logic device 3 is connected to and control an RFID reader 4 through the SRAM storage bus 5; in the present configuration, the SD card controller 21 is used to parse the command of the SD card interface on the PDA 1, and control the operation of the flash memory 22, There are many types of operations. To extend an external device, you only need to interpret two of them. The read command word is (00, 05) and the command word is 0, 85). For other operation types, the SD card controller 21 can directly control the flash memory 22 without interference.
所述的 flash存储器 22用于存储射频识别标签里的数据信息或其他的数据, 所述的其他数据为个人数字助理里的一些文件。  The flash memory 22 is used to store data information or other data in the radio frequency identification tag, and the other data is some files in the personal digital assistant.
所述的可编程逻辑器件 3解析 SD卡控制器 21发出的命令, 将所述命令分解 为文件系统对 flash存储器 22的操作, 或个人数字助理上的驱动程序对射频识别 读卡器 4的操作, 完成对 flash存储器 22或者射频识别读卡器 4加载控制信号, 来实现两者对 SD卡控制器 21 的命令响应。  The programmable logic device 3 parses the command issued by the SD card controller 21, and decomposes the command into the operation of the file system to the flash memory 22, or the operation of the driver on the personal digital assistant to the RFID reader 4. The loading of the control signal to the flash memory 22 or the RFID reader 4 is completed to implement the command response of the two to the SD card controller 21.
所述的射频识别读卡器 4为现有技术产品。  The RFID reader 4 is a prior art product.
请参阅图 3为本发明利用通用外部存储卡扩展的外设装置较佳实施例的数据 处理方法的流程图, 其包括的步骤为:  Please refer to FIG. 3, which is a flowchart of a data processing method of a preferred embodiment of a peripheral device extended by a general-purpose external memory card according to the present invention, which includes the following steps:
步骤 a: 便携式射频识别读卡器的系统程序初始化;  Step a: Initializing the system program of the portable RFID reader;
步骤 b: 对便携式射频识别读卡器执行写操作;  Step b: performing a write operation on the portable RFID reader;
步骤 c: 便携式射频识别读卡器处于等待操作命令状态, 个人数字助理 1上 的驱动程序系统发出操作指令;  Step c: The portable radio frequency identification card reader is in a state of waiting for an operation command, and the driver system on the personal digital assistant 1 issues an operation instruction;
步骤 d: 可编程逻辑器件 3判断总线操作类型, 是写操作类型, 执行步骤 e, 若是读操作类型, 则执行下述步驟 f;  Step d: The programmable logic device 3 determines the bus operation type, is a write operation type, performs step e, and if it is a read operation type, performs the following steps f;
步骤 e: 可编程逻辑器件 3实现对 SRAM存储总线 5的驱动, 把 flash存储 器 22总线上的数据信号驱动到 SRAM存储总线 5上, 执行便携式射频识别读卡 器的写操作, 操作完成返回上述步骤 c;  Step e: The programmable logic device 3 implements driving of the SRAM memory bus 5, drives the data signal on the flash memory 22 bus to the SRAM storage bus 5, performs a write operation of the portable radio frequency identification card reader, and returns to the above steps after the operation is completed. c;
步骤 f: 可编程逻辑器件 3实现对 flash存储器 22总线的驱动, 把 SRAM存 储总线 5上的数据信号驱动到 flash存储器 22总线上, 执行便携式射频识别读卡 器的读操作, 操作完成返回上述步骤0。 Step f: The programmable logic device 3 implements driving of the flash memory 22 bus, drives the data signal on the SRAM memory bus 5 to the flash memory 22 bus, and performs a portable radio frequency identification card reading. Read operation of the device, the operation is completed and returns to step 0 above.
请参阅图 4为本发明利用通用外部存储卡扩展的外设装置较佳实施例的数据处 理方法中写操作过程的流程图, 所述的写操作是指个人数字助理 1操作系统将控 制命令或是其他需要传输的数据写入便携式射频识別读卡器, 其包括的步骤为: 步驟 el : 在个人数字助理 1上启动便携式射频识别读卡器的写操作; 步骤 e2: 由 SD卡控制器 21进行动态地址映射;  4 is a flowchart of a write operation process in a data processing method of a preferred embodiment of a peripheral device extended by a general-purpose external memory card according to the present invention. The write operation refers to an operation command of the personal digital assistant 1 operating system or The other data to be transmitted is written into the portable RFID reader, and the steps included are: Step el: Start the writing operation of the portable RFID reader on the personal digital assistant 1; Step e2: By the SD card controller 21 for dynamic address mapping;
步驟 e3 :可编程逻辑器件 3判断是否包含特征数据,若包含执行下述步骤 e4, 若不包含执行下述步骤 e5;  Step e3: The programmable logic device 3 determines whether the feature data is included, if the following step e4 is performed, if the following step e5 is not included;
步骤 e4: 记录当前的物理地址, 将特征数据后面的数据写入射频识別读卡器 Step e4: Record the current physical address, and write the data behind the feature data to the RFID reader.
4; 4;
步骤 e5: 将数据写入 flash存储器 22;  Step e5: writing data to the flash memory 22;
步骤 e6: 便携式射频识别读卡器的写操作结束。  Step e6: The write operation of the portable RFID reader ends.
所述的启动写操作是指检查命令字为 80或 85, SD卡控制器 21进行地址映 射, 在本发明中, SD卡控制器 21具有地址映射的功能, 即数据块在个人数字助 理 1操作系统中的逻辑地址和 flash存储器 22中的物理地址具有动态的映射关系, 而这种映射关系对于个人数字助理 1上的操作系统是不可见的;  The startup write operation refers to checking that the command word is 80 or 85, and the SD card controller 21 performs address mapping. In the present invention, the SD card controller 21 has the function of address mapping, that is, the data block is operated by the personal digital assistant 1. The logical address in the system has a dynamic mapping relationship with the physical address in the flash memory 22, and the mapping relationship is invisible to the operating system on the personal digital assistant 1;
可编程逻辑器件 3对写入的数据进行检查, 当发现数据具有特征数据时, 就 巴当前的物理地址记录到 B0, 作为射频识别读卡器 4对应的物理地址, 将其后面 的数据写入射频识别读卡器 4; 若无特征部分, 则认为是对文件系统进行操作, 不是对射频识别读卡器进行的写操作, 则结束此次写操作, 而对个人数字助理 1 本身而言, 将由 flash存储器 22来响^这次写操作; 当设定的标识数据足够复杂 的时候, 标记射频识别读卡器 4的字节数据和文件系统中数据冲突的可能性小到 可以忽略的程度。  The programmable logic device 3 checks the written data. When the data is found to have the characteristic data, the current physical address of the bar is recorded to B0 as the physical address corresponding to the RFID reader 4, and the data behind it is written. The RFID reader 4; if there is no feature part, it is considered to operate on the file system, not the write operation to the RFID reader, and the write operation is ended, and for the personal digital assistant 1 itself, The write operation will be performed by the flash memory 22; when the set identification data is sufficiently complicated, the possibility of marking the byte data of the RFID reader 4 and the data conflict in the file system is as small as negligible.
请参阅图 5为本发明利用通用外部存储卡扩展的外设装置较佳实施例的数据 处理方法中读操作过程的流程图, 这种数据的传输是实时的, 其包括的步骤为: 步骤 fl : 个人数字助理 1启动便携式射频识别读卡器的读搡作;  5 is a flowchart of a read operation process in a data processing method of a preferred embodiment of a peripheral device extended by a general-purpose external memory card according to the present invention. The data transmission is real-time, and the steps included are: step fl : Personal Digital Assistant 1 initiates reading of a portable RFID reader;
步骤 Ω: 由 SD卡控制器 21进行动态地址映射;  Step Ω: Dynamic address mapping by the SD card controller 21;
步骤 β.可编程逻辑器件 3判断物理地址是否相同, 若一致执行下述步骤 f4, 若不一致执行下述步骤 f5;  Step β. Programmable logic device 3 determines whether the physical address is the same, if the following step f4 is performed consistently, if the inconsistency is performed, the following step f5;
步骤 f4: 由射频识别读卡器 4输出数据, 执行下述步骤 f6; 步骤 f5: 由 flash存储器 22输出数据, 执行下述步骤 f6; Step f4: outputting data by the radio frequency identification card reader 4, performing the following step f6; Step f5: outputting data from the flash memory 22, performing the following step f6;
步骤 f6: 读操作结束。  Step f6: The read operation ends.
所述的启动读操作是指由个人数字助理 1操作系统将射频识别读卡器 4中获 得的数据, 输出给个人数字助理 1SD卡控制器 21, 比较当前访问的物理地置与 B0记录的地址是否相等, 如果地址比较是相等的, 则由射频识别读卡器 4输出采 集到的射频识别标签中的数据信息; 如果地址比较不相等, 则 flash存储器 22输 出数据。  The startup read operation refers to that the data obtained by the radio frequency identification card reader 4 is outputted by the personal digital assistant 1 operating system to the personal digital assistant 1SD card controller 21, and compares the physical location of the current access with the address of the B0 record. If they are equal, if the address comparison is equal, the radio frequency identification card reader 4 outputs the data information in the collected radio frequency identification tag; if the address comparisons are not equal, the flash memory 22 outputs the data.
需要强调的是:  What needs to be emphasized is:
对于图 3所述的系统初始化的时候 , 地址 B0为无效地址, 所以只会执行 b 写操作。  When the system described in Figure 3 is initialized, address B0 is an invalid address, so only b write operations are performed.
虽然 SD卡控制器 21具有动态的地址映射关系, 但只要每次向 flash存储器 22写入命令的操作都带有标识数据, 那么可编程逻辑器件 3记录的物理地址也随 着映射关系动态变化, 也就总是能够保证访问的逻辑空间对应到射频识别读卡器 4。  Although the SD card controller 21 has a dynamic address mapping relationship, as long as the operation of writing a command to the flash memory 22 each time has identification data, the physical address recorded by the programmable logic device 3 also dynamically changes with the mapping relationship. It is also always possible to ensure that the logical space of the access corresponds to the RFID reader 4.
对于图 4, 图 5所示, 假设系统检测到特征数据, 为对地址 p的写操作, 则 记录 B0=地址 p, 以后读操作中判断射频识别读卡器 4的标准是判断地址是否与 地址 p相等; 凡是对地址 p的读取, 都由射频识别读卡器 4输出数据; 系统再次 检测到特征数据的写操作对地址 q, 则记录 B0 =地址 q, 则以后判断射频识別读 卡器 4的标准就变为地址是否与地址 q相等; 凡是对地址 q的读取, 都由射频识 别读卡器 4输出数据, 那么原来的地址 p的读取交给 flash存储器 22输出数据。  As shown in FIG. 4 and FIG. 5, assuming that the system detects the feature data, for the write operation to the address p, the record B0=address p, and the criterion for determining the radio frequency identification card reader 4 in the subsequent read operation is to determine whether the address and the address are p is equal; any reading of the address p is output by the radio frequency identification card reader 4; the system detects the write operation of the feature data again to the address q, then records B0 = address q, then judges the radio frequency identification card reading The standard of the device 4 becomes whether the address is equal to the address q; if the reading of the address q is output by the RFID reader 4, the reading of the original address p is sent to the flash memory 22 to output the data.
本发明并不放弃使用 flash存储器 22的空间, 仍然利用个人数字助理 1操作 系统的文件系统来进行 flash存储器 22的存储空间文件操作。 为了避免个人数字 助理 1文件系统和射频识别读卡器 4之间的冲突, 不使用文件来保存数据标识, 避免文件拷贝之类的操作造成对射频识别读卡器 4的误动作。  The present invention does not abandon the space in which the flash memory 22 is used, and still uses the file system of the personal digital assistant 1 operating system to perform the storage space file operation of the flash memory 22. In order to avoid conflicts between the personal digital assistant 1 file system and the radio frequency identification card reader 4, files are not used to save the data identification, and operations such as file copying are prevented from causing malfunction to the radio frequency identification card reader 4.
本发明利用文件系统定义的安全数码存储卡的存储空间中未用的存储空间, 来扩展外部射频识別读卡器 4。 具体方法如下:  The present invention extends the external RFID reader 4 by utilizing unused storage space in the storage space of the secure digital memory card defined by the file system. The specific method is as follows:
flash存储器 22的存储空间中, 有一部分是不会使用到的, 在文件系统中称 为剩余空间。 例如, 在文件分配表 16 ( fatl 6 ) 中, 256M的 flash存储器 22就有 大约 3000个剩余的扇区 (Sector )是属于剩余空间的; 其他文件系统也有不等的 剩余空间。 就利用这些文件系统不可见的剩余空间来实现对射频识别读卡器的访 问。 Some of the storage space of the flash memory 22 is not used, and is called a remaining space in the file system. For example, in the file allocation table 16 (fatl 6), about 3,000 remaining sectors (Sector) of the 256M flash memory 22 belong to the remaining space; other file systems also have unequal remaining space. Using the remaining space that is invisible to these file systems to enable access to RFID readers ask.
当访问射频识别读卡器 4时, 在扇区数据前面的部分填充特征数据, 后面的 部分填充实际要写入的数据。 利用上面所述的地址映射方法, 就可以把数据写入 到射频识別读卡器 4中去。  When accessing the RFID reader 4, the portion of the data in front of the sector data is filled with the feature data, and the latter portion is filled with the data to be actually written. Data can be written to the RFID reader 4 using the address mapping method described above.
因为建立了地址映射关系。 当读取这些逻辑数据块的时候, 可编程逻辑器件 3就可以知道是读取射频识别读卡器 4的数据。 而这些未用的区域, 个人数字助 理操作系统是不使用的, 从而使外部设备和文件系统同时存在, 而且共享同一个 存储空间。  Because the address mapping relationship is established. When reading these logical blocks, the programmable logic device 3 can know to read the data of the RFID reader 4. These unused areas, the personal digital assistant operating system, are not used, so that the external device and the file system exist at the same time, and share the same storage space.
只要更换相应的总线控制器, 就能实现在不同存储卡上的扩展方案; 所述的 flash存储器为标准的存储器, 即使用 USB控制器就可以实现对具有 USB接口的 宿主机进行外部设备扩展, 其数据处理方式和通过个人数字助理的 SD接口进行 扩展便携式射频识别读卡器的数据处理方式是一样的, MMC 接口的扩展也是一 样的这里就不再赘述了。  As long as the corresponding bus controller is replaced, an expansion scheme on different memory cards can be realized; the flash memory is a standard memory, that is, an external device can be extended to a host having a USB interface by using a USB controller. The data processing method is the same as that of the extended portable RFID reader through the SD interface of the personal digital assistant. The extension of the MMC interface is the same, and will not be described here.
以上所述仅为本发明的较佳实施例, 对本发明而言仅仅是说明性的, 而非限 制性的。 本专业技术人员理解, 在本发明权利要求所限定的精神和范围内可对其 进行许多改变, 修改, 甚至等效, 但都将落入本发明的保护范围内。  The above are only the preferred embodiments of the present invention, and are merely illustrative and not restrictive. It will be apparent to those skilled in the art that many changes, modifications, and equivalents are possible within the spirit and scope of the invention as defined by the appended claims.

Claims

权利要求 Rights request
1、一种利用通用外部存储卡扩展的外设装置, 其包括: 存储卡总线控制器以 及闪烁存储器, 其特征在于, 还包括: 可编程逻辑控件、 功能模块以及自定义接 口总线, 其中, A peripheral device that is extended by a general-purpose external memory card, comprising: a memory card bus controller and a flash memory, and further comprising: a programmable logic control, a function module, and a custom interface bus, wherein
所述的存储卡总线控制器与具有存储卡接口的宿主机相连接;  The memory card bus controller is connected to a host having a memory card interface;
所述的闪烁存储器与存储卡总线控制器相连;  The flash memory is connected to a memory card bus controller;
所述的可编程逻辑控件分别与存储卡总线控制器以及闪烁存储器相连接, 并 通过所述的自定义接口总线与功能模块相连接。  The programmable logic control is respectively connected to the memory card bus controller and the flash memory, and is connected to the function module through the customized interface bus.
2、根据权利要求 1所述的利用通用外部存储卡扩展的外设装置,其特征在于, 所述的存储卡总线控制器、 闪烁存储器、 可编程逻辑控件构成外部扩展基, 所迷 的功能模块与所述的外部扩展基相连接。  2. The peripheral device extended by a universal external memory card according to claim 1, wherein the memory card bus controller, the flash memory, and the programmable logic control constitute an external extension base, and the functional module is Connected to the external extension base as described.
3、根据权利要求 1或 2所述的利用通用外部存储卡扩展的外设装置, 其特征 在于,所述的存储卡总线控制器为 USB控制器、 SD存储卡控制器、 MMC控制器。  The peripheral device expanded by the universal external memory card according to claim 1 or 2, wherein the memory card bus controller is a USB controller, an SD memory card controller, and an MMC controller.
4、根据权利要求 1或 2所述的利用通用外部存储卡扩展的外设装置, 其特征 在于, 所述的宿主机为手机、 个人数字助理、 单片机或笔记本电脑。  The peripheral device expanded by the universal external memory card according to claim 1 or 2, wherein the host device is a mobile phone, a personal digital assistant, a single chip microcomputer or a notebook computer.
5、根据权利要求 1或 2所述的利用通用外部存储卡扩展的外设装置, 其特征 在于, 所述的功能模块为指紋采集器、 无线电视接收仪或者射频识别读卡器。  The peripheral device extended by the universal external memory card according to claim 1 or 2, wherein the function module is a fingerprint collector, a wireless television receiver or a radio frequency identification card reader.
6、根据权利要求 1所述的利用通用外部存储卡扩展的外设装置,其特征在于, 所述的自定义接口总线为静态存储器存储总线结构。  6. The peripheral device expanded by a universal external memory card according to claim 1, wherein said custom interface bus is a static memory storage bus structure.
7、一种利用通用外部存储卡扩展的外设装置的数据处理方法, 其应用于所迷 的通用外部存储卡扩展的外设装置, 其特征在于, 包括的步驟为:  A data processing method for a peripheral device extended by a general-purpose external memory card, which is applied to the peripheral device of the general-purpose external memory card expansion of the present invention, characterized in that the steps included are:
步骤 a: 通用外部存储卡扩展外设装置上的系统程序初始化;  Step a: General-purpose external memory card expansion system program initialization on the peripheral device;
步骤 b: 执行对通用外部存储卡扩展外设装置的写操作;  Step b: Perform a write operation to the general external memory card expansion peripheral device;
步骤 c: 通用外部存储卡扩展的外设装置处于等待操作命令状态, 具有存储 卡接口的宿主机上的驱动程序发出操作指令;  Step c: The peripheral device of the general external memory card expansion is in a state of waiting for an operation command, and the driver on the host having the memory card interface issues an operation instruction;
步骤 d: 可编程逻辑器件判断总线操作类型, 若是写操作类型, 执行下述步 骤 e; 若是读操作类型, 则执行下述步骤 f;  Step d: The programmable logic device determines the bus operation type. If it is a write operation type, perform the following steps e; if it is a read operation type, perform the following steps f;
步骤 e: 可编程逻辑器件实现对自定义数据总线的驱动, 把闪烁存储器总线 上的数据信号驱动到自定义总线上,执行通用外部存储卡扩展外设装置的写操作, 操作完成返回上述步骤 c; . 步骤 f:可编程逻辑器件实现对闪烁存储器总线的驱动,把自定义数据总线上 的数据信号驱动到闪烁存储器总线上, 执行通用外部存储卡扩展外设装置的读操 作, 操作完成返回上述步骤 Step e: The programmable logic device drives the custom data bus, drives the data signal on the flash memory bus to the custom bus, and executes a general external memory card to extend the write operation of the peripheral device. The operation is completed and returns to the above step c; . Step f: The programmable logic device implements driving of the flash memory bus, drives the data signal on the custom data bus to the flash memory bus, and executes the general external memory card to expand the reading of the peripheral device. Operation, operation is completed, return to the above steps
8.根据权利要求 7所述的利用通用外部存储卡扩展外设装置的数据处理方法, 其特征在于, 所述的通用外部存储卡扩展外设装置的写操作, 其包括的步驟为: 步骤 el : 启动通用外部存储卡扩展外设装置写操作;  8. The data processing method of a peripheral device for expanding a peripheral device by using a general-purpose external memory card according to claim 7, wherein said universal external memory card extends a write operation of the peripheral device, and comprises the steps of: : Start general-purpose external memory card expansion peripheral device write operation;
步骤 e2: 由存储卡总线控制器进行动态地址映射;  Step e2: Dynamic address mapping by the memory card bus controller;
步骤 e3: 可编程逻辑器件判断是否包含特征数据, 若包含执行下述步骤 e4, 若不包含执行下述步骤 e5;  Step e3: The programmable logic device determines whether the feature data is included, if the following step e4 is performed, if the following step e5 is not included;
步骒 e4: 可编程逻辑器件记录当前的物理地址, 将特征数据后面的数据写入 功能模块;  Step e4: The programmable logic device records the current physical address, and writes the data following the feature data to the function module;
步骤 e5: 将数据写入闪烁存储器;  Step e5: Write data to the flash memory;
步骤 e6: 通用外部存储卡扩展外设装置的写操作结束。  Step e6: The write operation of the general-purpose external memory card expansion peripheral device ends.
9.根据权利要求 8所述的利用通用外部存储卡扩展外设装置的数据处理方法, 其特征在于, 所述的特征数据, 是指用来标记对功能模块进行操作的字节数据; 其后为要写入功能模块的控制字或需要传输的数据; 若所述字节数据不包含特征 数据, 则为文件系统对文件的写操作, 直接由闪烁存储器响应写操作。  The data processing method for expanding a peripheral device by using a general-purpose external memory card according to claim 8, wherein the feature data is used to mark byte data for operating the function module; The control word to be written to the function module or the data to be transmitted; if the byte data does not contain the feature data, the file system writes the file directly, and the write operation is directly responded to by the flash memory.
10.根据权利要求 8 所述的利用通用外部存储卡扩展外设装置的数据处理方 法, 其特征在于, 所述的可编程逻辑器件记录的当前物理地址也随着映射关系动 态变化, 使访问的逻辑空间对应到功能模块。  10. The data processing method of a peripheral device for expanding a peripheral device by using a general-purpose external memory card according to claim 8, wherein the current physical address recorded by the programmable logic device also dynamically changes with a mapping relationship to enable access. The logical space corresponds to the functional module.
1 1根据权利要求 7所述的利用通用外部存储卡扩展外设装置的数据处理方 法, 其特征在于, 所述的通用外部存储卡扩展外设装置的读操作, 其包括的步驟 为:  A data processing method for expanding a peripheral device by using a general-purpose external memory card according to claim 7, wherein said universal external memory card expands a read operation of the peripheral device, and the steps included are:
步骤 fl : 启动通用外部存储卡扩展外设装置的读操作;  Step fl: Start a read operation of the universal external memory card expansion peripheral device;
步驟 Ω: 由存储卡总线控制器进行动态地址映射;  Step Ω: Dynamic address mapping by the memory card bus controller;
步驟 f3 : 可编程逻辑器件判断当前物理地址是否相同, 若一致执行下述步 骤 f4, 若不一致执行下述步骤 f5;  Step f3: The programmable logic device determines whether the current physical address is the same. If the following step f4 is performed consistently, if the inconsistency is performed, the following step f5 is performed;
步骤 f4: 由功能模块输出数据, 执行下述步骤 f6;  Step f4: The data is output by the function module, and the following step f6 is performed;
步骤 f5 : 由闪烁存储器输出数据, 执行下述步骤 f6; 步骤 f6: 通用外部存储卡扩展外设装置的读操作结束。 Step f5: outputting data from the flash memory, performing the following step f6; Step f6: The read operation of the general-purpose external memory card expansion peripheral device ends.
12根据权利要求 1 1所迷的利用通用外部存储卡扩展外设装置的数据处理方 法, 其特征在于, 所述的可编程逻辑器件判断当前物理地址是否相同, 是指比较 当前访问的物理地址, 是否为步骤 e4记录的地址相同。  The data processing method for extending a peripheral device by using a general-purpose external memory card according to claim 11, wherein the programmable logic device determines whether the current physical address is the same, and refers to comparing the currently accessed physical address. Whether the address recorded for step e4 is the same.
13.根据权利要求 8或 11所述的利用通用外部存储卡扩展外设装置的数据处 理方法, 其特征在于, 所述的由存储卡总线控制器实行动态地址映射, 即数据块 在具有存储卡接口的宿主机上的操作系统中的逻辑地址和闪烁存储器中的物理地 址具有动态映射关系。  The data processing method for expanding a peripheral device by using a general-purpose external memory card according to claim 8 or 11, wherein said dynamic address mapping is performed by a memory card bus controller, that is, the data block has a memory card The logical address in the operating system on the host of the interface and the physical address in the flash memory have a dynamic mapping relationship.
PCT/CN2006/002411 2006-09-14 2006-09-15 Peripheral device extended by using general external memory card and data processing method thereof WO2008034284A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CNB2006101129852A CN100495376C (en) 2006-09-14 2006-09-14 Peripheral device using universal external memory card for extension and its data processing method
CN200610112985.2 2006-09-14

Publications (1)

Publication Number Publication Date
WO2008034284A1 true WO2008034284A1 (en) 2008-03-27

Family

ID=39200144

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2006/002411 WO2008034284A1 (en) 2006-09-14 2006-09-15 Peripheral device extended by using general external memory card and data processing method thereof

Country Status (2)

Country Link
CN (1) CN100495376C (en)
WO (1) WO2008034284A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101282347B (en) * 2008-05-15 2011-04-06 普天信息技术研究院有限公司 Method for controlling intelligent storing card
CN101340663B (en) * 2008-05-30 2011-08-31 普天信息技术研究院有限公司 Smart memory card system and method for implementing interaction by the system
CN106851371A (en) * 2017-02-16 2017-06-13 厦门盈趣科技股份有限公司 Intelligent television self-navigation device and air navigation aid
CN107179709B (en) * 2017-05-22 2019-09-06 郑州云海信息技术有限公司 A kind of storage system sequence switch machine device of the key realization with extension cabinet
WO2019041102A1 (en) * 2017-08-28 2019-03-07 杭州来布科技有限公司 Cross-platform function extension component
CN111526319B (en) * 2020-04-26 2022-08-12 上海依图网络科技有限公司 Connection method and device of extended function device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040019736A1 (en) * 2002-07-23 2004-01-29 Dug-Soo Kim Portable flash memory with extended memory capacity
CN1588952A (en) * 2004-09-30 2005-03-02 西安西电捷通无线网络通信有限公司 Portable device for realizing extending domain management entity function in flexible network technology system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040019736A1 (en) * 2002-07-23 2004-01-29 Dug-Soo Kim Portable flash memory with extended memory capacity
CN1588952A (en) * 2004-09-30 2005-03-02 西安西电捷通无线网络通信有限公司 Portable device for realizing extending domain management entity function in flexible network technology system

Also Published As

Publication number Publication date
CN101145141A (en) 2008-03-19
CN100495376C (en) 2009-06-03

Similar Documents

Publication Publication Date Title
RU2445676C2 (en) Method of communication with multifunctional memory card
US7007127B2 (en) Method and related apparatus for controlling transmission interface between an external device and a computer system
US6684310B2 (en) Access control method and storage device using same
JP2003132305A (en) Device and method for controlling memory card
KR100725271B1 (en) USB-SD Memory with multiple DMA channels, and data storing method thereof
CN1938670A (en) Dual media storage device
WO2008034284A1 (en) Peripheral device extended by using general external memory card and data processing method thereof
TWI454107B (en) Multiple communication channels on mmc or sd cmd line
KR20080084082A (en) Memory card and memory system including the same and operating method thereof
US8266713B2 (en) Method, system and controller for transmitting and dispatching data stream
US7620761B2 (en) Multi-functional storage apparatus and control method thereof
KR20140093505A (en) Method and apparatus for extending memory in terminal
US6941397B2 (en) Quick save system and protocol, monitor program and smart button firmware of the same
US7237714B2 (en) Method of making computer booting from any one of card of multi-flash card reader
JP2003196613A (en) Device and method for controlling memory card
US20070043887A1 (en) [adaptor device for ms memory card interface]
US20080256289A1 (en) Memory apparatus to write and read data, and method thereof
TW201709055A (en) Field firmware upgrading method and computer-readable medium
TWI760884B (en) Method and apparatus for data reads in host performance acceleration mode
EP1560113B1 (en) Method of booting a computer from any card of a multi-flash card reader
CN114489493B (en) Implementation method for simulating use of high-capacity Flash storage by Mifare class card
US8544424B2 (en) System, controller and method thereof for transmitting and distributing data stream
KR20040021968A (en) Ic card, reader and acessing method
TW200919180A (en) Non-volatile memory apparatus and the access method thereof
US10324894B2 (en) Storage device management method and system, and memory storage device thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 06791008

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 06791008

Country of ref document: EP

Kind code of ref document: A1