Any Samples for Interfacing Smart Card with At91sam7x

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

Any Samples for Interfacing Smart Card with At91sam7x

Postby moh.kermani » Wed Jun 12, 2013 2:32 pm

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: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: Any Samples for Interfacing Smart Card with At91sam7x

Postby Giovanni » Wed Jun 12, 2013 6:10 pm

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

Postby moh.kermani » Fri Jul 26, 2013 10:15 pm

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: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: Any Samples for Interfacing Smart Card with At91sam7x

Postby Giovanni » Sat Jul 27, 2013 8:40 am

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


Return to “AT91SAM7x Support”

Who is online

Users browsing this forum: No registered users and 2 guests