POS/Mobile Printer
Rev. 1.00
3-36 ScrExchangeAPDU
Enable APDU/TPDU data communication. This function is only available on SPP-R210
SCR.
long ScrExchangeAPDU (const char *APDUCmd, unsigned int APDULen,
char *APDURsp, unsigned int *APDURspLen, char *pResponse);
[Parameters]
* const char *APDUCmd
[in] APDU data command
* unsigned int APDULen
[in] APDU command length
* char *APDURsp
[in, out] APDU data response
* unsigned int APDURspLen
[in, out] APDU response length
* char *pResponse
[in, out] Response to power up
[Return Values]
The function is successful.
Data transmission failed.
The function is not supported.
The response data is incorrect.
int ret;
char response = 0xff;
char cmdAPDU[512] = {0x00, };
char rspAPDU[512] = {0x00, };
unsigned int cmdLen, rspLen;
ConnectToPrinter(………..);
……
scrData = ScrExchangeAPDU(cmdAPDU, cmdLen, rspAPDU, rspLen, &response);
if (0x00 != response)
return;
……