Error unpacking field 35.

30 views
Skip to first unread message

Shekhar Jadhav

unread,
Mar 2, 2017, 6:44:21 AM3/2/17
to jPOS Users
Hi all,

I am facing problems in splitting up DE 35  my packager xml for DE 35 looks like this.
<isofield id="35" length="37" name="Track 2 data" class="org.jpos.iso.IFA_LLBINARY" />

DE 35 data looks like this
[ 374622441715101175D26071361916993999999F ]
In which 37 is a length and rest of the data.

when i unpacked this field i getting data till second last digit looks like[374622441715005175D23071261916092999999]
F goes to next field. because of this remaining fields are not gets data correctly.

so can you help me to read DE-35 correctly with all data till including F .



Alejandro Revilla

unread,
Mar 2, 2017, 8:41:08 AM3/2/17
to jPOS Users

Are you sure this is what you get over the wire?

0000  33 37 34 36 32 32 34 34  31 37 31 35 31 30 31 31  3746224417151011
0010  37 35 44 32 36 30 37 31  33 36 31 39 31 36 39 39  75D2607136191699
0020  33 39 39 39 39 39 39 46                           3999999F

It seems to me you are converting it to HEX and then using IFA_LLBINARY. If you use the raw data and then use IFB_LLNUM, jPOS would take care of that extra ‘F’ padding for you.


Shekhar Jadhav

unread,
Mar 2, 2017, 11:50:30 PM3/2/17
to jPOS Users
so you mean .I have to provide raw data format which is[ 2, 0, 48, 32, 5, -128, 32, -64, 16, 4, 0, 16, 0, 0, 0, 0, 5, 80, -128, 0, 0, -125, 0, 33, 0, 1, 0, 55, 70, 34, 68, 23, 21, 0, 81, 117, -46, 48, 113, 38, 25, 22, 9, 41, -103, -103, -97, 49, 50, 51, 52, 53, 54, 55, 56, 49, 50, 51, 52, 53, 54, 55, 56, 32, 32, 32, 32, 32, 32, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 48, 48, 48, 48, 49, 57] .
Reply all
Reply to author
Forward
0 new messages