@hskoglund Thank you for your feedback
I moved forward on my project and i have one more question.
Could somebody explain me this ?
When i switch the two unsigned char "receive" and "command" declaration line, i haven't the same result
in the actual code below all things work i get all information as writen in the TAG.
If i move up the command declaration above the receive declaration, all things messed up
I think it's an problem about C++ understanding, sorry i'm beginner.
here is the code
unsigned long proto=0; const wchar_t rdName[] = L"SCM Microsystems Inc. SCL011G Contactless Reader 0"; QByteArray *myBuffer=new QByteArray(); resConnect = SCardConnectW(cardContext,rdName,SCARD_SHARE_SHARED,SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1,&cardHandle,&proto); qDebug()<<QString("Connect : %1").arg(resConnect,0,16); unsigned char receive[4] = {0,0,0,0}; unsigned char command[] = {0xFF,0xB0,0x00,0x01,0x04}; SCARD_IO_REQUEST *senpci = new SCARD_IO_REQUEST; senpci->cbPciLength = sizeof(SCARD_IO_REQUEST); senpci->dwProtocol = SCARD_PROTOCOL_T1; DWORD rcvLen; for (int i(1); i<28; i++) { resConnect = SCardTransmit(cardHandle,senpci,command,sizeof(command),NULL,receive,&rcvLen); myBuffer->append((char*)receive,4); command[3]=i; } qDebug()<<*myBuffer; SCardDisconnect(cardHandle,SCARD_LEAVE_CARD);