Doc ID022016 Rev 4
43/47
AN3954
Description of functions
46
}
printf("\n\n\n\n");
printf("\npress any key to continue");
printf("\n");
scanf("%s", &entry3);
return iresult;
}
int Send_ISO14443B_Initiate (void)
{
char strRequest[50]="";
char strTagAnswer[50]="";
int iresult;
char entry3;
printf("\n\n\n\n");
strcpy(strRequest,"0600");
iresult=CR95HFDll_SendReceive(strRequest,strTagAnswer);
printf("\nISO14443B Initiate using CR95HFDll_SendReceive
function:\n");
printf("\n --> request : CR95HFDll_SendReceive(%s,
strTagAnswer)",strRequest);
printf("\n <-- answer : ");
if ((strTagAnswer[0] == '8') & (strTagAnswer[1] == '0')) //CR95HF Tag
answer OK
{
printf("%s = Tag answer",strTagAnswer);
}
else
{
printf("No tag answer received\n");
printf("CR95HF answer : %s",strTagAnswer);
}
printf("\n\n\n\n");
printf("\npress any key to continue");
printf("\n");
scanf("%s", &entry3);
return iresult;
}
2.4.2
SendReceive Request and Response maximum data size
Since DLL revision 1.2 and CR95HF demonstration board firmware revision 3.6.6
(STSW-M24LR007), the CR95HFDll_SendReceive function can send requests up to 256
bytes and receive responses up to 528 bytes. This is internally managed by the CR95HF IC
using Long frames (refer to the dedicated section in the CR95HF datasheet).
The management of HID USB frames is limited to 64 bytes. The communication between
the computer and the CR95HF demonstration board is managed jointly by HID USB, while
DLL and the STM32 microcontroller manage long frames.