DataCard SR300 Manual do Utilizador Página 21

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 76
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 20
SR200 & SR300 Printer SDK Guide
Page 17
Reading Function (for JIS)
No. Function Name Explanation
int
CXCMD_ReadMagData
(int iSlot, int iID,
BYTE *pbyBuff,
int *piLength,
int iMagFormat)
Reads the data on the magnetic stripe on the card.
pbyBuff Pointer to the memory location at which to store
the data read from the card. Data must be ASCII
characters.
iLength Size of data in bytes.
iMagFormat Specify the encoding format of the data to
read.
0x07 JIS-2(7bits) 69 characters, maximum
Tips for success
The printer returns an error if CXCMD_ReadMagData() is used when the card
is not in the MG encoder position.
The printer returns a positive value if CXCMD_ReadMagData() is issued while
the printer is moving a card or the retransfer film. See Return Codes from
Functions for return values.
If the function returns a positive value, wait and retry the function.
See Appendix B: Magnetic Stripe Data for information about data for the
format.
Writing Function (for ISO)
No. Function Name Explanation
1 int
CXCMD_WriteISO3TrackMagData
(int iSlot, int iID,
int iTrack1MagFormat,
BYTE *pbyTrack1Buff,
int iTrack1DataLength,
Int iTrack2MagFormat,
BYTE *pbyTrack2Buff,
int iTrack2DataLength,
Int iTrack3MagFormat,
BYTE *pbyTrack3Buff,
int iTrack3DataLength,
)
Writes data to the 3-track (ISO) magnetic stripe
on the card.
iTrack1MagFormat Specify the magnetic stripe
encoding format.
0x00 Do not write the track
0xa6 ISO track 1 (6 bits) 76 characters,
maximum
0xa7 ISO track 1 (7 bits) 69 characters,
maximum
0xa8 ISO track 1 (6 bits) 79 characters,
maximum
pbyTrack1Buff Pointer to the data to write. Data
must be ASCII characters.
iTrack1DataLength Size of data in bytes in
pbyTrack1Buff.
iTrack2MagFormat Specify the magnetic stripe
encoding format.
0x00 Do not write the track
0xb4 ISO track 2 (4 bits) 37 characters,
maximum
Vista de página 20
1 2 ... 16 17 18 19 20 21 22 23 24 25 26 ... 75 76

Comentários a estes Manuais

Sem comentários