org.openmuc.jmbus.internal
Class MBusLSap
java.lang.Object
org.openmuc.jmbus.internal.MBusLSap
public class MBusLSap
- extends java.lang.Object
M-Bus Link Layer Service Access Point
Method Summary |
void |
closeSerialPort()
|
void |
configureSerialPort(java.lang.String portName,
java.lang.String serialPortParams)
|
MBusLPdu |
receiveMessage(int timeout)
|
boolean |
selectComponent(int id,
short manuf,
byte version,
byte medium,
int timeout)
|
boolean |
sendLongMessage(int slaveAddr,
int cmd,
int ci,
int length,
byte[] data)
|
void |
sendShortMessage(int slaveAddr,
int cmd)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MBusLSap
public MBusLSap()
selectComponent
public boolean selectComponent(int id,
short manuf,
byte version,
byte medium,
int timeout)
throws java.util.concurrent.TimeoutException,
java.io.IOException
- Throws:
java.util.concurrent.TimeoutException
java.io.IOException
receiveMessage
public MBusLPdu receiveMessage(int timeout)
throws java.util.concurrent.TimeoutException,
java.io.IOException
- Throws:
java.util.concurrent.TimeoutException
java.io.IOException
sendShortMessage
public void sendShortMessage(int slaveAddr,
int cmd)
throws java.io.IOException
- Throws:
java.io.IOException
sendLongMessage
public boolean sendLongMessage(int slaveAddr,
int cmd,
int ci,
int length,
byte[] data)
configureSerialPort
public void configureSerialPort(java.lang.String portName,
java.lang.String serialPortParams)
throws java.io.IOException,
java.lang.IllegalArgumentException
- Throws:
java.io.IOException
java.lang.IllegalArgumentException
closeSerialPort
public void closeSerialPort()