- 1、本文档共9页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
ItronInterfacesDocument
e
Itron Interfaces Document
V4.0
Shenzhen Itron
Document Revision History
日期 版本 修改人 审核人 修改内容 2012-8-10 V1.0 李欣 初版 2012-11-20 V1.2 李欣 增加isDevicePresent 2013-8-26 V3.0 WX 修改回调函数增加返回MAC 2014-7-25 V3.1 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 CSwiper.GetInstance(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 data /Return to terminal data MAC
Bit2=0/1 Card number is not blocked /
Card number is blocked
Random: max length 4 bytes
Appenddata: additional?data
,max length 100bytes
Time: TimeOut
void stopCSwiper()
Stop user operation
void deleteCDwiper()
Release Resource
String getKsn() Return Terminal SN
boolean isDevicePresent()
Int getTerminalType() Return Terminal type
0 smart pos
03:i30+
04:hsm20
05:i21
06: i21B Boolean UpdateTerminalParameters(int index, int page, byte[] data) IC Card Public key/ AID
您可能关注的文档
- DIGITALPHTOTFRAME数位相框-新齐发报关.doc
- DesigningaBluetoothTransceiverinRFCMOS.doc
- DigitalSamplingOscilloscope-仪器信息网.doc
- DigitalComm.ppt-中正大学.ppt
- Ch7-个人网站网路硬碟.ppt
- DigitalSignalProcessing-上海海事大学信息工程学院.ppt
- di_7zhang_bian_xing_de_shi_xu_fen_xi_he_pin_pu_fen_xi_fa_2.ppt.ppt
- Dept.RE,CSU.ppt
- doc-浙江师范大学外国语学院.doc
- DLS-37DS光电取证系统(定).doc-珠海.doc
- 江苏省泰州市姜堰区实验初级中学2026届九年级10月月考物理试题.doc
- 2025简历个人自我评价简洁10篇.docx
- 七年级历史教案大全.docx
- 镇党委书记在镇年轻干部学习研讨会上的讲话.docx
- 医院社保管理制度范文(3篇) .pdf
- 2025年辽宁工程职业学院单招语文2019-2024历年真题考点试卷含答案解析.docx
- 2025年鹤壁汽车工程职业学院单招职业技能测试近5年真题考点含答案解析.docx
- 2025年黑龙江商业职业学院单招职业技能测试近5年真题考点含答案解析.docx
- 2025年江苏城乡建设职业学院单招英语2014-2024历年真题考点试卷摘选含答案解析.docx
- 2025年石家庄理工职业学院单招职业技能测试近5年真题考点含答案解析.docx
文档评论(0)