|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttuwien.auto.calimero.knxnetip.util.DIB
tuwien.auto.calimero.knxnetip.util.DeviceDIB
public class DeviceDIB
Represents a device description information block.
Objects of this type are immutable.
DescriptionResponse
Field Summary | |
---|---|
static short |
MEDIUM_PL110
KNX medium code for power line 110 kHz (1200 bit/s). |
static short |
MEDIUM_PL132
KNX medium code for power line 132 kHz (2400 bit/s), inherited from EHS. |
static short |
MEDIUM_RF
KNX medium code for radio frequency (868 MHz). |
static short |
MEDIUM_TP0
KNX medium code for twisted pair 0 (2400 bit/s), inherited from BatiBUS. |
static short |
MEDIUM_TP1
KNX medium code for twisted pair 1 (9600 bit/s). |
Fields inherited from class tuwien.auto.calimero.knxnetip.util.DIB |
---|
DEVICE_INFO, MFR_DATA, SUPP_SVC_FAMILIES |
Constructor Summary | |
---|---|
DeviceDIB(byte[] data,
int offset)
Creates a device DIB out of a byte array. |
Method Summary | |
---|---|
IndividualAddress |
getAddress()
Returns the device individual address. |
short |
getDeviceStatus()
Returns the device status byte. |
byte |
getInstallation()
Returns the installation number for the device. |
short |
getKNXMedium()
Returns the KNX medium code. |
java.lang.String |
getKNXMediumString()
Returns a textual representation of the KNX medium code. |
byte[] |
getMACAddress()
Returns the device Ethernet MAC address. |
java.lang.String |
getMACAddressString()
Returns a textual representation of the device Ethernet MAC address. |
byte[] |
getMulticastAddress()
Returns the device routing multicast address. |
java.lang.String |
getName()
Returns the device friendly name. |
short |
getProject()
Returns the project number for the device. |
int |
getProjectInstallID()
Returns the project-installation identifier of this device. |
byte[] |
getSerialNumber()
Returns the KNX serial number of the device. |
java.lang.String |
getSerialNumberString()
Returns a textual representation of the device KNX serial number. |
byte[] |
toByteArray()
Returns the byte representation of the whole DIB structure. |
java.lang.String |
toString()
Returns a textual representation of this device DIB. |
Methods inherited from class tuwien.auto.calimero.knxnetip.util.DIB |
---|
getDescTypeCode, getStructLength |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final short MEDIUM_PL110
public static final short MEDIUM_PL132
public static final short MEDIUM_RF
public static final short MEDIUM_TP0
public static final short MEDIUM_TP1
Constructor Detail |
---|
public DeviceDIB(byte[] data, int offset) throws KNXFormatException
data
- byte array containing device DIB structureoffset
- start offset of DIB in data
KNXFormatException
- if no DIB found or invalid structureMethod Detail |
---|
public final IndividualAddress getAddress()
IndividualAddress
public final short getDeviceStatus()
Bit 0 is programming mode flag.
public final byte getInstallation()
The installation number is the lower 4 bits of the project-installation identifier.
getProjectInstallID()
public final short getKNXMedium()
public java.lang.String getKNXMediumString()
getKNXMedium()
public final byte[] getMACAddress()
public final java.lang.String getMACAddressString()
public final byte[] getMulticastAddress()
For devices which don't implement routing, the multicast address is 0.
public final java.lang.String getName()
This name is used to display a device in textual format. The maximum name length is 30 characters.
public final short getProject()
The project number is the upper 12 bits of the project-installation identifier.
getProjectInstallID()
public final int getProjectInstallID()
This ID uniquely identifies a device in a project with more than one installation. The lowest 4 bits specify the installation number, bit 4 to 15 (MSB) contain the project number.
public final byte[] getSerialNumber()
The serial number uniquely identifies a device.
public final java.lang.String getSerialNumberString()
public byte[] toByteArray()
DIB
toByteArray
in class DIB
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |