读写 3.3. 器自定义命令
获 读写 3.3.1. GetReaderInformation【 取 器信息命令】
定义
public native int GetReaderInformation(byte[]comAddr,byte[]versionInfo,byte[]readerType,
byte[]trType,byte[]dmaxfre,byte[]dminfre,byte[]powerdBm,byte[]ScanTime,byte[]Ant,byte[]
BeepEn, byte[]OutputRep,byte[]CheckAnt,int PortHandle);
器的信息,其中包括器地址(ComAdr)和读写本(VersionInfo)的
信息等多信息
类型
方向
备注
ComAddr
byte[]
[in/out] 1 ,使用器返回的器地址。
VersionInfo
byte [] [out]
2 本信息。1 节为
2 节为柄。
ReaderType
byte[]
[out]
1 型代
dmaxfre
byte[]
[out]
1 ,Bit7-Bit6 用于置用;Bit5-Bit0
表示器工作的最大
dminfre
byte [] [out]
1 ,Bit7-Bit6 用于置用;Bit5-Bit0
表示器工作的最
powerdBm
byte [] [out]
1 器的出功率。范是 0 到 30,
位 dBm。
ScanTime
byte [] [out]
1 询查时间器收到询查命令后,在
询查时间内会给上位机
Ant
byte [] [out]
1 ,天线配置信息。
BeepEn
byte [] [out]
1 开关信息。
OutputRep
byte [] [out]
1 ,通出端口参数
CheckAnt
byte [] [out]
1 ,天线检测信息。
PortHandle
int
[in]
读写器返回的句柄。
返回
0:表示成功。不等于 0:表示失请查看返回值错误表。
(int)
参考代
注:频段设置如下表:
MaxFre(Bit7)
MaxFre(Bit6)
MinFre(Bit7)
MinFre(Bit6)
FreqBand
0
0
0
1
Chinese band2
0
0
1
0
US band
0
0
1
1
Korean band
0
1
0
0
EU band
0
1
1
0
Ukraine band
1
0
0
0
Chinese band1
1
1
0
0
US band3
20
    "