1 / 9
文档名称:

拉卡拉刷卡器接口回调说明.doc

格式:doc   大小:92KB   页数:9页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

拉卡拉刷卡器接口回调说明.doc

上传人:dlmus1 2018/2/12 文件大小:92 KB

下载得到文件列表

拉卡拉刷卡器接口回调说明.doc

文档介绍

文档介绍:e
Itron Interfaces Document

Shenzhen Itron
Document Revision History
日期
版本
修改人
审核人
修改内容
2012-8-10

李欣
初版
2012-11-20

李欣
增加isDevicePresent
2013-8-26

WX
修改回调函数增加返回MAC
2014-7-25

Wx
增加IC卡刷卡器通信协议
Class Control
CSwiper
控制器类负责与刷卡器交互,刷卡器相关的功能都将在此类中进行相应的封装,.
The controller class is responsible for functions related to swipe card reader interaction, swipe card reader will make the appropriate package in the class, all operations on the card are carried out by way of example of this controller. Such a singleton.
CSwiperStateChangedListener
实现此接口的对象与CSwiperController控制器绑定,控制器会回调接口中相应的方法,实现刷卡器事件驱动机制
Object that implements this interface and CSwiperController controller binding, the controller callback interface appropriate method to achieve event-driven mechanism card reader
CSwiper

Construction method
(Context, cSwiperListener);


function:
Void startCSwiper(int ctrlmode, byte[] random, byte[] appenddata, int time)
Start CSwiper function blocking model
parameter description:
Ctrlmode: Control flag
bit0=0/1
Indicates there is equipment generates random / generated by the parties。
When produced by the parties, love brush produces only 4 bytes. If the phone side is less than 4 bytes, then love will brush up before the 4-byte FF
Bit1=0/1 Do not return the terminal d