com.pax.dal.entity
Class PollingResult
- java.lang.Object
-
- com.pax.dal.entity.PollingResult
-
public class PollingResult extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classPollingResult.EOperationType
-
Constructor Summary
Constructors Constructor and Description PollingResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description bytegetCardType()获取卡类型, 参考setCardType(byte)get card typesetCardType(byte)bytegetCID()获取逻辑通道号Card ID, points to buffer storing card logical channel number.PollingResult.EOperationTypegetOperationType()获取操作结果operation typePollingResult.EOperationTypebyte[]getOther()EReaderTypegetReaderType()获取读卡类型get reader typebyte[]getSerialInfo()非接卡卡片序列号RF card serial numberjava.lang.StringgetTrack1()磁道1track 1java.lang.StringgetTrack2()磁道2track 2java.lang.StringgetTrack3()磁道3track 3voidsetCardType(byte cardType)设置卡片类型set card typevoidsetCID(byte cID)设置逻辑通道号,存放卡片逻辑通道号,该通道号由驱动内部分配和指定,取值范围为0~14Card ID, points to buffer storing card logical channel number.voidsetOperationType(PollingResult.EOperationType operationType)设置操作结果set Operation TypevoidsetOther(byte[] other)存放详细错误代码、卡片响应信息等内容的缓冲区Points to buffer storing detailed error code and card response informationvoidsetReaderType(EReaderType readerType)设置读卡器类型set reader typevoidsetSerialInfo(byte[] serialInfo)非接卡卡片序列号RF card serial numbervoidsetTrack1(java.lang.String track1)磁道1track 1voidsetTrack2(java.lang.String track2)磁道2track 2voidsetTrack3(java.lang.String track3)磁道3track 3
-
-
-
Constructor Detail
-
PollingResult
public PollingResult()
-
-
Method Detail
-
getOperationType
public PollingResult.EOperationType getOperationType()
获取操作结果operation typePollingResult.EOperationType- Returns:
-
setOperationType
public void setOperationType(PollingResult.EOperationType operationType)
设置操作结果set Operation Type- Parameters:
operationType-PollingResult.EOperationType
-
getReaderType
public EReaderType getReaderType()
获取读卡类型get reader type- Returns:
-
setReaderType
public void setReaderType(EReaderType readerType)
设置读卡器类型set reader type- Parameters:
readerType-EReaderType
-
getTrack1
public java.lang.String getTrack1()
磁道1track 1- Returns:
-
setTrack1
public void setTrack1(java.lang.String track1)
磁道1track 1- Parameters:
track1-
-
getTrack2
public java.lang.String getTrack2()
磁道2track 2- Returns:
-
setTrack2
public void setTrack2(java.lang.String track2)
磁道2track 2- Parameters:
track2-
-
getTrack3
public java.lang.String getTrack3()
磁道3track 3- Returns:
-
setTrack3
public void setTrack3(java.lang.String track3)
磁道3track 3- Parameters:
track3-
-
getSerialInfo
public byte[] getSerialInfo()
非接卡卡片序列号RF card serial number- Returns:
-
setSerialInfo
public void setSerialInfo(byte[] serialInfo)
非接卡卡片序列号RF card serial number- Parameters:
serialInfo-
-
getCardType
public byte getCardType()
获取卡类型, 参考setCardType(byte)get card typesetCardType(byte)- Returns:
- Since:
- V3.19.00
-
setCardType
public void setCardType(byte cardType)
设置卡片类型set card type- Parameters:
cardType-- 'A': 搜寻到A型卡
- 'B': 搜寻到B型卡
- 'M': 搜寻到m1卡
- 'A': Found type A card
- 'B': Found type B card
- 'M': Found type M1 card
-
getCID
public byte getCID()
获取逻辑通道号Card ID, points to buffer storing card logical channel number. The channel number is allocated internally by driver, and range is 0~14.- Returns:
- Since:
- V3.19.00
-
setCID
public void setCID(byte cID)
设置逻辑通道号,存放卡片逻辑通道号,该通道号由驱动内部分配和指定,取值范围为0~14Card ID, points to buffer storing card logical channel number. The channel number is allocated internally by driver, and range is 0~14.- Parameters:
cID-
-
getOther
public byte[] getOther()
- Returns:
- Other:len(1字节)+errcode(2字节)+卡片相关信息
- 1.len表示返回信息的总长度,不包括len本身的1个字节
- 2.对A型卡,Other表示:len[1]+errcode[2]+ATQA[2]+SAK1+[SAK2]+[SAK3]+ATS
SAK1/SAK2/SAK3均为1字节,[SAK2]和[SAK3]表示可选,当SerialInfo为4字节时只有SAK1,当SerialInfo为7字节时包含SAK1和SAK2,当SerialInfo为10字节时包含SAK1,SAK2及SAK3。 ATQA为2字节,其中ATS的长度为len减去已知信息的长度。 - 3.对M型卡,Other表示:len[1]+errcode[2]+ATQA[2]+SAK1
- 4.对B型卡,Other表示:len[1]+errcode[2]+ATQB[12]+ATTRIB
ATQB长度为12字节,ATTRIB的长度为len减去已知信息的长度
Other: len (1 byte) + errCode (2 bytes) + card related information- 1. len denotes the total length of the returned information, excluding one byte of len itself .
- 2. For type A card, Other means len [1] + errCode [2] + ATQA [2] + SAK1 + [SAK2] + [SAK3] + ATS
SAK1/SAK2/SAK3 are 1 byte, [SAK2] and [SAK3] are optional, only SAK1 when SerialInfo is 4 bytes, SAK1 and SAK2 when SerialInfo is 7 bytes, and SAK1, SAK2 and SAK3 when SerialInfo is 10 bytes. ATQA is 2 bytes, where the length of ATS is len minus the length of known information. - 3. For M-card, Other means len [1] + errCode [2] + ATQA [2] + SAK1
- 4. For type B cards, Other means len [1] + errCode [2] + ATQB [12] + ATTRIB
ATQB length is 12 bytes, ATTRIB length is len minus the length of known information .
- Since:
- V3.19.00
-
setOther
public void setOther(byte[] other)
存放详细错误代码、卡片响应信息等内容的缓冲区Points to buffer storing detailed error code and card response information- Parameters:
other-Other:len(1字节)+errcode(2字节)+卡片相关信息- 1.len表示返回信息的总长度,不包括len本身的1个字节
- 2.对A型卡,Other表示:len[1]+errcode[2]+ATQA[2]+SAK1+[SAK2]+[SAK3]+ATS
SAK1/SAK2/SAK3均为1字节,[SAK2]和[SAK3]表示可选,当SerialInfo为4字节时只有SAK1,当SerialInfo为7字节时包含SAK1和SAK2,当SerialInfo为10字节时包含SAK1,SAK2及SAK3。 ATQA为2字节,其中ATS的长度为len减去已知信息的长度。 - 3.对M型卡,Other表示:len[1]+errcode[2]+ATQA[2]+SAK1
- 4.对B型卡,Other表示:len[1]+errcode[2]+ATQB[12]+ATTRIB
ATQB长度为12字节,ATTRIB的长度为len减去已知信息的长度
Other: len (1 byte) + errCode (2 bytes) + card related information- 1. len denotes the total length of the returned information, excluding one byte of len itself .
- 2. For type A card, Other means len [1] + errCode [2] + ATQA [2] + SAK1 + [SAK2] + [SAK3] + ATS
SAK1/SAK2/SAK3 are 1 byte, [SAK2] and [SAK3] are optional, only SAK1 when SerialInfo is 4 bytes, SAK1 and SAK2 when SerialInfo is 7 bytes, and SAK1, SAK2 and SAK3 when SerialInfo is 10 bytes. ATQA is 2 bytes, where the length of ATS is len minus the length of known information. - 3. For M-card, Other means len [1] + errCode [2] + ATQA [2] + SAK1
- 4. For type B cards, Other means len [1] + errCode [2] + ATQB [12] + ATTRIB
ATQB length is 12 bytes, ATTRIB length is len minus the length of known information .
-
-