[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Stall due to babble when reading card ATR from CCID device using UHC
RE: Stall due to babble when reading card ATR from CCID device using UHCI
Mon, 7 Nov 2011 13:09:25 +0000
I'm fairly new to USB at this lower level, and I realized that I used the wrong
read API call. Since the ATR is of variable size I should've use the
grub_usb_bulk_read_extended() call. Reading less resulted in babble and reading
too much in a timeout. Using read_extended() worked fine.
Ales, I also downloaded your EHCI branch; any idea when/if it will support
Anyhow, thanks for your input!
From: address@hidden [mailto:address@hidden On Behalf Of Aleš Nesrsta
Sent: den 4 november 2011 22:21
To: The development of GNU GRUB
Subject: Re: Stall due to babble when reading card ATR from CCID device using
AFAIK, the babble is fatal bus error which should not normally occur, so if You
get it regularly, there is probably something wrong in protocol data /
parameters / request sent into device.
I expect that only reset of the device or some class-specific reset can help in
recovery. Try see into related CCID class specification or USB
1.1 specification for bubble recovery.
Unfortunately I don't know USB CCID class device protocol (and I have no time
to study it yet...), so I cannot help You more.
Lenthamre Johan píše v Čt 03. 11. 2011 v 10:04 +0000:
> When reading card ATR from a CCID device (RDR_to_PC_DataBlock), the bulk-in
> endpoint is stalled due to babble. I still get the complete ATR though. I've
> successfully issued other commands, such as PC_to_RDR_GetSlotStatus and read
> back the result ok. The reader is a 2.0 device plugged into a 1.1 controller
> using GRUB's UHCI driver. The TD status is 0x18500009; stall + babble. I am
> not really sure where to go from here or where to start looking. Any hints
> are appreciated.
> Clear halt doesn't solve the issue.
> Johan Lenthamre
> Software Engineer
> Command and Control Systems Division
> Security and Defence Solutions
> Telephone: +46 8 5808 4818
> Mobile: +46 73 437 4818
> Nettovägen 6
> SE-175 88 Järfälla
> This e-mail is private and confidential between the sender and the addressee.
> In the event of misdirection, the recipient is prohibited from using, copying
> or disseminating it or any information in it. Please notify the above of any
> such misdirection.
> Grub-devel mailing list
Grub-devel mailing list