I am using j8583 Library, and I need prepend a TPDU (10 digits in binary BCD Packed) to the message.
It´s possible ?
The header of J8583 messages only use String in ASCII.
Unfortunately I had the same issue but i found a solution. Simply you need to "pack" your message and calculate the TPDU in other variable byte[]. I assume your TDPU consist in:
<2 bytes length of the messages><1 byte: 60><2 bytes origin><2 bytes destiny>
If you have packed your message in a byte[] and your TPDU in other byte[] simply create a new byte[] and concatenate with System.arraycopy. I assume you know how to implement this.
Regards
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.