org.openmuc.jmbus.internal
Class MBusLPdu
java.lang.Object
org.openmuc.jmbus.internal.MBusLPdu
public class MBusLPdu
- extends java.lang.Object
Represent and parse a data link layer message. Data link layer according to EN 13757-2 (wired MBUS). Such messages
are in format FT 1.2 according to IEC 870-5-2:1992.
Constructor Summary |
MBusLPdu(byte[] lpdu)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MSG_TYPE_SIMPLE_CHAR
public static final int MSG_TYPE_SIMPLE_CHAR
- See Also:
- Constant Field Values
MSG_TYPE_SHORT_MSG
public static final int MSG_TYPE_SHORT_MSG
- See Also:
- Constant Field Values
MSG_TYPE_LONG_MSG
public static final int MSG_TYPE_LONG_MSG
- See Also:
- Constant Field Values
MSG_TYPE_UNKNOWN
public static final int MSG_TYPE_UNKNOWN
- See Also:
- Constant Field Values
msgType
public int msgType
cField
public byte cField
ciField
public short ciField
aField
public byte aField
length
public short length
checksum
public short checksum
lpdu
protected byte[] lpdu
apduStart
protected int apduStart
apduLength
protected int apduLength
MBusLPdu
public MBusLPdu(byte[] lpdu)
getAPDU
public java.nio.ByteBuffer getAPDU()
getAField
public byte getAField()
getCField
public byte getCField()
getType
public int getType()
parse
public void parse()
throws java.io.IOException
- Throws:
java.io.IOException
getRawMessage
public byte[] getRawMessage()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object