
读写 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






































