Thanks. I use card reader in an embedded device and polling the card increases power consumption and makes power measure unstable in our hardware. Currenly I send SCSI commands 'INQUIRY' and 'TEST UNIT READY' to check the existence of certain card. Do you have any suggestion on how to check the card?
--- Alan Stern <[EMAIL PROTECTED]> wrote: > On Tue, 6 Apr 2004, Timmy Li wrote: > > > Is there any notifications when a card(eg. CF > card) > > is being inserted into a USB card reader? My main > > purpose is to know if the card is really there. > > Currently I use a user mode program to scan the > SCSI > > generic driver and send some SCSI commands to see > if > > the card is really there. I think this is very > ugly, :-( > > There is no notification. That is, the card reader > does not send any > message to the computer when a card is inserted. > The only way to find out > is for the computer to repeatedly ask the card > reader, as you are doing. > > Alan Stern > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux > Tutorials > Free Linux tutorial presented by Daniel Robbins, > President and CEO of > GenToo technologies. Learn everything from > fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > [EMAIL PROTECTED] > To unsubscribe, use the last form field at: > https://lists.sourceforge.net/lists/listinfo/linux-usb-devel __________________________________ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
