CN1981274A - Method for managing the plug-in or removal of a memory card into or from a card reader and apparatus for use in said method - Google Patents

Method for managing the plug-in or removal of a memory card into or from a card reader and apparatus for use in said method Download PDF

Info

Publication number
CN1981274A
CN1981274A CN 200580016645 CN200580016645A CN1981274A CN 1981274 A CN1981274 A CN 1981274A CN 200580016645 CN200580016645 CN 200580016645 CN 200580016645 A CN200580016645 A CN 200580016645A CN 1981274 A CN1981274 A CN 1981274A
Authority
CN
China
Prior art keywords
memory card
usb
card
card reader
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 200580016645
Other languages
Chinese (zh)
Other versions
CN100520756C (en
Inventor
安杰伊·焦乌科夫斯基
陈明融
陈淑美
李关翠
刘国胜
欧阳文荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Thomson Licensing SAS
Original Assignee
Thomson Licensing SAS
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 Thomson Licensing SAS filed Critical Thomson Licensing SAS
Publication of CN1981274A publication Critical patent/CN1981274A/en
Application granted granted Critical
Publication of CN100520756C publication Critical patent/CN100520756C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

本方案涉及存储卡插入或拔出本身与中央设备(10)相连的存储卡读卡器(11)的处理。并不通过可以是USB总线连接的总线连接(13)将存储卡的插入或拔出存储卡读卡器(11)报告给中央设备(10)。这引起用户和例如DVD播放器的中央设备(10)的混乱。如果从读卡器(11)拆卸存储卡,也会引起该现象。尽管已经拆卸了该卡,然而,该卡的内容或文件目录仍然显示在播放器的UI上。当用户试图从该文件或内容目录访问文件时,可能出现某些读错误。为了克服该问题,建议在中央设备(10)中实施轮询方法。以固定时间间隔,例如100ms,播放器(10)发送控制命令,以读取存储卡读卡器(11)的各个插槽(12)的状态。

Figure 200580016645

This solution involves the processing of inserting or pulling out a memory card into or out of a memory card reader (11) which itself is connected to a central device (10). The insertion or removal of a memory card into or out of the memory card reader (11) is not reported to the central device (10) via the bus connection (13), which may be a USB bus connection. This causes confusion for the user and the central device (10) such as a DVD player. This phenomenon can also be caused if the memory card is removed from the card reader (11). Although the card has been removed, however, the card's content or file directory is still displayed on the player's UI. Certain read errors may occur when a user attempts to access a file from the file or content directory. In order to overcome this problem, it is proposed to implement a polling method in the central device (10). At fixed time intervals, such as 100ms, the player (10) sends control commands to read the status of each slot (12) of the memory card reader (11).

Figure 200580016645

Description

管理存储卡插入或拔出读卡器的方法和所述方法中使用的设备Method for managing insertion or removal of memory card into or out of card reader and device used in said method

技术领域technical field

本发明涉及处理对如存储卡之类的大容量存储设备的数据访问。The present invention relates to handling data access to mass storage devices such as memory cards.

背景技术Background technique

在个人计算机领域,已知串行总线通信标准被称为USB=通用串行总线。已知不同的总线标准。版本1.1的USB支持两个速率模式,即12Mbit/s和1.5Mbit/s。版本2.0的USB支持最大480Mbit/s的高速数据传输。当今个人计算机的大部分外围设备,如打印机、扫描仪、键盘、鼠标、数码照相机等,都备有USB接口。USB接口不仅用于PC领域。现今,现有来自CE领域的产品也具有USB接口。In the field of personal computers, the serial bus communication standard is known as USB = Universal Serial Bus. Various bus standards are known. Version 1.1 of USB supports two speed modes, 12Mbit/s and 1.5Mbit/s. Version 2.0 of USB supports high-speed data transfers up to 480Mbit/s. Most of the peripheral devices of today's personal computers, such as printers, scanners, keyboards, mice, digital cameras, etc., are equipped with USB ports. The USB interface is not only used in the PC field. Today, existing products from the CE field also have a USB interface.

一个示例是DVD播放器,具有USB接口以用于与如照相机之类的外围设备相连。代替照相机,存储卡读卡器也可以与DVD播放器相连。已经有全能读卡器,其具有针对例如存储棒(Memory Stick)、压缩闪存(Compact Flash)、智能媒体(Smart Media)、SD卡和多媒体卡等的所有现有存储卡的插槽。An example is a DVD player with a USB interface for connecting peripherals such as cameras. Instead of a camera, a memory card reader can also be connected to a DVD player. There are already universal card readers that have slots for all existing memory cards such as Memory Stick, Compact Flash, Smart Media, SD Card and MultiMediaCard.

USB兼容设备总是标有USB类标签。USB类描述了具有类似属性或服务的一组设备或接口。大容量存储设备类是USB类之一。USB compliant devices are always marked with the USB class label. A USB class describes a group of devices or interfaces with similar attributes or services. The mass storage device class is one of the USB classes.

大容量存储设备类支持两种主要的接口协议,即仅批量(Bulk-Only)传输和控制/批量/中断(CBI)传输。CBI被证明只与全速软盘驱动一起使用。CBI不应该用于高速设备或除了软盘驱动之外的设备中。为了与存储卡/棒进行数据传输,提供了仅批量传输协议。The mass storage device class supports two main interface protocols, namely bulk-only (Bulk-Only) transfer and control/bulk/interrupt (CBI) transfer. CBI is only certified for use with full-speed floppy drives. CBI should not be used on high-speed devices or devices other than floppy disk drives. For data transfer to and from memory cards/sticks, a bulk-only transfer protocol is provided.

USB兼容设备支持即插即用属性,该属性也被称为生活插入(lifeinsertion)属性。当插入USB设备时,将存在由该USB硬件产生的中断,因此通知了USB主机控制器。类似地,当拔出USB设备时,将由该USB硬件产生另一个中断,将拔出事件以信号通知USB主机控制器。A USB compatible device supports a plug-and-play attribute, which is also called a life insertion (lifeinsertion) attribute. When a USB device is plugged in, there will be an interrupt generated by the USB hardware, thus notifying the USB host controller. Similarly, when a USB device is unplugged, another interrupt will be generated by the USB hardware, signaling the unplug event to the USB host controller.

备有USB接口的DVD播放器的应用软件利用仅批量接口协议来支持USB大容量存储设备类。在该类下主要存在两类设备,即U盘(USBthumb-drive)和USB存储卡读卡器。由于U盘是独立的设备,所以其更易于管理;如果用户希望访问另一个U盘的内容,则他必须执行拔出和插入顺序。Application software for DVD players equipped with a USB interface supports the USB mass storage device class using a bulk-only interface protocol. There are mainly two types of devices under this category, namely U disk (USB thumb-drive) and USB memory card reader. Since the USB stick is an independent device, it is easier to manage; if the user wishes to access the contents of another USB stick, he has to perform an unplug and plug sequence.

不利地,对于USB存储卡读卡器,不是这种情况;利用X-In-1存储卡读卡器,为了改变新的存储卡,并不需要拔出&插入存储卡读卡器。在这种情况下,USB主机控制器将不会被告知设备状态的改变,因此它不执行目录/文件的扫描以再次收集内容表(即不会发生内容表的刷新)。Unfortunately, this is not the case with USB memory card readers; with the X-In-1 memory card reader, there is no need to unplug & insert the memory card reader in order to change a new memory card. In this case, the USB host controller will not be notified of the device state change, so it does not perform a directory/file scan to collect the table of contents again (ie no refresh of the table of contents occurs).

情况更糟的是,在插入事件中缓冲了卷(volume)信息(包含目录和文件),并且由于播放器不知道存储卡的拆卸,所以不会清除这些缓冲的信息。这意味着即使先前插入的存储卡从存储卡读卡器拆卸了,用户仍然可以导航它的目录/文件列表,而这是令人混乱的且不希望的。To make matters worse, volume information (containing directories and files) is buffered on insert events, and since the player is unaware of memory card removal, this buffered information is not cleared. This means that even if a previously inserted memory card is removed from the memory card reader, the user can still navigate its directory/file listing, which is confusing and undesirable.

在存储卡的目录/文件信息的回放或扫描期间,当不能够从设备读取任何数据时,播放器会由于错误状态而混乱且发生阻碍,并且通常它将会继续等待,直到它最终超时为止。During playback or scanning of the memory card's directory/file information, when unable to read any data from the device, the player will panic and block with an error condition, and usually it will continue to wait until it eventually times out .

发明内容Contents of the invention

为了克服上述问题,本发明的总体思想是一种管理存储卡插入或拔出读卡器的方法,定期地扫描存储卡读卡器的至少一个插槽以发现存储卡的存在,并且如果检测到插入的卡,则将其寄存在设备的寄存部分。In order to overcome the above-mentioned problems, the general idea of the present invention is a method for managing the insertion or removal of a memory card into or out of a card reader, periodically scanning at least one slot of the memory card reader for the presence of a memory card, and if detected inserted card, store it in the storage section of the device.

包括USB主机控制器的中央设备执行轮询方法,以便确保检测到存储卡的插入/拆卸。A central device including a USB host controller implements a polling method in order to ensure detection of memory card insertion/removal.

在插入的存储卡上的文件的回放期间,可以中断该轮询方法。在扫描存储卡的目录期间,也可以中断该轮询方法。总之,如果在回放和盘扫描引擎中执行轮询,则这是有利的。This polling method can be interrupted during playback of files on the inserted memory card. The polling method can also be interrupted during the scanning of the contents of the memory card. In summary, it is advantageous if polling is performed in the playback and disc scan engines.

所述方法是USB大容量存储类-仅批量传输规范的扩展。The method is an extension of the USB Mass Storage Class-Bulk Transfer Only specification.

对于在根据本发明的方法中使用的设备,有利地所述设备包括发送装置,用于定期地通过总线连接来发送控制命令,扫描存储卡读卡器的至少一个插槽以发现存储卡的存在,并且包括寄存装置,用于在寄存部分寄存插入的存储卡的存在。For the device used in the method according to the invention, advantageously said device comprises sending means for periodically sending control commands via the bus connection, scanning at least one slot of a memory card reader for the presence of a memory card , and includes registration means for registering the presence of the inserted memory card in the registration part.

从各个从属权利要求中,其它有利实施例是显而易见的。Further advantageous embodiments are evident from the respective dependent claims.

下面列出回放和盘扫描引擎的其它有利实施例:Other advantageous embodiments of the playback and disc scan engine are listed below:

I.在文件扫描阶段期间:当在从存储卡中读取文件信息时发生错误时,则认为拆卸了存储卡。擦除属于该存储卡的所有信息。I. During the file scanning phase: When an error occurs while reading file information from the memory card, the memory card is considered to be removed. Erases all information belonging to the memory card.

II.在回放阶段期间:当在从存储卡读取用于回放的数据时发生错误时,则认为拆卸了存储卡。擦除属于该存储卡的所有信息。II. During playback phase: The memory card is considered to be removed when an error occurs while reading data from the memory card for playback. Erases all information belonging to the memory card.

III.在空闲阶段期间:当应用程序空闲时,周期地对存储卡的校验和进行检查。当在从存储器读取用于计算校验和的数据时发生错误时,则认为拆卸了存储卡。擦除属于该存储卡的所有信息。III. During the idle phase: when the application is idle, the checksum of the memory card is checked periodically. The memory card is considered to be removed when an error occurs while reading the data used to calculate the checksum from the memory. Erases all information belonging to the memory card.

附图说明Description of drawings

将参考附图更详细地对本发明的示范实施例进行描述,附图示出了:Exemplary embodiments of the invention will be described in more detail with reference to the accompanying drawings, which show:

图1是通过USB总线连接彼此相连的DVD播放器和外部存储卡读卡器;以及Figure 1 is a DVD player and an external memory card reader connected to each other via a USB bus connection; and

图2是在DVD播放器中运行的、用于管理存储卡插入存储卡读卡器或从存储卡读卡器拆卸的软件的状态图。Figure 2 is a state diagram of software running in a DVD player for managing the insertion and removal of a memory card into or from a memory card reader.

具体实施方式Detailed ways

在图1中,参考数字10表示DVD播放器。用参考数字11表示外部存储卡读卡器。外围的存储卡读卡器11和DVD播放器10通过USB总线连接彼此相连。In FIG. 1, reference numeral 10 denotes a DVD player. An external memory card reader is indicated by reference numeral 11 . The peripheral memory card reader 11 and DVD player 10 are connected to each other through a USB bus connection.

外部的存储卡读卡器被认为具有用于不同类型存储卡的多个插槽12。当前,市场上有以下不同类型的存储卡:存储棒、多媒体卡、SD卡、智能媒体卡和压缩闪存卡。这些卡具有不同的形式和大小以及不同类型的连接盘(land)。因此,为了能够处理所有这些卡,读卡器11备有如图1所示的不同大小的多个插槽12。External memory card readers are known to have multiple slots 12 for different types of memory cards. Currently, there are different types of memory cards on the market: memory sticks, multimedia cards, SD cards, smart media cards and compact flash cards. These cards come in different shapes and sizes and different types of lands. Therefore, in order to be able to handle all these cards, the card reader 11 is provided with a plurality of slots 12 of different sizes as shown in FIG. 1 .

USB使用分时串行数据流。寻址方案允许最多127个设备与总线相连。多卡读卡器只具有一个分配给它的地址。总线上只有一个主动设备,这通常是PC。主动设备以一毫秒的固定间隔轮询所有相连的外围设备。每个外围设备通过在该1ms的帧内在分配给它的时间处将其数据置于时间复用的总线上,来作出响应。USB uses a time-sharing serial data stream. The addressing scheme allows up to 127 devices to be connected to the bus. A multi-card reader has only one address assigned to it. There is only one active device on the bus, which is usually the PC. The active device polls all connected peripherals at a fixed interval of one millisecond. Each peripheral device responds by placing its data on the time-multiplexed bus at its allotted time within the lms frame.

在根据本发明在DVD播放器10和读卡器11之间具有点到点的连接的应用中,DVD播放器被配置为主动设备,用于总线管理。In an application according to the invention with a point-to-point connection between a DVD player 10 and a card reader 11, the DVD player is configured as an active device for bus management.

为了简化存储卡读取的处理,可以规定一次只有一个存储卡可以被插入读卡器。In order to simplify the processing of memory card reading, it can be provided that only one memory card can be inserted into the card reader at a time.

以1ms的固定间隔轮询读卡器并不意味着如果DVD播放器未请求读操作,则读卡器在线路上放置数据。通常DVD播放器调用完整文件(即选择的静态画面或音频文件)的读操作。在请求了该读操作之后,读卡器将其数据放置在线路上,直到传输了完整的文件为止。当读卡器处于空闲状态时,则在完成了读操作之后,没有要传输的数据。Polling the reader at a fixed interval of 1ms does not mean that the reader puts data on the wire if the DVD player does not request a read operation. Usually a DVD player invokes a read operation of the complete file (ie selected still picture or audio file). After requesting this read operation, the reader puts its data on the wire until the complete file is transferred. When the reader is idle, there is no data to transmit after the read operation is complete.

每个USB外围设备需要其自身类的驱动器。如在教导条款(consistory clause)中所述的,备有USB接口的DVD播放器10利用仅批量接口协议来支持USB大容量存储设备类。适当的低级驱动器被安装在DVD播放器10上作为其软件的集成部分,或者在购买时与多卡读卡器11一起购买该驱动器。在这种情况下,用户必须安装该驱动器。Each USB peripheral requires its own class of drivers. As stated in the constitution clause, the USB-equipped DVD player 10 supports the USB mass storage device class with a bulk-only interface protocol. A suitable low-level driver is installed on the DVD player 10 as an integral part of its software, or the driver is purchased together with the multi-card reader 11 at the time of purchase. In this case, the user must mount the driver.

接下来,结合图2来解释使用读卡器11的低级驱动器的应用软件的结构。Next, the structure of the application software using the low-level driver of the card reader 11 is explained with reference to FIG. 2 .

USB应用软件是具有7个状态和8个状态变量的状态机。图2示出了该状态图。在图2中,用圆圈表示不同的状态。用虚线箭头示出了状态变换。以大写字母沿相应虚线箭头示出了引起变换的状态变量。接下来,描述不同的状态。The USB application software is a state machine with 7 states and 8 state variables. Figure 2 shows this state diagram. In Fig. 2, the different states are indicated by circles. State transitions are shown with dashed arrows. The state variables causing the transition are shown in capital letters along the corresponding dashed arrows. Next, the different states are described.

USB_ReadyUSB_Ready

在给DVD播放器通电之后但是没有连接USB外围设备时,进入该状态。如果连接了USB设备,则USB硬件产生中断,并且在服务程序中,产生USB_PLUGIN消息,使得变换到USB_Enumeration状态。This state is entered after the DVD player is powered on but no USB peripherals are connected. If a USB device is connected, the USB hardware generates an interrupt, and in the service program, generates a USB_PLUGIN message, causing a transition to the USB_Enumeration state.

USB_EnumerationUSB_Enumeration

总线枚举的过程是识别并给附着到总线的设备分配唯一地址的活动。如果检测到支持的USB设备(USB读卡器/U盘),则发送USB_SUPPORTED_DEVICE_FOUND消息,并且变换到USB_Library_Scanning状态。然后用户接口UI将显示消息“扫描文件”。The process of bus enumeration is the activity of identifying and assigning unique addresses to devices attached to the bus. If a supported USB device (USB card reader/U disk) is detected, a USB_SUPPORTED_DEVICE_FOUND message is sent, and the state changes to USB_Library_Scanning. The user interface UI will then display the message "Scanning Files".

如果检测到未知的USB设备,则发送USB_UNKNOWN_DEVICE_FOUND消息,并且执行到USB_Enumeration_Fail状态的变换。UI将输出消息“卡出现问题”。If an unknown USB device is detected, a USB_UNKNOWN_DEVICE_FOUND message is sent and a transition to the USB_Enumeration_Fail state is performed. The UI will output the message "There is a problem with the card".

USB_Enumeration_FailUSB_Enumeration_Fail

如果在该状态中拔出USB设备,将触发外部中断,产生USB_READER_REMOVED消息,并且发生至USB_Reay状态的变换。由于发生该事件时读卡器未处于回放模式中,所以UI将显示“没有卡”消息或者“读卡器断开”消息。If the USB device is unplugged in this state, an external interrupt is triggered, a USB_READER_REMOVED message is generated, and a transition to the USB_Reay state occurs. Since the card reader is not in playback mode when this event occurs, the UI will display either a "no card" message or a "card reader disconnected" message.

USB_Lib_ScanningUSB_Lib_Scanning

当检测到所支持的多媒体文件(MMF)时,将发送USB_SUPPORTED_FORMAT消息,并且执行至USB_With_Supported_MMF状态的变换。When a supported multimedia file (MMF) is detected, a USB_SUPPORTED_FORMAT message will be sent and a transition to the USB_With_Supported_MMF state will be performed.

当检测到不支持的MMF文件时,发送USB_UNSUPPORTED_FORMAT消息,并且执行至USB_Without_Memory_Card状态的变换。When an unsupported MMF file is detected, a USB_UNSUPPORTED_FORMAT message is sent and a transition to the USB_Without_Memory_Card state is performed.

当未检测到与读卡器相连的存储卡时,产生USB_MEMORY_CARD_REMOVED消息,该消息引起至USB_Without_Memory_Card状态的变换。When no memory card connected to the card reader is detected, a USB_MEMORY_CARD_REMOVED message is generated, which causes a transition to the USB_Without_Memory_Card state.

如果在USB_Lib_Scanning状态拔出USB设备,则触发外部中断,并再次发送USB_READER_REMOVED消息,并且执行至USB_Ready状态的变换。UI将显示“没有卡”消息。If the USB device is pulled out in the USB_Lib_Scanning state, an external interrupt is triggered, and the USB_READER_REMOVED message is sent again, and the transition to the USB_Ready state is performed. The UI will display a "No Card" message.

USB_With_Supported_MMFUSB_With_Supported_MMF

如果在该状态下拆卸存储卡,则产生USB_MEMORY_CARD_REMOVED消息,同时变换至USB_Without_Memory_Card状态。UI将显示“没有卡”。If the memory card is removed in this state, a USB_MEMORY_CARD_REMOVED message is generated and the state changes to USB_Without_Memory_Card at the same time. The UI will display "No Card".

如果拔出USB设备,则触发外部中断,并且发送USB_READER_REMOVED消息,并变换至USB_Ready。由于当拆卸读卡器时未处于回放状态,所以UI将显示“没有卡”消息。If the USB device is pulled out, an external interrupt is triggered, and a USB_READER_REMOVED message is sent, and it changes to USB_Ready. Since it is not in playback when the card reader is removed, the UI will display a "no card" message.

USB_Without_MMFUSB_Without_MMF

如果拆卸存储卡,则发送USB_MEMORY_CARD_REMOVED消息,同时变换至USB_Without_Memory_Card状态。UI将显示“没有卡”。If the memory card is removed, a USB_MEMORY_CARD_REMOVED message is sent and the state changes to USB_Without_Memory_Card at the same time. The UI will display "No Card".

如果拔出USB设备,将触发外部中断,并再次发送USB_READER_REMOVED消息,同时变换至USB_Ready状态。UI将显示“没有卡”。If the USB device is pulled out, an external interrupt will be triggered, and the USB_READER_REMOVED message will be sent again, and it will change to the USB_Ready state. The UI will display "No Card".

USB_Without_Memory_CardUSB_Without_Memory_Card

如果拔出USB设备,则触发外部中断,并发送USB_READER_REMOVED消息,并且执行至USB_Ready状态的变换。UI将显示“没有卡”。If the USB device is pulled out, an external interrupt is triggered, a USB_READER_REMOVED message is sent, and a transition to the USB_Ready state is performed. The UI will display "No Card".

当插入存储卡,并且根据本发明的轮询方法检测到该事件时,发送USB_Memory_Card_Inserted消息,并执行至USB_Lib_Scanning状态的变换。UI输出“扫描文件”消息。When a memory card is inserted and the event is detected according to the polling method of the present invention, a USB_Memory_Card_Inserted message is sent and a transition to the USB_Lib_Scanning state is performed. The UI outputs a "scanning file" message.

总是执行轮询,即在除了USB_Ready状态之外的所有上述状态中执行轮询。例如,可以每隔100ms来执行轮询,即使是在DVD的回放期间。Polling is always performed, ie polling is performed in all the above states except the USB_Ready state. For example, polling may be performed every 100 ms, even during playback of a DVD.

对多卡读卡器的每个插槽12进行检查,检查存储卡状态的改变(拆卸一个卡或插入新卡)。为此,多卡读卡器针对每一个插槽具有至少一个寄存器,在其中指示出是否插入了卡。可以通过USB控制命令独立地读出这些寄存器。多卡读卡器的USB驱动器软件支持该操作。因此设备总是知道当前状态,并且不会向用户给出关于可用文件的“错误”状态信息。由于不再期待从已经拆卸的存储卡接收数据,所以在从插入的卡中回放多媒体文件期间,也是这种情况,即设备不会进入错误状态。Each slot 12 of the multi-card reader is checked for a change in the status of the memory card (removal of a card or insertion of a new card). For this purpose, the multi-card reader has at least one register for each slot, in which it is indicated whether a card is inserted. These registers can be read independently via USB control commands. The USB driver software for multi-card readers supports this operation. So the device is always aware of the current status and will not give the user "wrong" status information about available files. This is also the case during playback of multimedia files from an inserted card, since data reception from a memory card that has been removed is no longer expected, i.e. the device does not enter an error state.

下面列出状态变量并简短地解释:The state variables are listed below and briefly explained:

USB_PLUGINUSB_PLUGIN

当连接USB设备时发送该消息。This message is sent when a USB device is connected.

USB_READER_REMOVEDUSB_READER_REMOVED

只要USB读卡器或设备从USB端口断开,则触发中断,并发送USB_READER_REMOVED消息。Whenever the USB card reader or device is disconnected from the USB port, an interrupt is triggered and a USB_READER_REMOVED message is sent.

USB_SUPPORTED_DEVICE_FOUNDUSB_SUPPORTED_DEVICE_FOUND

当成功地检测到USB存储设备(即USB读卡器或U盘)时,发送该消息。This message is sent when a USB storage device (ie, a USB card reader or a USB flash drive) is successfully detected.

USB_UNKNOWN_DEVICE_FOUNDUSB_UNKNOWN_DEVICE_FOUND

当未检测到USB存储设备(即USB读卡器或U盘)时,发送该消息。This message is sent when no USB storage device (ie USB card reader or USB flash drive) is detected.

USB_SUPPORTED_FORMAT_FOUNDUSB_SUPPORTED_FORMAT_FOUND

如果在存储卡中找到所支持的多媒体文件(即MP3/JPEG),则发送该消息。This message is sent if a supported multimedia file (ie MP3/JPEG) is found in the memory card.

USB_UNSUPPORTED_FORMAT_FOUNDUSB_UNSUPPORTED_FORMAT_FOUND

如果在存储卡中找到不支持的多媒体文件(即MP3/JPEG),则发送该消息。This message is sent if an unsupported multimedia file (ie MP3/JPEG) is found in the memory card.

USB_MEMORY_CARD_INSERTEDUSB_MEMORY_CARD_INSERTED

当所解释的USB轮询方法检测到插入了存储卡时,发送该消息。This message is sent when the explained USB polling method detects that a memory card is inserted.

USB_MMORY_CARD_REMOVEDUSB_MMORY_CARD_REMOVED

只要拆卸了存储卡,则发送该消息。This message is sent whenever the memory card is removed.

所述实施例的各种修改是可以的,并且落入所列权利要求的范围内。对于根据本发明的解决方案,不必需要多卡读卡器。此外,单卡读卡器也可以受益于本发明。在DVD播放器和读卡器之间不必需要USB连接。可以使用不同的总线连接,例如ATA/IDE或IEEE 1394。实施本发明的不必是DVD播放器。在如包括HDD刻录器、STB等的PC的一些其它CE设备中也可以使用相同的解决方案。Various modifications of the described embodiments are possible and fall within the scope of the following claims. For the solution according to the invention, a multi-card reader is not necessarily required. Additionally, single card readers can also benefit from the present invention. A USB connection is not necessarily required between the DVD player and the card reader. Different bus connections can be used, such as ATA/IDE or IEEE 1394. It is not necessary for a DVD player to implement the invention. The same solution can also be used in some other CE devices like PCs including HDD recorders, STBs etc.

Claims (10)

1.一种管理存储卡插入或拔出读卡器(11)的操作的方法,其中,读卡器(11)通过总线连接(13)与中央设备(10)相连,未将存储卡的插入或拔出操作报告给中央设备(10),1. A method for managing the operation of inserting or extracting a memory card into or out of a card reader (11), wherein the card reader (11) is connected to the central device (10) via a bus connection (13) without inserting the memory card or report the unplugging operation to the central device (10), 其特征在于,中央设备(10)定期地扫描存储卡读卡器(11)的至少一个插槽(12)以发现存储卡的存在,并且如果检测到插入的卡,则将其寄存在中央设备(10)的寄存部分。It is characterized in that the central device (10) periodically scans at least one slot (12) of the memory card reader (11) for the presence of a memory card, and if an inserted card is detected, registers it in the central device (10) the registered part. 2.根据权利要求1所述的方法,其中,读卡器(11)是中央设备(10)的外围设备。2. The method according to claim 1, wherein the card reader (11) is a peripheral device of the central device (10). 3.根据权利要求1或2所述的方法,其中,当在扫描操作期间检测到拆卸了存储卡时,删除存储卡的文件或内容目录。3. The method according to claim 1 or 2, wherein when the removal of the memory card is detected during the scanning operation, the file or content directory of the memory card is deleted. 4.根据权利要求1至3之一所述的方法,其中,当在扫描操作期间检测到拆卸了存储卡时,为用户产生声音/视觉的告警消息。4. The method according to one of claims 1 to 3, wherein an audible/visual warning message is generated for the user when removal of the memory card is detected during the scanning operation. 5.根据前述权利要求之一所述的方法,其中,总线连接(13)是串行总线连接,尤其是USB或ATA或IDE类型。5. Method according to one of the preceding claims, wherein the bus connection (13) is a serial bus connection, in particular of the USB or ATA or IDE type. 6.根据前述权利要求之一所述的方法,其中,寄存部分是中央设备(10)的存储器中的引导扇区的一部分。6. Method according to one of the preceding claims, wherein the registered part is part of a boot sector in a memory of the central device (10). 7.一种在根据权利要求1至6之一所述的方法中使用的设备,包括总线连接(13),用于使设备与存储卡读卡器(11)相连,其特征在于,所述设备包括:发送装置,用于定期地通过所述总线连接(13)发送控制命令,用于扫描存储卡读卡器(11)的至少一个插槽(12)以发现存储卡的存在;以及寄存装置,用于在寄存部分中寄存插入的存储卡的存在。7. A device for use in the method according to one of claims 1 to 6, comprising a bus connection (13) for connecting the device to a memory card reader (11), characterized in that the The device comprises: sending means for periodically sending control commands via said bus connection (13) for scanning at least one slot (12) of a memory card reader (11) for the presence of a memory card; and registering Means for registering the presence of the inserted memory card in the register section. 8.根据权利要求7所述的设备,包括删除装置,用于当在扫描操作期间检测到拆卸了存储卡时,删除存储在设备的存储器中的存储卡的文件信息或内容目录。8. The apparatus according to claim 7, comprising deleting means for deleting the file information or the contents directory of the memory card stored in the memory of the apparatus when it is detected that the memory card is detached during the scanning operation. 9.根据权利要求7或8所述的设备,其中,寄存部分是设备的存储器中的引导扇区的一部分。9. A device as claimed in claim 7 or 8, wherein the registered portion is part of a boot sector in a memory of the device. 10.根据权利要求7至9之一所述的设备,其中,总线部分(13)是串行总线连接,尤其是USB或ATA或IDE类型。10. Device according to one of claims 7 to 9, wherein the bus part (13) is a serial bus connection, in particular of the USB or ATA or IDE type.
CNB2005800166453A 2004-05-28 2005-05-14 Method for managing the plug-in or removal of a memory card into or from a card reader and apparatus for use in said method Expired - Fee Related CN100520756C (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
EP04012736 2004-05-28
EP04012736.7 2004-05-28
EP04292800.2 2004-11-26

Publications (2)

Publication Number Publication Date
CN1981274A true CN1981274A (en) 2007-06-13
CN100520756C CN100520756C (en) 2009-07-29

Family

ID=38131598

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005800166453A Expired - Fee Related CN100520756C (en) 2004-05-28 2005-05-14 Method for managing the plug-in or removal of a memory card into or from a card reader and apparatus for use in said method

Country Status (1)

Country Link
CN (1) CN100520756C (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436425A (en) * 2011-10-21 2012-05-02 珠海全志科技股份有限公司 Hot-drawing method and implementation device for mobile storage equipment
CN106155945A (en) * 2015-04-28 2016-11-23 安富科技股份有限公司 Notification method of media source hot-plug real-time notification system of multimedia device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436425A (en) * 2011-10-21 2012-05-02 珠海全志科技股份有限公司 Hot-drawing method and implementation device for mobile storage equipment
CN102436425B (en) * 2011-10-21 2015-04-22 珠海全志科技股份有限公司 Hot drawing method for removable storage device and implementation device
CN106155945A (en) * 2015-04-28 2016-11-23 安富科技股份有限公司 Notification method of media source hot-plug real-time notification system of multimedia device
CN106155945B (en) * 2015-04-28 2020-03-06 安富科技股份有限公司 A notification method for a real-time notification system for hot-plugging a media source of a multimedia device

Also Published As

Publication number Publication date
CN100520756C (en) 2009-07-29

Similar Documents

Publication Publication Date Title
US7921244B2 (en) Data sharing and transfer systems and methods
JP3565686B2 (en) Computer storage device and conversion system
US20050156037A1 (en) Automatic drive icon assignment by media type in single slot USB card readers
US7007127B2 (en) Method and related apparatus for controlling transmission interface between an external device and a computer system
US8185673B2 (en) Information processing apparatus, and method for controlling the same
CN100412836C (en) Method and system for controlling host computer by external device through universal serial bus
US20030038177A1 (en) Passive flash media adapter system
US7797398B2 (en) Communication system, and peripheral device having trigger generating device and computer program product that monitors whether a trigger has been generated
CN113608790A (en) Linux system based self-adaptive management method and system for serial device and storage medium
CN100504744C (en) fast storage system
EP1749268B1 (en) Method for managing the plug-in or removal of a memory card into or from a card reader and apparatus for use in said method
US8051221B2 (en) Communication system, information processing device, peripheral device and communication method
CN100520756C (en) Method for managing the plug-in or removal of a memory card into or from a card reader and apparatus for use in said method
JP2001307038A (en) Memory card with multi-interface and its conversion adaptor
JP2004213604A (en) Plug-and-play connection structure incorporating storage module in peripheral equipment and method for the same
JP2000305676A (en) Live wire insertable and removable interface and external device
US20090240846A1 (en) Universal serial bus mass storage device asynchronous file and file system update while connected to a pc or other device
US20070215701A1 (en) Information processing device that writes data to an attachable/detachable recording medium and control method thereof
JP4618559B2 (en) Communication system and peripheral device used therefor
JP2007265303A (en) Computer program
JP2007265302A (en) Communication system and peripheral device used therefor
JPH11191148A (en) Device and method for function expansion of pc card system
JP2007265299A (en) Communication system and peripheral device used therefor
JP2001006347A (en) Information processing system freely attachably and detachably accepting external storage device unit, control method therefor and external storage device unit
JP2011103090A (en) Communication apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090729

Termination date: 20130514