Page 1 of 1

Any Samples for Interfacing Smart Card with At91sam7x

Posted: Wed Jun 12, 2013 2:32 pm
by moh.kermani
Hi All,
It's two weeks that I'm trying to interface A Java Card to at91sam7x256 on ChibiOS, but there's no hope.It seems impossible and there's no sample code/project on the Web. Can Anyone help me?
This is Serial Config:

Code: Select all

static const SerialConfig smartcard_config = { 9600, AT91C_US_USMODE_ISO7816_0
      | AT91C_US_CLKS_CLOCK | AT91C_US_NBSTOP_1_BIT | AT91C_US_PAR_EVEN
      | AT91C_US_CHRL_8_BITS | AT91C_US_OVER |AT91C_US_CKLO};


Note that card is java card, T0 and baud rate is 9600.

Re: Any Samples for Interfacing Smart Card with At91sam7x

Posted: Wed Jun 12, 2013 6:10 pm
by Giovanni
Do you receive the ATR sequence or nothing at all? I would also verify possible connections problem, card clocks, card power, card reset sequence etc.

Giovanni

Re: Any Samples for Interfacing Smart Card with At91sam7x

Posted: Fri Jul 26, 2013 10:15 pm
by moh.kermani
Thanks Giovanni,
Forum does not send email updates and I thought no one knows.
I do not receive ATR sequence also. I've directly connected smart card pins to the Chip, as it is told in datasheet.

Re: Any Samples for Interfacing Smart Card with At91sam7x

Posted: Sat Jul 27, 2013 8:40 am
by Giovanni
Hi,

You have to subscribe to the forums you are interested in, then you will receive emails.

Does the card actually transmit the ATR sequence after the reset? Check with an oscilloscope or a logic analyzer.

Giovanni