This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Read/Write SIM card using PRU on Hawkboard with AM1808

Other Parts Discussed in Thread: AM1808, OMAPL138

Hi All,
I’m trying to read/write a SIM card (It support ISO 7816-3 and ISO 7816-4) using PRU on Hawkboard with AM1808
I found some resource at http://processors.wiki.ti.com/index.php/SmartCard_Implementation_on_OMAPL_PRU_-_Software_Users_Guide.

but I don't know how to do.

 my  SIM card  is  the following diagram :

  compared to that demo,  my SIM card have no Detect , VPP enable, Parity  singal,  and have one interface as data input/output. 

so I want to know how to modify Linux driver ,  Do I need to modify the PRU firmware? 

thanks for your help!

 

 

 
 

  • Hi Xiao,

    You should need to modify only the Linux driver.  A SIM card implementation will not require the Vpp and CD signals.  However, the parity signal, TX, and RX lines all compose the IO line in this design.  A diagram showing this has been added to the SmartCard Implementation on OMAPL PRU User Guide wiki.

    The PRU SmartCard Design Document wiki includes details about how the Vpp and CD are initialized.  The Vpp references in this wiki should be the only places you need to modify the driver to remove Vpp.  

    For the carddetect signal, you will need to also modify the IFDHandler to remove dependencies on pru_scrdr_iscard_present.  You may want to also look for any other places in the IFDHandler or Test App that checks for whether the card is present.

    Regards,
    Melissa

  • Hi Melissa,

    Would this implementation work for the OMAPL138? The devices are virtually the same, so I wouldn't think there would be a problem. Let me know.

    -David

  • Hi David,

    Yes, AM1808 and OMAPL138 are very similar devices, and I agree that this should not be a problem.  Please note, however, that the smartcard implementation has not been tested or validated on OMAPL138.

    Regards,

    Melissa