Menu

Reading SIM card

Giulio
2017-01-15
2019-06-28
  • Giulio

    Giulio - 2017-01-15

    First of all thank you so much for this greate library!

    I'm using this smarcard reder
    http://www.acs.com.hk/en/products/302/acr39u-smart-card-reader/

    I've open it and debugged some break out pin, i've tried my best and in some way
    it seems to work.
    https://drive.google.com/file/d/1IT_rCmFLZDhYDIINIAOyWEk1wXrae-Zj9w/view?usp=sharing

    I get this reply msg using ADPU-t0_communication sketch:
    https://drive.google.com/file/d/0Bx_8Za5rGFYpanZBNTdEYlJYaGM/view?usp=sharing.

    Does it mean something to you?
    I'm i doing right?

    How can i prompt always the same command in order to get the same reply msg?

    Regards

     
  • angus71

    angus71 - 2017-01-29

    Hi Giulio,

    to summarize your problems ...

    When using the t0 communication sketch you have a working connection, but it gives always differnt results, if you restart the Arduino?

    Otherwise it looks quite okay, a response starting with 0x61 means that the card accepted your "request" and will send you "0xC3" bytes as content.

    Now you need the "card specification" to make any sence of the received data and the supported commands.

    Hope that helps,

    With kind regards

    Angus71

     
  • Giulio

    Giulio - 2017-01-31

    Hi Angus71,
    Thank u for the reply!

    I would like to know which command is giving me that "0xC3" reply in order to modified the code and send always that specific command. Is it possible?

    My card was a sim card from Vodafone, but i can't find any clear paper where i can read what type of reply is 0xC3. Can u give me an example of " sim card specification" ?

    Thank u so much!
    Giulio

     
  • angus71

    angus71 - 2017-01-31

    Hi Giulio,

    A good starting point is the ETSI's TS 102 221 specification. If you check the ETSI homepage, you should be able to locate a version of this specification.
    It helps in understanding the commands you specify in the Arduino code and the resonse codes. As far as I konw it just describes protocol, but not the actual wherabouts of yor vodafone card.

    Also the ISO 7816 Part 4 might give some informations.

    Regards

    Angus71

     
    • Fatih GÜNGÖR

      Fatih GÜNGÖR - 2018-06-15

      hi angus71 i didnt communication smart card whit arduino. i dont kmnow what i problem..
      maybe you can help me..

      can you contact me...

       
  • Natalia

    Natalia - 2019-02-23

    Hi!

    I am working on a project using a SIM card. I am using an ARDUINO MEGA 2560 board and I'm having problems receiving data from the Smart Card. I think I´m doing something wrong with the connection maybe or something like that.

    Can anyone help me please? :(

    I have changed the pin connection like it said in the code program.

    SC_C2_RST 7
    SC_C1_VCC 12 //before 11
    SC_C7_IO 10
    SC_C3_CLK 11 //before 9

    Thank you very much.

     
  • Natalia

    Natalia - 2019-02-23

    Hi!

    I am working on a project using a SIM card. I am using an ARDUINO MEGA 2560 board and I'm having problems receiving data from the Smart Card. I think I´m doing something wrong with the connection maybe or something like that.

    Can anyone help me please? :(

    I have changed the pin connection like it said in the code program.

    SC_C2_RST 7
    SC_C1_VCC 12 //before 11
    SC_C7_IO 10
    SC_C3_CLK 11 //before 9

    Thank you very much.

     
  • Paul Chen

    Paul Chen - 2019-06-28

    HI Angus, good work! I managed to get ATR on my Uno board w/ NXP P60 smart card. But after sending a Select file command, I always got no response even after trying maxwaits from 0 to 150!

    Always got:

    Received ... 0

    Any tips will be highly appreciated!

    Many thanks

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.