CN100520756C - 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
CN100520756C
CN100520756C CNB2005800166453A CN200580016645A CN100520756C CN 100520756 C CN100520756 C CN 100520756C CN B2005800166453 A CNB2005800166453 A CN B2005800166453A CN 200580016645 A CN200580016645 A CN 200580016645A CN 100520756 C CN100520756 C CN 100520756C
Authority
CN
China
Prior art keywords
card
usb
equipment
card reader
memory card
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.)
Expired - Fee Related
Application number
CNB2005800166453A
Other languages
Chinese (zh)
Other versions
CN1981274A (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
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The proposal relates to the handling of the insertion and removal of a memory card into a memory card reader (11) that is itself connected to a central device (10). The insertion and removal of a memory card from a memory card reader (11) is not reported to the central device (10) via the bus connection (13), which can be a USB bus connection. This causes a problem that the user and the central device (10), e.g. a DVD player can be confused. This will happen namely if the memory card is removed from the card reader (11). The content or file directory for this card however, is shown on the UI of the player despite of that the card has been removed. When the user tries to access the file from this file or content directory some read error may occur. To overcome this problem it is proposed to implement a polling method in the central device (10). At regular intervals, e. g. 100 ms a player (10) will send control commands for reading the status of the various slots (12) of the memory card reader (11).

Description

The managed storage card inserts or extracts the equipment that uses in the method for card reader and the described method
Technical field
The present invention relates to handle to data access as the mass-memory unit of storage card and so on.
Background technology
In field of personal computers, known serial bus communication standard is called as the USB=USB (universal serial bus).Known different bus standard.The USB of version 1.1 supports two rate modes, i.e. 12Mbit/s and 1.5Mbit/s.The USB of version 2 .0 supports the high speed data transfer of maximum 480Mbit/s.Most of peripherals of current personal computer as printer, scanner, keyboard, mouse, digital camera etc., all has USB interface.USB interface not only is used for the PC field.Now, existing product from the CE field also has USB interface.
An example is a DVD player, has USB interface and links to each other with peripherals as camera and so on being used for.Replace camera, memory card reader also can link to each other with DVD player.The all-power acard device has been arranged, and it has the slot at all existing storage cards of for example memory stick (Memory Stick), compact flash (Compact Flash), smart media (Smart Media), SD card and multimedia card etc.
The USB compatible equipment always indicates USB class label.The USB class description have the one group of equipment or an interface of like attribute or service.Mass storage device class is one of USB class.
Mass storage device class is supported two kinds of main interface protocols, i.e. only (Bulk-Only) transmission and control/bulk/interrupt (CBI) transmission in batches.CBI only is proved to be and uses with the full speed disk drive.CBI should not be used for high-speed equipment or the equipment except disk drive.In order to carry out data transmission, provide only bulk transfer protocol with memory cards/sticks.
The USB compatible equipment is supported the plug and play attribute, and this attribute is also referred to as life and inserts (lifeinsertion) attribute.When inserting USB device, will there be the interruption that produces by this USB hardware, therefore notified usb host controller.Similarly, when extracting USB device, will produce another interruption by this USB hardware, the incident of will extracting is with the signalisation usb host controller.
Have USB interface DVD player the application software utilization only in batches interface protocol support the USB mass storage device class.At such main down two kind equipments, i.e. USB flash disk (USBthumb-drive) and USB memory card reader of existing.Because USB flash disk is a separate equipment, so it is easier to management; If the user wishes to visit the content of another USB flash disk, then he must carry out and extract and insertion sequence.
Unfriendly, for the USB memory card reader, not this situation; Utilize the X-In-1 memory card reader,, do not need to extract in order to change new storage card; Insert memory card reader.In this case, usb host controller will can not be apprised of the change of equipment state, so it does not carry out the scanning of directories/files to collect contents table (promptly refreshing of contents table can not taken place) once more.
Worse off be, in the insertion incident, cushioned volume (volume) information (comprising catalogue and file), and since player do not know the dismounting of storage card, so can not remove the information of these bufferings.Dismantled from memory card reader even this means the previous storage card that inserts, still can navigate its directories/files tabulation of user, and this is to make us chaotic and undesirable.
In the playback or the scan period of the directories/files information of storage card, when can not slave unit reading any data, player can be because error condition and chaotic and hinder, and it will continue to wait for usually, till it is finally overtime.
Summary of the invention
In order to overcome the problems referred to above, overall thought of the present invention is the method that a kind of managed storage card inserted or extracted card reader, at least one slot that scans memory card reader termly to be finding existing of storage card, and if detect the card of insertion, then it is registered in the registration section of equipment.
The central equipment that comprises usb host controller is carried out polling method, so that guarantee to detect the insertion/dismounting of storage card.
During the playback of the file on the storage card that inserts, can interrupt this polling method.During the catalogue of scanning storage card, also can interrupt this polling method.In a word, carry out poll in the engine if retouch in playback and sweeping, then this is favourable.
Described method is USB mass storage class-only expansion of bulk transfer standard.
For the equipment of realizing the method according to this invention, advantageously described equipment comprises dispensing device, be used for connecting to come transmitting control commands by bus termly, at least one slot of scanning memory card reader is to find existing of storage card, and comprise LD device, be used for existence at the storage card of registration section registration insertion.
From each dependent claims, other advantageous embodiment is conspicuous.
List playback and sweeping below and retouch other advantageous embodiment of engine:
I. during the file scan stage: when when from storage card, reading fileinfo, making a mistake, then think and dismantled storage card.Wipe all information that belong to this storage card.
II. during the playback phase: when when reading the data that are used for playback, making a mistake, then think and dismantled storage card from storage card.Wipe all information that belong to this storage card.
III. during the idle phase: when application program is idle, periodically to the verification of storage card with check.When take from memory read in calculation check and data the time when making a mistake, then think and dismantled storage card.Wipe all information that belong to this storage card.
Description of drawings
To be described example embodiment of the present invention in greater detail with reference to the attached drawings, accompanying drawing shows:
Fig. 1 connects DVD player and the exterior storage card reader that is connected with each other by usb bus; And
Fig. 2 moves in DVD player, is used for that the managed storage card inserts memory card reader or from the constitutional diagram of the software of memory card reader dismounting.
Embodiment
In Fig. 1, reference number 10 expression DVD player.Represent the exterior storage card reader with reference number 11.Peripheral memory card reader 11 and DVD player 10 are connected by usb bus and are connected with each other.
Outside memory card reader is considered to have a plurality of slots 12 that are used for dissimilar storage cards.Current, following dissimilar storage card is arranged: memory stick, multimedia card, SD card, smart media card and compact flash on the market.These jigs have different forms and size and dissimilar terminal pads (land).Therefore, in order to handle all these cards, card reader 11 has a plurality of slots 12 of different sizes as shown in Figure 1.
USB uses the timesharing serial data stream.Addressing scheme allows maximum 127 equipment to link to each other with bus.Many card readers only have an address of distributing to it.Have only an active devices on the bus, this is PC normally.Active devices is with all peripherals that link to each other of one millisecond fixed intervals poll.Each peripherals places its data on the time-multiplexed bus by the time place that is distributing to it in the frame of this 1ms, responds.
In the application of the connection that has point-to-point according to the present invention between DVD player 10 and card reader 11, DVD player is configured to active devices, is used for bus management.
In order to simplify the processing that storage card reads, can stipulate once to have only a storage card can be inserted into card reader.
With the fixed intervals poll card reader of 1ms and do not mean that if DVD player is not asked read operation, then card reader is placed data on the line.The read operation that common DVD player is called complete file (i.e. tableaux of Xuan Zeing or audio file).After having asked this read operation, card reader is placed its data on the line, till having transmitted complete file.When card reader is in idle condition, then after having finished read operation, the data that will transmit not.
Each USB peripherals needs the driver of himself class.As described in instruction clause (consistory clause), the DVD player 10 that has a USB interface only utilizes in batches interface protocol to support the USB mass storage device class.Suitable low-level driver is installed on the DVD player 10 integration section as its software, perhaps buys this driver with many card readers 11 when buying.In this case, the user must install this driver.
Next, explain the structure of the application software of the low-level driver of using card reader 11 in conjunction with Fig. 2.
The USB application software is the state machine with 7 states and 8 state variables.Fig. 2 shows this constitutional diagram.In Fig. 2, represent different states with circle.The with dashed lines arrow shows state transformation.Show the state variable that causes conversion along corresponding dotted arrow with capitalization.Next, different states is described.
USB_Ready
When after to the DVD player energising, still not connecting USB peripherals, enter this state.If connected USB device, then USB hardware produces and interrupts, and in service routine, produces USB_PLUGIN message, the feasible USB_Enumeration state that transforms to.
USB_Enumeration
The process that bus is enumerated is the activity of discerning and giving the devices allocation unique address that is attached to bus.If detect the USB device (USB card reader/USB flash disk) of support, then send USB_SUPPORTED_DEVICE_FOUND message, and transform to the USB_Library_Scanning state.User interface UI is with display message " scanning document " then.
If detect unknown USB device, then send USB_UNKNOWN_DEVICE_FOUND message, and carry out the conversion of USB_Enumeration Fail state.UI is with output message " card goes wrong ".
USB_Enumeration_Fail
If in this state, extract USB device, will trigger external interrupt, produce USB_READER_REMOVED message, and take place to the conversion of USB_Reay state.Because card reader is not in the playback mode during this incident of generation, so UI will show " not card " message or " card reader disconnection " message.
USB_Lib_Scanning
During the multimedia file of supporting when detecting (MMF), will send USB_SUPPORTED_FORMAT message, and carry out to the conversion of USB_With_Supported_MMF state.
When detecting unsupported MMF file, send USB_UNSUPPORTED_FORMAT message, and carry out to the conversion of USB_Without_Memory_Card state.
When not detecting with storage card that card reader links to each other, produce USB_MEMORY_CARD_REMOVED message, this message causes to the conversion of USB_Without_Memory_Card state.
If th extracts USB device at the USB_Lib_Scanning state, then trigger external interrupt, and send USB_READER_REMOVED message once more, and carry out to the conversion of USB_Ready state.UI will show " not card " message.
USB_With_Supported_MMF
If under this state, dismantle storage card, then produce USB_MEMORY_CARD_REMOVED message, be converted into the USB_Without_Memory_Card state simultaneously.UI will show " not card ".
If extract USB device, then trigger external interrupt, and send USB_READER_REMOVED message, and be converted into USB_Ready.Owing to be not in playback state when the dismounting card reader, UI will show " not card " message.
USB_Without_MMF
If the dismounting storage card then sends USB_MEMORY_CARD_REMOVED message, be converted into the USB_Without_Memory_Card state simultaneously.UI will show " not card ".
If extract USB device, will trigger external interrupt, and send USB_READER_REMOVED message once more, be converted into the USB_Ready state simultaneously.UI will show " not card ".
USB_Without_Memory_Card
If extract USB device, then trigger external interrupt, and send USB_READER_REMOVED message, and carry out to the conversion of USB_Ready state.UI will show " not card ".
When inserting storage card, and polling method according to the present invention sends USB_Memory_Card_Inserted message, and carries out to the conversion of USB_Lib_Scanning state when detecting this incident.UI exports " scanning document " message.
Always carry out poll, promptly in all the above-mentioned states except the USB_Ready state, carry out poll.For example, can carry out poll, even during the playback of DVD every 100ms.
Each slot 12 to many card readers is checked, checks the change (dismantle a card or insert neocaine) of storage card state.For this reason, many card readers have at least one register at each slot, indicate therein whether to have inserted card.Can read these registers independently by the USB control command.The usb driver software of many card readers is supported this operation.Therefore equipment is always known current state, and can not provide about file available " mistake " status information to the user.Because no longer expect to receive data from the storage card of having dismantled, so during playback of multimedia files from the card that inserts, be this situation, promptly equipment can not enter error condition yet.
List state variable and explanation tout court below:
USB_PLUGIN
When connecting USB device, send this message.
USB_READER_REMOVED
As long as USB card reader or equipment disconnect from USB port, then trigger and interrupt, and send USB_READER_REMOVED message.
USB_SUPPORTED_DEVICE_FOUND
When successfully detecting USB memory device (being USB card reader or USB flash disk), send this message.
USB_UNKNOWN_DEVICE_FOUND
When not detecting USB memory device (being USB card reader or USB flash disk), send this message.
USB_SUPPORTED_FORMAT_FOUND
If in storage card, find the multimedia file of being supported (being MP3/JPEG), then send this message.
USB_UNSUPPORTED_FORMAT_FOUND
If in storage card, find unsupported multimedia file (being MP3/JPEG), then send this message.
USB_MEMORY_CARD_INSERTED
When the USB polling method of being explained detects when having inserted storage card, send this message.
USB_MMORY_CARD_REMOVED
As long as dismantled storage card, then send this message.
The various modifications of described embodiment are fine, and fall in the scope of listed claim.For solution according to the present invention, needn't need many card readers.In addition, single card reader also can be benefited from the present invention.Between DVD player and card reader, needn't need USB to connect.Can use different buses to connect, for example ATA/IDE or IEEE 1394.Implement the DVD player that needs not to be of the present invention.As comprise in some other CE equipment of PC of HDD recorder, STB etc. and also can use identical solution.

Claims (9)

1. a managed storage card inserts or extracts the method for operating of card reader (11), and wherein, card reader (11) connects (13) by bus and links to each other with central equipment (10), not with the insertion of storage card or extract operationral report to central equipment (10),
It is characterized in that, central equipment (10) in polling operation termly the one or more registers in card reader (11) send read request, described one or more registers are informed the state of slot (12), and
Insert if when carrying out described polling operation, detect card, then card is registered in the registration section of central equipment (10); And if during scan operation or playback operation, when carrying out described polling operation, detect card dismounting, then delete fileinfo and contents directory that this dismounting of storing in the storer of central equipment (10) blocks.
2. method according to claim 1 wherein, if detect the card dismounting, then generates sound/visual warning information for the user.
3. method according to claim 1 and 2, wherein, card reader (11) is the peripherals of central equipment (10).
4. method according to claim 1 and 2, wherein, it is that universal serial bus connects that bus connects (13), especially USB or ATA or IDE type.
5. method according to claim 1 and 2, wherein, registration section is the part of the boot sector in the storer of central equipment (10).
6. equipment of realizing method according to claim 1, comprise that bus connects (13), be used to make equipment to link to each other with memory card reader (11), it is characterized in that, described equipment comprises: dispensing device, be used for via described bus connect (13) polling operation termly the register in memory card reader (11) send read request, described register is informed the state of one or more slots (12); And delete device, be used for during polling operation or playback operation, when carrying out described polling operation, detect when described memory card reader has been dismantled storage card the fileinfo or the contents directory of the respective stored card that deletion is stored in the storer of equipment.
7. equipment according to claim 6 also comprises the device that is used to the user to generate sound/visual warning information.
8. according to claim 6 or 7 described equipment, also comprise the device that is used for inserting the existence of storage card in the registration section registration, wherein, registration section is the part of the boot sector in the storer of equipment.
9. according to claim 6 or 7 described equipment, wherein, bus portion (13) is that universal serial bus connects, especially 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 CN1981274A (en) 2007-06-13
CN100520756C true 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)

Families Citing this family (2)

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

Also Published As

Publication number Publication date
CN1981274A (en) 2007-06-13

Similar Documents

Publication Publication Date Title
US7007127B2 (en) Method and related apparatus for controlling transmission interface between an external device and a computer system
JP3565686B2 (en) Computer storage device and conversion system
US6993618B2 (en) Dual-mode flash storage exchanger that transfers flash-card data to a removable USB flash key-drive with or without a PC host
CN100412836C (en) Method for controlling host from device coupled thereto using universal serial bus and system thereof
US20090024764A1 (en) Tracking The Physical Location Of A Server In A Data Center
US8135871B2 (en) Computer system and control method of the same
JP5566054B2 (en) Information processing apparatus, information processing apparatus control method, and program
US20020156952A1 (en) Communication control apparatus, communication system and communication control method
US7568053B2 (en) USB composite device, USB communication system, and USB communication method
CN109164884B (en) Design method of hard disk backboard, hard disk backboard and server
CN103955441A (en) Equipment management system, equipment management method and IO (Input/Output) expansion interface
JP4343973B2 (en) Information processing apparatus and information processing method
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
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
KR20040074491A (en) Hot plug signal generation apparatus and method
CN101447982A (en) Storage emulator and method thereof
US7533205B2 (en) Control method and system of constructing raid configuration across multiple host bus adapters
US6892267B2 (en) Method for message transmission exploiting unused device addresses
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
CN107590049B (en) Data processing method based on independent operation mode and client
EP1524595B1 (en) Removable media device, host device, program and recording medium thereof
CN117708004A (en) Method for reading information of adapter cards with different specifications and substrate management control module
JPWO2006038260A1 (en) USB storage system and USB storage device
CN100375968C (en) Mobile data storage device for network

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