Screxchangeapdu - BIXOLON SRP-270 Reference Manual

Linux sdk guide for pos/mobile printer
Hide thumbs Also See for SRP-270:
Table of Contents

Advertisement

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,
[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]
Constant
SUCCESS
WRITE_ERROR
NOT_SUPPORT
SCR_RESPONSE_ERROR
* Example
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;
......
Rev. 1.00
char *APDURsp, unsigned int *APDURspLen, char *pResponse);
Value
0
-105
-124
-126
- 48 -
POS/Mobile Printer
Description
The function is successful.
Data transmission failed.
The function is not supported.
The response data is incorrect.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents