java版实现银联8583
工具验证
报文譬如:
0057600501000061310031110808000020000000c0001600000137333738323231343839383431313334313331303031340011000000000030002553657175656e6365204e6f31323330363037333738323231340003303031
工具1:
工具2:
java代码运行打印结果
解包、组包、签到
->send:
0057600501000061310031110808000020000000c0001600000137333738323231343839383431313334313331303031340011000000000030002553657175656e6365204e6f31323330363037333738323231340003303031
Pack{len=0057, tpdu=6005010000, head=613100311108, msgType=0800, bitMap=0020000000c00016, txLen=89, txBuffer=0057600501000061310031110808000020000000c0001600000137333738323231343839383431313334313331303031340011000000000030002553657175656e6365204e6f313233303630373337383232313400033030310000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000}
Len: 0057
TPDU: 6005010000
Head: 613100311108
MsgType: 0800
BitMap: 0020000000c00016
-------------------------------------------------
[field:11] [000001]
-------------------------------------------------
[field:41] [3733373832323134]
-------------------------------------------------
[field:42] [383938343131333431333130303134]
-------------------------------------------------
[field:60] [len:0011] [000000000030]
-------------------------------------------------
[field:62] [len:0025] [53657175656e6365204e6f3132333036303733373832323134]
-------------------------------------------------
[field:63] [len:0003] [303031]
-------------------------------------------------
->recv:007960000005016131003111080810003800010ac0001400000111544106050800094900313135343431363333333930303037333738323231343839383431313334313331303031340011000009410030004023b4ab10887c83d6e9ac77d47a72eef4f0ea9fb098afc6efe09988520000000000000000b62edf0f
->ok 解析成功!
pinkey:XXXXX
<-ok PIK正确
mackey:XXXXX
<-ok MAC正确
签到成功!
Len: 0079
TPDU: 6005010000
Head: 613100311108
MsgType: 0810
BitMap: 003800010ac00014
-------------------------------------------------
[field:11] [000001]
-------------------------------------------------
[field:12] [115441]
-------------------------------------------------
[field:13] [0605]
-------------------------------------------------
[field:32] [len:08] [00094900]
-------------------------------------------------
[field:37] [313135343431363333333930]
-------------------------------------------------
[field:39] [3030]
-------------------------------------------------
[field:41] [3733373832323134]
-------------------------------------------------
[field:42] [383938343131333431333130303134]
-------------------------------------------------
[field:60] [len:0011] [000009410030]
-------------------------------------------------
[field:62] [len:0040] [23b4ab10887c83d6e9ac77d47a72eef4f0ea9fb098afc6efe09988520000000000000000b62edf0f]
-------------------------------------------------
工具验证
位图:0020000000c00016
16字节:11,41,42,60,62,63
解包:
0057600501000061310031110808000020000000c0001600000137333738323231343839383431313334313331303031340011000000000030002553657175656e6365204e6f31323330363037333738323231340003303031
解析详情:
报文类型 = 【0800】
TPDU = 【6005010000】
MSGHEAD = 【613100311108】
F000.位图 = 【016】【0020000000c00016】
F011.系统跟踪号 = 【006】【000001】
F041.受卡机终端标识码 = 【008】【73782214】
F042.受卡方标识码 = 【015】【898411341310014】
F060.自定义域 = 【011】【00000000003】
F062.交换中心数据 = 【025】【Sequence No12306073782214】
F063.金融网络数据 = 【003】【001】