嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):78630559
本次赞助数额为: 2 元微信扫码支付:2 元
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
C#:V9门锁接口函数
调用函数库:提供Windows下的32位动态连接库V9RF.DLL;函数详细操作使用说明可以查看代码事例;
功能:读DLL版本, C 原型:int __stdcall GetDLLVersionA(uchar *bufVer) 返回版本号;
//-----------------------------------------------------------------------------------//
功能:发卡器鸣叫一声 C 原型:int __stdcall Buzzer(unsigned char t)
参数说明:t à鸣叫时间,乘以10毫秒;建议t=20..50之间;返回:0表示成功,否则失败
//-----------------------------------------------------------------------------------//
功能:发行“客人卡”,又称“宾客卡”或“房卡”
C 原型:int __stdcall WriteGuestCardA (int dlsCoID,uchar CardNo,uchar dai,uchar LLock,uchar EDate[10],uchar LockNo[6],uchar *cardHexStr)
参数说明:
dlsCoID à 酒店标识,必须从现场正在使用的发卡器读取,在接口事例中有此功能获得
CardNo à 同一分钟内发卡最多16张,每发一张卡加1;也就是这个参数每次发卡成功必须加1,在同一个酒馆系统中,这个参数设定为全局变量
Dai à 屏蔽标志,0—255滚动循环,当需要把本房间前面发出去的卡进行屏蔽,这个参数必须加1,本参数是每个房间私有的变量;
LLock à 反锁标志,1能开反锁,0不能开反锁;
EDate à 退房时间10位数字字符串,包含年月日时分,各占两位
传送格式时候必须年份传2位,不要把分隔符也传送进去;例:2014 03 20 13:45传送'1403201345';
LockNo à 锁号6位数字字符串,前2位是楼栋号,中间2位是楼层号,最后2位房间编号,从门锁软件的房间定义里获取导出INI文件,酒馆软件可以进行调用门牌号对应的锁号地址;或者在门锁软件里进行查找进行组建,按照楼栋号2位,楼层号2位,房间编号2位进行组成,房间编号不是门牌号;
cardHexStr à 返回的卡数据字符串
返回:0表示成功,否则失败;1表示发卡器没有连接;-2表示没有读到有效卡片;
//-----------------------------------------------------------------------------------//
功能:读取卡片数据
C 原型:int __stdcall ReadCard(uchar d12,uchar *buffData)
buffData à 返回的卡数据字符串,有数据头551501表示成功,
从第25个字符开始的8个字符是卡的唯一号,也称为卡的ID号
返回:0表示成功,否则失败
//-----------------------------------------------------------------------------------//
功能:注销卡片
C 原型:int __stdcall CardEraseA(int dlsCoID,unsigned char *cardHexStr)
dlsCoID à 酒店标识,和发客人卡酒店标识保持一致;
cardHexStr à 返回的卡数据字符串
返回:0表示成功,否则失败;1表示发卡器没有连接;-2表示没有读到有效卡片;
//-----------------------------------------------------------------------------------//
功能:读取客人卡的信息
C 原型:int __stdcall GetGuestCardinfoA (int dlsCoID,unsigned char *cardHexStr, unsigned char *lockinfo)
dlsCoID à 当前酒店的酒店标识;cardHexStr à返回的卡数据字符串;lockinfà返回的卡锁号信息字符串;字符串分析结果有前6位锁号地址,紧接着12位的发卡时间,再接着12位的到期时间,再接就是1位反锁标志,最后8位字符是本卡的流水卡号;总共40个字符;
返回:0表示成功,否则失败,;1表示发卡器没有连接;-2表示没有读到有效卡片;
-3表示此卡非本酒店卡,或许酒店标识没有匹配;-4表示空白卡或者已经注销的卡片;
其他返回值表示不是客人卡,而是其他卡类型;
.
├── V9最新门锁接口函数例程
│ ├── C#
│ │ ├── Form1.Designer.cs
│ │ ├── Form1.cs
│ │ ├── Form1.resx
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ ├── AssemblyInfo.cs
│ │ │ ├── Resources.Designer.cs
│ │ │ ├── Resources.resx
│ │ │ ├── Settings.Designer.cs
│ │ │ └── Settings.settings
│ │ ├── WindowsFormsApplication1.csproj
│ │ ├── WindowsFormsApplication1.sln
│ │ ├── WindowsFormsApplication1.suo
│ │ ├── bin
│ │ │ ├── Debug
│ │ │ │ ├── D12F.dll
│ │ │ │ ├── MFC42D.DLL
│ │ │ │ ├── MSVCRTD.DLL
│ │ │ │ ├── V9RF.dll
│ │ │ │ ├── WindowsFormsApplication1.exe
│ │ │ │ ├── WindowsFormsApplication1.pdb
│ │ │ │ ├── WindowsFormsApplication1.vshost.exe
│ │ │ │ └── WindowsFormsApplication1.vshost.exe.manifest
│ │ │ └── Release
│ │ │ ├── WindowsFormsApplication1.exe
│ │ │ └── WindowsFormsApplication1.pdb
│ │ └── obj
│ │ ├── Debug
│ │ │ ├── TempPE
│ │ │ │ └── Properties.Resources.Designer.cs.dll
│ │ │ ├── WindowsFormsApplication1.Form1.resources
│ │ │ ├── WindowsFormsApplication1.Properties.Resources.resources
│ │ │ ├── WindowsFormsApplication1.csproj.FileListAbsolute.txt
│ │ │ ├── WindowsFormsApplication1.csproj.GenerateResource.Cache
│ │ │ ├── WindowsFormsApplication1.exe
│ │ │ └── WindowsFormsApplication1.pdb
│ │ └── Release
│ │ ├── TempPE
│ │ │ └── Properties.Resources.Designer.cs.dll
│ │ ├── WindowsFormsApplication1.Form1.resources
│ │ ├── WindowsFormsApplication1.Properties.Resources.resources
│ │ ├── WindowsFormsApplication1.csproj.FileListAbsolute.txt
│ │ ├── WindowsFormsApplication1.csproj.GenerateResource.Cache
│ │ ├── WindowsFormsApplication1.exe
│ │ └── WindowsFormsApplication1.pdb
│ ├── dephli7.0
│ │ ├── D12F.dll
│ │ ├── LOCK.cfg
│ │ ├── LOCK.dof
│ │ ├── LOCK.dpr
│ │ ├── LOCK.exe
│ │ ├── LOCK.res
│ │ ├── LOCK.~dpr
│ │ ├── MFC42D.DLL
│ │ ├── MSVCRTD.DLL
│ │ ├── Unit1.dcu
│ │ ├── Unit1.ddp
│ │ ├── Unit1.dfm
│ │ ├── Unit1.pas
│ │ ├── Unit1.~ddp
│ │ ├── Unit1.~dfm
│ │ ├── Unit1.~pas
│ │ ├── V9RF.dll
│ │ └── proRFL.lib
│ ├── v9-lOCK门锁接口说明.doc
│ └── vb6.0
│ ├── D12F.dll
│ ├── Form1.frm
│ ├── Form1.frx
│ ├── MFC42D.DLL
│ ├── MSSCCPRJ.SCC
│ ├── MSVCRTD.DLL
│ ├── Module1.bas
│ ├── Project1.vbp
│ ├── Project1.vbw
│ ├── V9RF.dll
│ └── lock.exe
└── 好例子网_V9最新门锁接口函数例程.rar
13 directories, 67 files