Magnetic Stripe Encoding Functions
The API provides the following functions for magnetic stripe encoding:
♦
Writing Function (for JIS)
♦
Reading Function (for JIS)
♦
Writing Functions (for ISO)
♦
Reading Function (for ISO)
Writing Function (for JIS)
No.
Function Name
1
int CXCMD_WriteMagData
(int iSlot, int iID,
BYTE *pbyBuff,
int iLength,
int iMagFormat)
Tips for success
♦
The driver returns an error if CXCMD_WriteMagData() is used when the card
is not in the MG encoder position.
♦
The driver returns a positive value if CXCMD_WriteMagData() is issued while
the printer is moving a card or the retransfer film. See
Functions
♦
If the function returns a positive value, wait and retry the function.
♦
See
format.
Explanation
Writes data to the magnetic stripe on the card.
pbyBuff Pointer to the data to write. Data must be ASCII
characters.
iLength Size of data in bytes.
iMagFormat Specify the magnetic stripe encoding
format.
0x07 JIS-2(7bits)
for return
values.
Appendix B: Magnetic Stripe Data
SR200 & SR300 Printer SDK Guide
69 characters, maximum
Return Codes from
for information about data for the
Page 16
Need help?
Do you have a question about the SR200 and is the answer not in the manual?