UHFReader18CSharp.DLL动态连接库使用手册V2.5培训讲学.doc
《UHFReader18CSharp.DLL动态连接库使用手册V2.5培训讲学.doc》由会员分享,可在线阅读,更多相关《UHFReader18CSharp.DLL动态连接库使用手册V2.5培训讲学.doc(58页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、Good is good, but better carries it.精益求精,善益求善。UHFReader18CSharp.DLL动态连接库使用手册V2.5-UHFReader18CSharp.DLL动态连接库使用手册V2.51.操作系统:12.函数详单:12.1)通用函数:12.2)EPCC1-G2协议函数:22.3)18000-6B协议函数:43.函数的描述:53.1)通用函数:53.1.1)AutoOpenComPort():自动连接串口53.1.2)OpenComPort():连接到指定串口63.1.3)CloseComPort():关闭串口连接73.1.4)CloseSpecCo
2、mPort():关闭指定串口73.1.5)GetReaderInformation():获得读写器的信息73.1.6)WriteComAdr():写入读写器地址83.1.7)WriteScanTime():设置询查命令最大响应时间93.1.8)SetPowerDbm():设置读写器功率93.1.9)Writedfre():设置读写器工作频率93.1.10)Writebaud():设置串口波特率103.1.11)SetWGParameter():设置韦根参数113.1.12)SetWorkMode():设置工作模式113.1.13)GetWorkModeParameter():读取工作模式参数1
3、23.1.14)ReadActiveModeData():读取主动模式数据-133.1.15)SetAccuracy():EAS检测精度测试-133.1.16)SetOffsetTime():设置Syris命令响应偏置时间-133.1.17)SetFhssMode():设置读写器跳频模式143.1.18)GetFhssMode():获取读写器跳频模式-143.1.19)SetTriggerTime():获取读写器跳频模式-153.1.20)BuzzerAndLEDControl():声光控制命令-153.1.21)SetRelay():设置继电器动作-163.1.22)OpenNetPort(
4、):连接网口163.1.23)CloseNetPort():关闭网口173.2)EPCC1-G2协议函数:173.2.1)Inventory_G2():G2询查命令173.2.2)ReadCard_G2():G2读取数据命令183.2.3)WriteCard_G2():G2写命令193.2.4)EraseCard_G2():G2块擦除命令203.2.5)SetCardProtect_G2():G2设定存储区读写保护状态命令213.2.6)DestroyCard_G2():G2销毁卡片命令223.2.7)WriteEPC_G2():G2写EPC号命令233.2.8)SetReadProtect_
5、G2():G2单张读保护设置命令233.2.9)SetMultiReadProtect_G2():G2单张读保护设置命令(不需卡号)243.2.10)RemoveReadProtect_G2():G2解锁读保护命令253.2.11)CheckReadProtected_G2():G2测试卡片是否被读保护命令253.2.12)SetEASAlarm_G2():G2EAS报警设置命令263.2.13)CheckEASAlarm_G2():G2EAS报警探测命令273.2.14)LockUserBlock_G2():G2user区块锁命令(永久锁定)273.2.15)WriteBlock_G2():
6、G2块写命令283.3)18000-6B协议函数:293.3.1)Inventory_6B():6B寻查命令(单张)293.3.2)Inventory2_6B():6B按条件寻查电子标签命令303.3.3)ReadCard_6B():6B读数据命令303.3.4)WriteCard_6B():6B写数据命令313.3.5)CheckLock_6B():6B锁定检测命令323.3.6)LockByte_6B():6B锁定命令324.其他返回值定义335.错误代码定义34-上位机应用程序通过UHFReader18CSharp.DLL操作EPCC1-G2、18000-6B格式电子标签读写器。1. 操
7、作系统:WINDOWS2000/XP2. 函数详单:UHFReader18CSharp.DLL包括了如下的操作函数:2.1)通用函数:1)FunctionintStaticClassReaderB.AutoOpenComPort(int*Port,unsignedchar*ComAdr,unsignedchar*Baud,int*FrmHandle);2)FunctionintStaticClassReaderB.OpenComPort(intPort,unsignedchar*ComAdr,unsignedchar*Baud,int*FrmHandle);3)FunctionintStati
8、cClassReaderB.CloseComPort(void);4)FunctionintStaticClassReaderB.WINAPICloseSpecComPort(intFrmHandle);5)FunctionintStaticClassReaderB.GetReaderInformation(unsignedchar*ComAdr,unsignedchar*VersionInfo,unsignedchar*ReaderType,unsignedchar*TrType,unsignedchar*dmaxfre,unsignedchar*dminfre,unsignedchar*p
9、owerdBm,unsignedchar*ScanTime,intFrmHandle);6)FunctionintStaticClassReaderB.WriteComAdr(unsignedchar*ComAdr,unsignedchar*ComAdrData,intFrmHandle);7)FunctionintStaticClassReaderB.WriteScanTime(unsignedchar*ComAdr,unsignedchar*ScanTime,intFrmHandle);8)FunctionintStaticClassReaderB.SetPowerDbm(unsigned
10、char*ComAdr,unsignedchar*powerDbm,intFrmHandle);9)FunctionintStaticClassReaderB.Writedfre(unsignedchar*ComAdr,unsignedchar*dmaxfre,unsignedchar*dminfre,intFrmHandle);10)FunctionintStaticClassReaderB.Writebaud(unsignedchar*ComAdr,unsignedchar*baud,intFrmHandle);11)FunctionintStaticClassReaderB.SetWGP
11、arameter(unsignedchar*ComAdr,unsignedcharWg_mode,unsignedcharWg_Data_Inteval,unsignedcharWg_Pulse_Width,unsignedcharWg_Pulse_Inteval,intFrmHandle);12)FunctionintStaticClassReaderB.SetWorkMode(unsignedchar*ComAdr,unsignedchar*Parameter,intFrmHandle);13)FunctionintStaticClassReaderB.GetWorkModeParamet
12、er(unsignedchar*ComAdr,unsignedchar*Parameter,intFrmHandle);14)FunctionintStaticClassReaderB.ReadActiveModeData(unsignedchar*ActiveModeData,unsignedchar*Datalength,intFrmHandle);15)FunctionintStaticClassReaderB.SetAccuracy(unsignedchar*ComAdr,unsignedcharAccuracy,longFrmHandle);16)FunctionintStaticC
13、lassReaderB.SetOffsetTime(unsignedchar*ComAdr,unsignedcharOffsetTime,longFrmHandle);17)FunctionintStaticClassReaderB.SetFhssMode(unsignedchar*ComAdr,unsignedcharFhssMode,longFrmHandle);18)FunctionintStaticClassReaderB.GetFhssMode(unsignedchar*ComAdr,unsignedchar*FhssMode,longFrmHandle);19)Functionin
14、tStaticClassReaderB.SetTriggerTime(unsignedchar*ComAdr,unsignedchar*TriggerTime,longFrmHandle);20)FunctionintStaticClassReaderB.BuzzerAndLEDControl(unsignedchar*ComAdr,unsignedcharAvtiveTime,unsignedcharSilentTime,unsignedcharTimes,intFrmHandle);21)FunctionintStaticClassReaderB.SetRelay(unsignedchar
15、*ComAdr,unsignedcharRelayStatue,longFrmHandle);22)FunctionintStaticClassReaderB.OpenNetPort(intPort,LPSTRIPaddr,unsignedchar*ComAdr,intFrmHandle);23)FunctionintStaticClassReaderB.CloseNetPort(intFrmHandle);2.2)EPCC1-G2协议函数:1)FunctionintStaticClassReaderB.Inventory_G2(unsignedchar*ComAdr,unsignedchar
16、AdrTID,unsignedcharLenTID,unsignedcharTIDFlag,unsignedchar*EPClenandEPC,int*Totallen,int*CardNum,intFrmHandle);2)FunctionintStaticClassReaderB.ReadCard_G2(unsignedchar*ComAdr,unsignedchar*EPC,unsignedchar*Mem,unsignedchar*WordPtr,unsignedchar*Num,unsignedchar*Password,unsignedcharmaskadr,unsignedcha
17、rmaskLen,unsignedcharmaskFlag,unsignedchar*Data,unsignedchar*EPClength,unsignedchar*errorcode,intFrmHandle);3)FunctionintStaticClassReaderB.WriteCard_G2(unsignedchar*ComAdr,unsignedchar*EPC,unsignedchar*Mem,unsignedchar*WordPtr,unsignedchar*Writedatalen,unsignedchar*Writedata,unsignedchar*Password,u
18、nsignedcharmaskadr,unsignedcharmaskLen,unsignedcharmaskFlag,intWrittenDataNum,unsignedchar*EPClength,unsignedchar*errorcode,intFrmHandle);4)FunctionintStaticClassReaderB.EraseCard_G2(unsignedchar*ComAdr,unsignedchar*EPC,unsignedchar*Mem,unsignedchar*WordPtr,unsignedchar*Num,unsignedchar*Password,uns
19、ignedcharmaskadr,unsignedcharmaskLen,unsignedcharmaskFlag,unsignedchar*EPClength,unsignedchar*errorcode,intFrmHandle);5)FunctionintStaticClassReaderB.SetCardProtect_G2(unsignedchar*ComAdr,unsignedchar*EPC,unsignedchar*select,unsignedchar*setprotect,unsignedchar*Password,unsignedcharmaskadr,unsignedc
20、harmaskLen,unsignedcharmaskFlag,unsignedchar*EPClength,unsignedchar*errorcode,intFrmHandle);6)FunctionintStaticClassReaderB.DestroyCard_G2(unsignedchar*ComAdr,unsignedchar*EPC,unsignedchar*Password,unsignedcharmaskadr,unsignedcharmaskLen,unsignedcharmaskFlag,unsignedchar*EPClength,unsignedchar*error
21、code,intFrmHandle);7)FunctionintStaticClassReaderB.WriteEPC_G2(unsignedchar*ComAdr,unsignedchar*Password,unsignedchar*WriteEPC,unsignedchar*WriteEPClen,unsignedchar*errorcode,intFrmHandle);8)FunctionintStaticClassReaderB.SetReadProtect_G2(unsignedchar*ComAdr,unsignedchar*EPC,unsignedchar*Password,un
22、signedcharmaskadr,unsignedcharmaskLen,unsignedcharmaskFlag,unsignedchar*EPClength,unsignedchar*errorcode,intFrmHandle);9)FunctionintStaticClassReaderB.SetMultiReadProtect_G2(unsignedchar*ComAdr,unsignedchar*Password,unsignedchar*errorcode,intFrmHandle);10)FunctionintStaticClassReaderB.RemoveReadProt
23、ect_G2(unsignedchar*ComAdr,unsignedchar*Password,unsignedchar*errorcode,intFrmHandle);11)FunctionintStaticClassReaderB.CheckReadProtected_G2(unsignedchar*ComAdr,unsignedchar*readpro,unsignedchar*errorcode,intFrmHandle);12)FunctionintStaticClassReaderB.SetEASAlarm_G2(unsignedchar*ComAdr,unsignedchar*
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- UHFReader18CSharp DLL 动态 连接 使用手册 V2 培训 讲学
限制150内