UHFReader18CSharp.DLL动态连接库使用手册V.doc
《UHFReader18CSharp.DLL动态连接库使用手册V.doc》由会员分享,可在线阅读,更多相关《UHFReader18CSharp.DLL动态连接库使用手册V.doc(36页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、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) CloseSpecComPort():关闭指定串口73.1.5)GetReaderInformation():获得读写器的信息73.1.6) WriteComAdr():写
2、入读写器地址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 ():读取工作模式参数123.1.14) ReadActiveModeData ():读取主动模式数据-133.1.15) SetAccuracy()
3、: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():连接网口163.1.23) CloseNetPort():关闭网口173.2)
4、 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_G2 ():G2单张读保护设置命令233.2.
5、9) SetMultiReadProtect_G2 ():G2单张读保护设置命令(不需卡号)243.2.10) RemoveReadProtect_G2 ():G2解锁读保护命令253.2.11) CheckReadProtected_G2 ():G2测试卡片是否被读保护命令253.2.12) SetEASAlarm_G2 ():G2 EAS报警设置命令263.2.13) CheckEASAlarm_G2 ():G2 EAS报警探测命令273.2.14) LockUserBlock_G2 ():G2 user区块锁命令(永久锁定)273.2.15) WriteBlock_G2 ():G2块写命
6、令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.错误代码定义342UHFReader18CSharp.DLL动态连接库使用手册V2.5上位机应用程序通过UHFReader18
7、CSharp.DLL操作EPCC1-G2、18000-6B格式电子标签读写器。1. 操作系统:WINDOWS 2000/XP2. 函数详单:UHFReader18CSharp.DLL包括了如下的操作函数:2.1)通用函数:1)Function int StaticClassReaderB.AutoOpenComPort(int* Port,unsigned char * ComAdr, unsigned char * Baud ,int* FrmHandle);2)Function int StaticClassReaderB.OpenComPort(int Port, unsigned ch
8、ar *ComAdr, unsigned char * Baud,int* FrmHandle);3)Function int StaticClassReaderB.CloseComPort(void);4) Function int StaticClassReaderB.WINAPI CloseSpecComPort(int FrmHandle);5)Function int StaticClassReaderB.GetReaderInformation(unsigned char *ComAdr, unsigned char *VersionInfo, unsigned char *Rea
9、derType, unsigned char *TrType,unsigned char * dmaxfre , unsigned char *dminfre, unsigned char *powerdBm,unsigned char *ScanTime, int FrmHandle);6) Function int StaticClassReaderB.WriteComAdr(unsigned char *ComAdr, unsigned char *ComAdrData, int FrmHandle);7)Function int StaticClassReaderB.WriteScan
10、Time(unsigned char *ComAdr, unsigned char *ScanTime, int FrmHandle);8)Function int StaticClassReaderB.SetPowerDbm (unsigned char *ComAdr, unsigned char * powerDbm, int FrmHandle);9)Function int StaticClassReaderB.Writedfre (unsigned char *ComAdr, unsigned char * dmaxfre, unsigned char * dminfre,int
11、FrmHandle);10)Function int StaticClassReaderB.Writebaud (unsigned char *ComAdr, unsigned char * baud, int FrmHandle);11) Function int StaticClassReaderB.SetWGParameter(unsigned char *ComAdr, unsigned char Wg_mode,unsigned char Wg_Data_Inteval,unsigned char Wg_Pulse_Width, unsigned char Wg_Pulse_Inte
12、val,int FrmHandle);12)Function int StaticClassReaderB.SetWorkMode(unsigned char *ComAdr, unsigned char * Parameter, int FrmHandle);13)Function int StaticClassReaderB.GetWorkModeParameter(unsigned char *ComAdr, unsigned char * Parameter, int FrmHandle);14)Function int StaticClassReaderB.ReadActiveMod
13、eData(unsigned char *ActiveModeData, unsigned char * Datalength, int FrmHandle);15) Function int StaticClassReaderB.SetAccuracy(unsigned char * ComAdr, unsigned char Accuracy , long FrmHandle);16) Function int StaticClassReaderB.SetOffsetTime(unsigned char * ComAdr, unsigned char OffsetTime, long Fr
14、mHandle);17) Function int StaticClassReaderB.SetFhssMode(unsigned char * ComAdr, unsigned char FhssMode, long FrmHandle);18) Function int StaticClassReaderB.GetFhssMode(unsigned char * ComAdr, unsigned char *FhssMode, long FrmHandle);19) Function int StaticClassReaderB.SetTriggerTime(unsigned char *
15、 ComAdr, unsigned char *TriggerTime, long FrmHandle);20) Function int StaticClassReaderB.BuzzerAndLEDControl(unsigned char * ComAdr, unsigned char AvtiveTime, unsigned char SilentTime, unsigned char Times, int FrmHandle);21) Function int StaticClassReaderB.SetRelay(unsigned char * ComAdr, unsigned c
16、har RelayStatue, long FrmHandle);22) Function int StaticClassReaderB.OpenNetPort (int Port, LPSTR IPaddr, ,unsigned char *ComAdr, int FrmHandle);23) Function int StaticClassReaderB.CloseNetPort (int FrmHandle);2.2)EPCC1-G2 协议函数:1)Function int StaticClassReaderB. Inventory_G2 (unsigned char *ComAdr,
17、unsigned char AdrTID,unsigned char LenTID,unsigned char TIDFlag,unsigned char * EPClenandEPC, int * Totallen, int *CardNum,int FrmHandle);2)Function int StaticClassReaderB. ReadCard_G2 (unsigned char *ComAdr, unsigned char * EPC, unsigned char * Mem, unsigned char * WordPtr, unsigned char * Num, uns
18、igned char * Password , unsigned char maskadr, unsigned char maskLen, unsigned char maskFlag,unsigned char * Data , unsigned char * EPClength, unsigned char * errorcode,int FrmHandle);3)Function int StaticClassReaderB.WriteCard_G2 (unsigned char *ComAdr, unsigned char * EPC, unsigned char * Mem, uns
19、igned char * WordPtr, unsigned char * Writedatalen, unsigned char *Writedata,unsigned char * Password, unsigned char maskadr, unsigned char maskLen, unsigned char maskFlag, int WrittenDataNum, unsigned char * EPClength, unsigned char * errorcode,int FrmHandle);4)Function int StaticClassReaderB.Erase
20、Card_G2 (unsigned char *ComAdr, unsigned char * EPC, unsigned char * Mem, unsigned char * WordPtr, unsigned char * Num, unsigned char * Password, unsigned char maskadr, unsigned char maskLen, unsigned char maskFlag, unsigned char * EPClength, unsigned char * errorcode,int FrmHandle);5)Function int S
21、taticClassReaderB.SetCardProtect_G2 (unsigned char *ComAdr, unsigned char * EPC, unsigned char * select, unsigned char * setprotect, unsigned char * Password, unsigned char maskadr, unsigned char maskLen, unsigned char maskFlag, unsigned char * EPClength, unsigned char * errorcode,int FrmHandle);6)F
22、unction int StaticClassReaderB.DestroyCard_G2 (unsigned char *ComAdr, unsigned char * EPC, unsigned char * Password, unsigned char maskadr, unsigned char maskLen, unsigned char maskFlag, unsigned char * EPClength, unsigned char * errorcode,int FrmHandle);7)Function int StaticClassReaderB. WriteEPC_G
23、2 (unsigned char *ComAdr, unsigned char * Password, unsigned char * WriteEPC, unsigned char * WriteEPClen, unsigned char * errorcode,int FrmHandle);8)Function int StaticClassReaderB.SetReadProtect_G2(unsigned char *ComAdr, unsigned char * EPC, unsigned char * Password, unsigned char maskadr, unsigne
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- UHFReader18CSharp DLL 动态 连接 使用手册
限制150内