Any Samples for Interfacing Smart Card with At91sam7x

ChibiOS public support forum for topics related to the Atmel AT91SAM7x family of micro-controllers.
Post Reply
moh.kermani
Posts: 2
Joined: Wed Jun 12, 2013 2:26 pm

Any Samples for Interfacing Smart Card with At91sam7x

Post 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.
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Any Samples for Interfacing Smart Card with At91sam7x

Post 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
moh.kermani
Posts: 2
Joined: Wed Jun 12, 2013 2:26 pm

Re: Any Samples for Interfacing Smart Card with At91sam7x

Post 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.
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Any Samples for Interfacing Smart Card with At91sam7x

Post 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
Post Reply