Hello all. I'm currently working on a Contact Card Interface. The idea is to send APDU's from a i.MX8M microprocessor throught it's USB bus to PN7412, that has a TDA8026 connected to it. I was able to successfully communicate and activate contact cards located at PN main slot, but when I try to replicate the same procedure in a card located at one of the TDA8026 slots (Slot 5), I get a empty ATR vector response, meaning that no activation was done. Here's the steps I followed in order to make it respond.
phStatus_t eStatus = PH_ERR_FAILED;
#ifdef PHFL_ENABLE_SAM_KEY_STORE
/* Global instance for CT pal parameter's structure */
phhalCt_InitParam_t sInitParams;
uint8_t gbAtrBuffer[32]={0};
phpalCt_DataParams_t tDataParams;
tDataParams.pbAtrBuffer = (uint8_t *)&gbAtrBuffer;
tDataParams.bSizeOfATRbuffer = 32;
sInitParams.bAutoCTDeactivationEnable= 0;
sInitParams.bCardPresConnectorStatus= gpkphCfg_EE_Boot_CT->bConnectorType;
sInitParams.bPullupSetStatus = gpkphCfg_EE_Boot_CT->bPullUp;
sInitParams.bSlewRateConfig = gpkphCfg_EE_Boot_CT->bSlewRate;
phpalCt_Init(&sInitParams);
do
{
tDataParams.pbAtrBuffer = (uint8_t *)&gbAtrBuffer;
tDataParams.bSizeOfATRbuffer = 32;
/*Initialize the TDA*/
eStatus = phhalTda_Init();
CHECK_SUCCESS(eStatus);
/*Switch to auxiliary slot, because SAM is will be used from auxiliary slot*/
phhalCt_SwitchSlot(E_AUXILIARY_SLOT);
/*Select the Auxiliary slot number*/
eStatus = phhalTda_SelectSlot((uint32_t)gbTdaSlotNum);
/*Check the presence of SAM in the selected slot*/
eStatus = phhalTda_GetStatus(E_PRESENCE);
if(eStatus != SAM_CARD_PRESENT_IN_SLOT)
{
break;
}
phpalCt_SetConfig(E_EMV_ENABLE,0);
/*Activate the SAM card*/
eStatus = phhalTda_ActivateCard(&tDataParams);
I'm using DoorAcceessExample_AUX_slot software example provided by NXP and developed by Anish Ahammed in 2016.
Hi! is there any axample/code that initialites any TDA, using GPIO instead of I2C? some TDAs doesnt have an I2C interface. Thanks!
Hello! How to get DoorAcceessExample_AUX_slot example? How I can request it? Where do I need to sign valid NDA?
Hi @thiago_machado ,
Did you make any change in DoorAcceessExample_AUX_slot example? Please kindly clarify.
Have a great day,
Kan
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
@Kan_Li Where is this example? I can't find it.
Hi @Bonat ,
It is part of EC version but not publicly released , you may request it via the following channel with a valid NDA. Please kindly refer to the following for details.
Have a great day,
Kan
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Thank you for your reply, Kan Li! Could you give me access to this content? I got this message when i tried to access: "You do not have sufficient privileges for this resource or its parent to perform this action."
Best regards,
Bruno.
@Kan_Licould you help me with this?