Bitmap generate wrong field automatically jpos

590 Views Asked by At
----ISO MESSAGE-----
  MTI : 0200
    Field-2 : 169991000501589186
    Field-3 : 301000
    Field-4 : 000001000000
    Field-7 : 0620104505
    Field-11 : 177
    Field-12 : 104505
    Field-13 : 0620
    Field-15 : 1115
    Field-18 : 0000
    Field-24 : 001
    Field-28 : 00000000
    Field-32 : 1158943000
    Field-33 : 06000001
    Field-35 : 279991000501589186=0903121550
    Field-37 : 082400096515
    Field-41 : 0540
    Field-42 : 000540
    Field-43 : kkk
    Field-49 : 586
    Field-52 : 12345678

this is iso message breakdown of this binary series as you see this binary 01110010 00111010 01000001 00010001 10101000 11100000 00111111 00000000 the field from 51 to 56 is active when we activate(enable) 49 field and 52 field simultaneously then bitmap goes wrong using jpos

1

There are 1 best solutions below

0
On

@user3621756:

From your code above, what I infer is you are taking the field values wrong, ISO field bitmap representation is IFA_LLNUM for field 2 (PAN) will be 16|9991000501589186.

16 is the field length not the data itself and so field 35 (track 2 data for card).

Have kept the pipe to differentiate the length and the field value

MTI : 0200
    Field-2 : 169991000501589186
    Field-3 : 301000
    Field-4 : 000001000000
    Field-7 : 0620104505
    Field-11 : 177
    Field-12 : 104505
    Field-13 : 0620
    Field-15 : 1115
    Field-18 : 0000
    Field-24 : 001
    Field-28 : 00000000
    Field-32 : 1158943000
    Field-33 : 06000001
    Field-35 : 279991000501589186=0903121550
    Field-37 : 082400096515
    Field-41 : 0540
    Field-42 : 000540
    Field-43 : kkk
    Field-49 : 586
    Field-52 : 12345678 

Bitmaps are generated by ISOMsg class when you invoke the method .pack(), but you can also do reverse by .unpack, in the end pack should give you the right Message with bitmaps, and unpack should get you the correct field values.

If your bitmap is incorrect you shall receive errors while you unpack.