tertiary bitmap

77 views
Skip to first unread message

JL

unread,
Feb 7, 2007, 2:38:55 AM2/7/07
to jPOS Users
Is it possible to config jpos.xml to have tertiary bitmap field
encoded right after secondary bitmap? For example, the standard
encoding order will be MTI, primary bitmap, secondary bitmap, field
2, ..., field 64, tertiary bitmap(field65), ...What the spec wants is
MTI, primary bitmap, secondary bitmap, tertiary bitmap, field
2 ...Notice the tertiary bitmap is right after secondary bitmap.

Thanks in advance. Your help is much appreciated!

Mark Salter

unread,
Feb 7, 2007, 8:16:59 AM2/7/07
to jPOS Users

JL wrote:

> Is it possible to config jpos.xml to have tertiary bitmap field
> encoded right after secondary bitmap? For example, the standard
> encoding order will be MTI, primary bitmap, secondary bitmap, field
> 2, ..., field 64, tertiary bitmap(field65), ...What the spec wants is
> MTI, primary bitmap, secondary bitmap, tertiary bitmap, field
> 2 ...Notice the tertiary bitmap is right after secondary bitmap.

Did you try it?

Could you?

I believe that the processing of the bitmap will result in the result
you require, bit 65 is used as an indicator of the third bitmaps
presence, not as an indicator of it's position in the message.

--
Mark

jian liu

unread,
Feb 7, 2007, 11:18:42 AM2/7/07
to jpos-...@googlegroups.com
Thanks for the reply, Mark.
I did try it. Apparently, JPOS places tertiary bitmap in field 65 location, NOT after secondary bitmap. I looked the ISOBasePackager's pack and unpack methods, seems to be the case. Seems that I can override these two method in my extended packager class. But want to know if there is an easy way around.
 
I am relatively new to ISO, is the requirement (of placing third-bitmap right after second one) standard? Can anyone share your experience?
 
Again, thanks for any suggestion/recommendation.

 

Mark Salter

unread,
Feb 7, 2007, 11:45:38 AM2/7/07
to jPOS Users

jian liu wrote:

> Thanks for the reply, Mark.
> I did try it. Apparently, JPOS places tertiary bitmap in field 65 location,
> NOT after secondary bitmap. I looked the ISOBasePackager's pack and unpack
> methods, seems to be the case. Seems that I can override these two method in
> my extended packager class. But want to know if there is an easy way around.

After an unpack the third bitmap could well endup held in field 65,
but does it end up in the 'right' place after packing?

I recall previous questions around this subject, but will try and
confirm what should happen (and how it can be controlled) later today.

> I am relatively new to ISO, is the requirement (of placing third-bitmap
> right after second one) standard? Can anyone share your experience?

I feel it is, but it can and probably does vary from interface to
interface.

I wonder if we need to be clear...
...have you succesfully unpack()'d a message with a third bitmap, and
then repacked to find the result of the pack() does not match the
input?

--
Mark

JL

unread,
Feb 7, 2007, 1:42:26 PM2/7/07
to jPOS Users
Thanks for the quick response.

On Feb 7, 8:45 am, "Mark Salter" <marksal...@dsl.pipex.com> wrote:
> jian liu wrote:
> > Thanks for the reply, Mark.
> > I did try it. Apparently, JPOS places tertiary bitmap in field 65 location,
> > NOT after secondary bitmap. I looked the ISOBasePackager's pack and unpack
> > methods, seems to be the case. Seems that I can override these two method in
> > my extended packager class. But want to know if there is an easy way around.
>
> After an unpack the third bitmap could well endup held in field 65,
> but does it end up in the 'right' place after packing?


Tertiary bitmap field is placed in location 65 in the packed message
(byte array). Not after secondary bitmap.

>
> I recall previous questions around this subject, but will try and
> confirm what should happen (and how it can be controlled) later today.

Thank you so much for looking it up.

>
> > I am relatively new to ISO, is the requirement (of placing third-bitmap
> > right after second one) standard? Can anyone share your experience?
>
> I feel it is, but it can and probably does vary from interface to
> interface.

It seems that JPOS implements it the other way.

>
> I wonder if we need to be clear...
> ...have you succesfully unpack()'d a message with a third bitmap, and
> then repacked to find the result of the pack() does not match the
> input?

I was able to unpack a message (with tertiary bitmap) *if* the bitamp
field in the byte array is located in the field 65 location, but NOT
if its right after secondary bitmap.

>
> --
> Mark

Alejandro Revilla

unread,
Feb 7, 2007, 3:33:27 PM2/7/07
to jpos-...@googlegroups.com
> > > I am relatively new to ISO, is the requirement (of placing third-bitmap
> > > right after second one) standard? Can anyone share your experience?
> >
> > I feel it is, but it can and probably does vary from interface to
> > interface.
>
> It seems that JPOS implements it the other way.
>
jPOS uses ISOUtil.bitSet2byte to produce the bitmap which places the
third bitmap right after the second one.

>
> I was able to unpack a message (with tertiary bitmap) *if* the bitamp
> field in the byte array is located in the field 65 location, but NOT
> if its right after secondary bitmap.
>

Have you specified a length of 24 for the bitmap field? (field 1)

Mark Salter

unread,
Feb 7, 2007, 4:00:36 PM2/7/07
to jpos-...@googlegroups.com
Alejandro Revilla wrote:
> Have you specified a length of 24 for the bitmap field? (field 1)
Thank you Alejandro, this is the key Jian!

Am I right in thinking jpos6 is also a requirement, looking at the
previous version, the ISOUtil.bitSet2byte appears not to mention 192 as
an upper limit?

--
Mark

JL

unread,
Feb 7, 2007, 7:17:55 PM2/7/07
to jPOS Users
Mark, Alejandro, thanks for the help.
I updated field 1 to be size 24 and it doesn't work using jpos5. So I
assume that I have to get jpos6?

Alejandro Revilla

unread,
Feb 7, 2007, 7:51:44 PM2/7/07
to jpos-...@googlegroups.com
>
> Mark, Alejandro, thanks for the help.
> I updated field 1 to be size 24 and it doesn't work using jpos5. So I
> assume that I have to get jpos6?
>
I think so, looking at svn log I see:

------------------------------------------------------------------------
r2371 | apr | 2006-09-19 09:03:52 -0300 (Tue, 19 Sep 2006) | 2 lines

reworked 3rd bitmap support

I'm afraid you want to use jPOS 6.

JL

unread,
Feb 8, 2007, 2:45:19 AM2/8/07
to jPOS Users
Thank you!
Reply all
Reply to author
Forward
0 new messages