;;;;;;;;;;;;;;;;;;;;;;;;;;;;;û
setreader %userport
;ʻiLoad
;======û==========
reset
00A404000F 7378312E73682EC9E7BBE1B1A3D5CF
compsta 90 00

;УPIN
00 20 00 00 03 %spin

00A4000002DF04
;ȡ
B0 26 00 01 04

;彻׽ն˻šʱ
<--! %jyje1=00000200
<--! %termno=FFFFFFFFFFFF
<--! %transtime=20120811 165830

<--! %keyId=01
;Ȧʼ
b0 28 00 01 0b %keyId %jyje1 %termno
;ȡαźMAC1 
<--! %balcia=@strmidh(%resp,0,4)
<--! %jyxh=@strmidh(%resp,4,2)
<--! %ricc=@strmidh(%resp,8,4)
<--! %loadmac1=@strmidh(%resp,12,4)

<--! %rand=0000000000000000
<--! %mac1data=%balcia+%jyje1+31+%termno
<--! %mac2data=%jyje1+31+%termno+%transtime

<--! %sn=%ricc+%jyxh+8000
<--! %seslk=@desjs(%sDLK01DF04,%sn,0)
<--! %smac1=@mac(%seslk,%mac1data,%rand,0)

<--! if %loadmac1 != %smac1
stop
<--! endif

<--! %smac2=@mac(%seslk,%mac2data,%rand,0)

;ִ
b0 2a 00 00 0b %transtime %smac2
;ȡTACֵ
<--! %tac=@strmidh(%resp,0,6)
;
b0 26 00 01 04
<--! %balcia=@strmid(%resp,0,8)

;ֽ
00 b2 01 44 00
compsta 9000

