Jul 24, 2012; 11:28
Justin Purdie
Encoding help
I'm working on a project where I need to integrate with some older tech.
I've been given a specification in which I need to build a string following
this format:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|0|0|0|0|0| Ver |1|1 1 1 1 1 1 0| length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|0 0 0 0 0| C D | PROTEC| BFLAG | Sender HLD |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Recipient HLD |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Length
This field indicates the number of bytes of the whole command, header
included. The only possible values are equal to 6 bytes or 10 bytes.
Elsewhere in the docs, the "CD" field (the other fields are irrelevant for
my question) is mapped to :
CD
This field specifies the Coding
000 : 5 bits (padded baudot)
010 : 6 bits (IPARS)
100 : 7 bits (ASCII)
110 : 8 bits (EBCDIC)
xx1 : R.F.U
My question is, what format/encoding allows that string of 80 characters to
be 6 or 10 bytes. None of those encodings seem to give me the right byte
size, everything comes out to be more. Does anyone have any insight on this?
Any help is appreciated. Thanks in advance.
Justin Purdie
SkyVantage Development
US Ph. +1-801-649-2925 option 305
US Fax. +1-419-828-6643
Skype (Calls only - no chat): skyvantage
Email: support@skyvantage.com
twitter: http://twitter.com/skyvantage
facebook: http://www.facebook.com/SkyVantage
---
This message may contain confidential and/or privileged information of
SkyVantage Corporation and its affiliated companies. If you are not the
intended recipient, please (i) do not disclose, copy, distribute, or use
this information, (ii) advise the sender by return e-mail, and (iii)
delete all copies from your computer. Your cooperation is greatly
appreciated.
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>