org.openmuc.j60870
public class Connection extends java.lang.Object
ClientSap
or passed to ServerSapListener
. Once it has been closed it cannot be opened again. A newly created connection
has successfully build up a TCP/IP connection to the server. Before receiving ASDUs or sending commands one has to
call startDataTransfer(ConnectionEventListener)
or
waitForStartDT(int, ConnectionEventListener)
. Afterwards incoming ASDUs are forwarded to the
ConnectionEventListener
. Incoming ASDUs are queued so that ConnectionEventListener.newASdu(ASdu)
is
never called simultaneously for the same connection. Note that the ASduListener is not notified of incoming
confirmation messages (CONs).
Connection offers a method for every possible command defined by IEC 60870 (e.g. singleCommand). Every command method
will block until a the corresponding confirmation message was received. Every command function may throw an
IOException indicating a fatal connection error. In this case the connection will be automatically closed and a new
connection will have to be built up.Modifier and Type | Method and Description |
---|---|
void |
ackFileOrSection(int commonAddress,
int informationObjectAddress,
IeNameOfFile nameOfFile,
IeNameOfSection nameOfSection,
IeAckFileOrSectionQualifier qualifier) |
void |
bitStringCommand(int commonAddress,
CauseOfTransmission cot,
int informationObjectAddress,
IeBinaryStateInformation binaryStateInformation)
Sends a bitstring of 32 bit (C_BO_NA_1, TI: 51) and blocks until a confirmation is received.
|
void |
bitStringCommandWithTimeTag(int commonAddress,
CauseOfTransmission cot,
int informationObjectAddress,
IeBinaryStateInformation binaryStateInformation,
IeTime56 timeTag)
Sends a bitstring of 32 bit with time tag CP56Time2a (C_BO_TA_1, TI: 64) and blocks until a confirmation is
received.
|
void |
callOrSelectFiles(int commonAddress,
CauseOfTransmission cot,
int informationObjectAddress,
IeNameOfFile nameOfFile,
IeNameOfSection nameOfSection,
IeSelectAndCallQualifier qualifier) |
void |
close()
Will close the TCP connection to the server if its still open and free any resources of this connection.
|
void |
counterInterrogation(int commonAddress,
CauseOfTransmission cot,
IeQualifierOfCounterInterrogation qualifier)
Sends a counter interrogation command (C_CI_NA_1, TI: 101) and blocks until a confirmation is received.
|
void |
delayAcquisitionCommand(int commonAddress,
CauseOfTransmission cot,
IeTime16 time)
Sends a delay acquisition command (C_CD_NA_1, TI: 106) and blocks until a confirmation is received.
|
void |
doubleCommand(int commonAddress,
CauseOfTransmission cot,
int informationObjectAddress,
IeDoubleCommand doubleCommand)
Sends a double command (C_DC_NA_1, TI: 46) and blocks until a confirmation is received.
|
void |
doubleCommandWithTimeTag(int commonAddress,
CauseOfTransmission cot,
int informationObjectAddress,
IeDoubleCommand doubleCommand,
IeTime56 timeTag)
Sends a double command with time tag CP56Time2a (C_DC_TA_1, TI: 59) and blocks until a confirmation is received.
|
void |
fileReady(int commonAddress,
int informationObjectAddress,
IeNameOfFile nameOfFile,
IeLengthOfFileOrSection lengthOfFile,
IeFileReadyQualifier qualifier) |
int |
getOriginatorAddress()
Get the configured Originator Address.
|
void |
interrogation(int commonAddress,
CauseOfTransmission cot,
IeQualifierOfInterrogation qualifier)
Sends an interrogation command (C_IC_NA_1, TI: 100) and blocks until a confirmation is received.
|
void |
lastSectionOrSegment(int commonAddress,
int informationObjectAddress,
IeNameOfFile nameOfFile,
IeNameOfSection nameOfSection,
IeLastSectionOrSegmentQualifier qualifier,
IeChecksum checksum) |
void |
parameterActivation(int commonAddress,
CauseOfTransmission cot,
int informationObjectAddress,
IeQualifierOfParameterActivation qualifier)
Sends a parameter activation (P_AC_NA_1, TI: 113) and blocks until a confirmation is received.
|
void |
parameterNormalizedValueCommand(int commonAddress,
int informationObjectAddress,
IeNormalizedValue normalizedValue,
IeQualifierOfParameterOfMeasuredValues qualifier)
Sends a parameter of measured values, normalized value (P_ME_NA_1, TI: 110) and blocks until a confirmation is
received.
|
void |
parameterScaledValueCommand(int commonAddress,
int informationObjectAddress,
IeScaledValue scaledValue,
IeQualifierOfParameterOfMeasuredValues qualifier)
Sends a parameter of measured values, scaled value (P_ME_NB_1, TI: 111) and blocks until a confirmation is
received.
|
void |
parameterShortFloatCommand(int commonAddress,
int informationObjectAddress,
IeShortFloat shortFloat,
IeQualifierOfParameterOfMeasuredValues qualifier)
Sends a parameter of measured values, short floating point number (P_ME_NC_1, TI: 112) and blocks until a
confirmation is received.
|
void |
queryLog(int commonAddress,
int informationObjectAddress,
IeNameOfFile nameOfFile,
IeTime56 rangeStartTime,
IeTime56 rangeEndTime) |
void |
readCommand(int commonAddress,
int informationObjectAddress)
Sends a read command (C_RD_NA_1, TI: 102) and blocks until a confirmation is received.
|
void |
regulatingStepCommand(int commonAddress,
CauseOfTransmission cot,
int informationObjectAddress,
IeRegulatingStepCommand regulatingStepCommand)
Sends a regulating step command (C_RC_NA_1, TI: 47) and blocks until a confirmation is received.
|
void |
regulatingStepCommandWithTimeTag(int commonAddress,
CauseOfTransmission cot,
int informationObjectAddress,
IeRegulatingStepCommand regulatingStepCommand,
IeTime56 timeTag)
Sends a regulating step command with time tag CP56Time2a (C_RC_TA_1, TI: 60) and blocks until a confirmation is
received.
|
void |
resetProcessCommand(int commonAddress,
IeQualifierOfResetProcessCommand qualifier)
Sends a reset process command (C_RP_NA_1, TI: 105) and blocks until a confirmation is received.
|
void |
sectionReady(int commonAddress,
int informationObjectAddress,
IeNameOfFile nameOfFile,
IeNameOfSection nameOfSection,
IeLengthOfFileOrSection lengthOfSection,
IeSectionReadyQualifier qualifier) |
void |
send(ASdu aSdu) |
void |
sendConfirmation(ASdu aSdu) |
void |
sendDirectory(int commonAddress,
int informationObjectAddress,
InformationElement[][] directory) |
void |
sendSegment(int commonAddress,
int informationObjectAddress,
IeNameOfFile nameOfFile,
IeNameOfSection nameOfSection,
IeFileSegment segment) |
void |
setNormalizedValueCommand(int commonAddress,
CauseOfTransmission cot,
int informationObjectAddress,
IeNormalizedValue normalizedValue,
IeQualifierOfSetPointCommand qualifier)
Sends a set-point command, normalized value (C_SE_NA_1, TI: 48) and blocks until a confirmation is received.
|
void |
setNormalizedValueCommandWithTimeTag(int commonAddress,
CauseOfTransmission cot,
int informationObjectAddress,
IeNormalizedValue normalizedValue,
IeQualifierOfSetPointCommand qualifier,
IeTime56 timeTag)
Sends a set-point command with time tag CP56Time2a, normalized value (C_SE_TA_1, TI: 61) and blocks until a
confirmation is received.
|
void |
setOriginatorAddress(int originatorAddress)
Set the Originator Address.
|
void |
setResponseTimeout(int timeout)
The response timeout is the maximum time that the client will wait for the confirmation message after sending a
command.
|
void |
setScaledValueCommand(int commonAddress,
CauseOfTransmission cot,
int informationObjectAddress,
IeScaledValue scaledValue,
IeQualifierOfSetPointCommand qualifier)
Sends a set-point command, scaled value (C_SE_NB_1, TI: 49) and blocks until a confirmation is received.
|
void |
setScaledValueCommandWithTimeTag(int commonAddress,
CauseOfTransmission cot,
int informationObjectAddress,
IeScaledValue scaledValue,
IeQualifierOfSetPointCommand qualifier,
IeTime56 timeTag)
Sends a set-point command with time tag CP56Time2a, scaled value (C_SE_TB_1, TI: 62) and blocks until a
confirmation is received.
|
void |
setShortFloatCommand(int commonAddress,
CauseOfTransmission cot,
int informationObjectAddress,
IeShortFloat shortFloat,
IeQualifierOfSetPointCommand qualifier)
Sends a set-point command, short floating point number (C_SE_NC_1, TI: 50) and blocks until a confirmation is
received.
|
void |
setShortFloatCommandWithTimeTag(int commonAddress,
CauseOfTransmission cot,
int informationObjectAddress,
IeShortFloat shortFloat,
IeQualifierOfSetPointCommand qualifier,
IeTime56 timeTag)
Sends a set-point command with time tag CP56Time2a, short floating point number (C_SE_TC_1, TI: 63) and blocks
until a confirmation is received.
|
void |
setWaitForConfirmation(boolean wait)
Sets whether the different command methods of
ClientConnection shall wait for confirmation messages
or not before returning. |
void |
singleCommand(int commonAddress,
int informationObjectAddress,
IeSingleCommand singleCommand)
Sends a single command (C_SC_NA_1, TI: 45) and blocks until a confirmation is received.
|
void |
singleCommandWithTimeTag(int commonAddress,
int informationObjectAddress,
IeSingleCommand singleCommand,
IeTime56 timeTag)
Sends a single command with time tag CP56Time2a (C_SC_TA_1, TI: 58) and blocks until a confirmation is received.
|
void |
startDataTransfer(ConnectionEventListener listener)
Starts a connection.
|
IeTime56 |
synchronizeClocks(int commonAddress,
IeTime56 time)
Sends a clock synchronization command (C_CS_NA_1, TI: 103) and blocks until a confirmation is received.
|
void |
testCommand(int commonAddress)
Sends a test command (C_TS_NA_1, TI: 104) and blocks until a confirmation is received.
|
void |
testCommandWithTimeTag(int commonAddress,
IeTestSequenceCounter testSequenceCounter,
IeTime56 time)
Sends a test command with time tag CP56Time2a (C_TS_TA_1, TI: 107) and blocks until a confirmation is received.
|
void |
waitForStartDT(int timeout,
ConnectionEventListener listener)
Waits for incoming STARTDT ACT message and response with a STARTDT CON message.
|
public void startDataTransfer(ConnectionEventListener listener) throws java.io.IOException, java.util.concurrent.TimeoutException
listener
- the listener that is notified of incoming ASDUsjava.io.IOException
- if any kind of IOException occursjava.util.concurrent.TimeoutException
- if the configured response timeout runs outpublic void waitForStartDT(int timeout, ConnectionEventListener listener) throws java.io.IOException, java.util.concurrent.TimeoutException
timeout
- the maximum time to wait for STARTDT ACT message before throwing a TimeoutException. If set to zero,
timeout is disabled.listener
- the listener that is to be notified of incoming ASDUs and disconnect eventsjava.io.IOException
- if a fatal communication error occurredjava.util.concurrent.TimeoutException
- if the given timeout runs out before the STARTDT ACT message is received.public void setResponseTimeout(int timeout)
interrogation
) will throw
a TimeoutException.public void setOriginatorAddress(int originatorAddress)
originatorAddress
- the Originator Address. Valid values are 0...255.public int getOriginatorAddress()
public void setWaitForConfirmation(boolean wait)
ClientConnection
shall wait for confirmation messages
or not before returning. If set to true the command message will only return after a confirmation message was
received or a timeout is thrown. If set to false the command functions will return immediately after the command
message was sent.wait
- whether the different command methods of ClientSap
shall wait for confirmation messages
or not. The initial value is configured through ClientSap
.public void close()
public void send(ASdu aSdu) throws java.io.IOException
java.io.IOException
public void sendConfirmation(ASdu aSdu) throws java.io.IOException
java.io.IOException
public void singleCommand(int commonAddress, int informationObjectAddress, IeSingleCommand singleCommand) throws java.io.IOException, java.util.concurrent.TimeoutException
commonAddress
- the Common ASDU Address. Valid value are 1...255 or 1...65535 for field lengths 1 or 2 respectively.informationObjectAddress
- the information object address.singleCommand
- the command to be sent.java.io.IOException
- if a fatal communication error occurred.java.util.concurrent.TimeoutException
- if the configured response timeout runs out before the confirmation message is received.public void singleCommandWithTimeTag(int commonAddress, int informationObjectAddress, IeSingleCommand singleCommand, IeTime56 timeTag) throws java.io.IOException, java.util.concurrent.TimeoutException
commonAddress
- the Common ASDU Address. Valid value are 1...255 or 1...65535 for field lengths 1 or 2 respectively.informationObjectAddress
- the information object address.singleCommand
- the command to be sent.timeTag
- the time tag to be sent.java.io.IOException
- if a fatal communication error occurred.java.util.concurrent.TimeoutException
- if the configured response timeout runs out before the confirmation message is received.public void doubleCommand(int commonAddress, CauseOfTransmission cot, int informationObjectAddress, IeDoubleCommand doubleCommand) throws java.io.IOException, java.util.concurrent.TimeoutException
commonAddress
- the Common ASDU Address. Valid value are 1...255 or 1...65535 for field lengths 1 or 2 respectively.cot
- the cause of transmission. Allowed are activation and deactivation.informationObjectAddress
- the information object address.doubleCommand
- the command to be sent.java.io.IOException
- if a fatal communication error occurred.java.util.concurrent.TimeoutException
- if the configured response timeout runs out before the confirmation message is received.public void doubleCommandWithTimeTag(int commonAddress, CauseOfTransmission cot, int informationObjectAddress, IeDoubleCommand doubleCommand, IeTime56 timeTag) throws java.io.IOException, java.util.concurrent.TimeoutException
commonAddress
- the Common ASDU Address. Valid value are 1...255 or 1...65535 for field lengths 1 or 2 respectively.cot
- the cause of transmission. Allowed are activation and deactivation.informationObjectAddress
- the information object address.doubleCommand
- the command to be sent.timeTag
- the time tag to be sent.java.io.IOException
- if a fatal communication error occurred.java.util.concurrent.TimeoutException
- if the configured response timeout runs out before the confirmation message is received.public void regulatingStepCommand(int commonAddress, CauseOfTransmission cot, int informationObjectAddress, IeRegulatingStepCommand regulatingStepCommand) throws java.io.IOException, java.util.concurrent.TimeoutException
commonAddress
- the Common ASDU Address. Valid value are 1...255 or 1...65535 for field lengths 1 or 2 respectively.cot
- the cause of transmission. Allowed are activation and deactivation.informationObjectAddress
- the information object address.regulatingStepCommand
- the command to be sent.java.io.IOException
- if a fatal communication error occurred.java.util.concurrent.TimeoutException
- if the configured response timeout runs out before the confirmation message is received.public void regulatingStepCommandWithTimeTag(int commonAddress, CauseOfTransmission cot, int informationObjectAddress, IeRegulatingStepCommand regulatingStepCommand, IeTime56 timeTag) throws java.io.IOException, java.util.concurrent.TimeoutException
commonAddress
- the Common ASDU Address. Valid value are 1...255 or 1...65535 for field lengths 1 or 2 respectively.cot
- the cause of transmission. Allowed are activation and deactivation.informationObjectAddress
- the information object address.regulatingStepCommand
- the command to be sent.timeTag
- the time tag to be sent.java.io.IOException
- if a fatal communication error occurred.java.util.concurrent.TimeoutException
- if the configured response timeout runs out before the confirmation message is received.public void setNormalizedValueCommand(int commonAddress, CauseOfTransmission cot, int informationObjectAddress, IeNormalizedValue normalizedValue, IeQualifierOfSetPointCommand qualifier) throws java.io.IOException, java.util.concurrent.TimeoutException
commonAddress
- the Common ASDU Address. Valid value are 1...255 or 1...65535 for field lengths 1 or 2 respectively.cot
- the cause of transmission. Allowed are activation and deactivation.informationObjectAddress
- the information object address.normalizedValue
- the value to be sent.qualifier
- the qualifier to be sent.java.io.IOException
- if a fatal communication error occurred.java.util.concurrent.TimeoutException
- if the configured response timeout runs out before the confirmation message is received.public void setNormalizedValueCommandWithTimeTag(int commonAddress, CauseOfTransmission cot, int informationObjectAddress, IeNormalizedValue normalizedValue, IeQualifierOfSetPointCommand qualifier, IeTime56 timeTag) throws java.io.IOException, java.util.concurrent.TimeoutException
commonAddress
- the Common ASDU Address. Valid value are 1...255 or 1...65535 for field lengths 1 or 2 respectively.cot
- the cause of transmission. Allowed are activation and deactivation.informationObjectAddress
- the information object address.normalizedValue
- the value to be sent.qualifier
- the qualifier to be sent.timeTag
- the time tag to be sent.java.io.IOException
- if a fatal communication error occurred.java.util.concurrent.TimeoutException
- if the configured response timeout runs out before the confirmation message is received.public void setScaledValueCommand(int commonAddress, CauseOfTransmission cot, int informationObjectAddress, IeScaledValue scaledValue, IeQualifierOfSetPointCommand qualifier) throws java.io.IOException, java.util.concurrent.TimeoutException
commonAddress
- the Common ASDU Address. Valid value are 1...255 or 1...65535 for field lengths 1 or 2 respectively.cot
- the cause of transmission. Allowed are activation and deactivation.informationObjectAddress
- the information object address.scaledValue
- the value to be sent.qualifier
- the qualifier to be sent.java.io.IOException
- if a fatal communication error occurred.java.util.concurrent.TimeoutException
- if the configured response timeout runs out before the confirmation message is received.public void setScaledValueCommandWithTimeTag(int commonAddress, CauseOfTransmission cot, int informationObjectAddress, IeScaledValue scaledValue, IeQualifierOfSetPointCommand qualifier, IeTime56 timeTag) throws java.io.IOException, java.util.concurrent.TimeoutException
commonAddress
- the Common ASDU Address. Valid value are 1...255 or 1...65535 for field lengths 1 or 2 respectively.cot
- the cause of transmission. Allowed are activation and deactivation.informationObjectAddress
- the information object address.scaledValue
- the value to be sent.qualifier
- the qualifier to be sent.timeTag
- the time tag to be sent.java.io.IOException
- if a fatal communication error occurred.java.util.concurrent.TimeoutException
- if the configured response timeout runs out before the confirmation message is received.public void setShortFloatCommand(int commonAddress, CauseOfTransmission cot, int informationObjectAddress, IeShortFloat shortFloat, IeQualifierOfSetPointCommand qualifier) throws java.io.IOException, java.util.concurrent.TimeoutException
commonAddress
- the Common ASDU Address. Valid value are 1...255 or 1...65535 for field lengths 1 or 2 respectively.cot
- the cause of transmission. Allowed are activation and deactivation.informationObjectAddress
- the information object address.shortFloat
- the value to be sent.qualifier
- the qualifier to be sent.java.io.IOException
- if a fatal communication error occurred.java.util.concurrent.TimeoutException
- if the configured response timeout runs out before the confirmation message is received.public void setShortFloatCommandWithTimeTag(int commonAddress, CauseOfTransmission cot, int informationObjectAddress, IeShortFloat shortFloat, IeQualifierOfSetPointCommand qualifier, IeTime56 timeTag) throws java.io.IOException, java.util.concurrent.TimeoutException
commonAddress
- the Common ASDU Address. Valid value are 1...255 or 1...65535 for field lengths 1 or 2 respectively.cot
- the cause of transmission. Allowed are activation and deactivation.informationObjectAddress
- the information object address.shortFloat
- the value to be sent.qualifier
- the qualifier to be sent.timeTag
- the time tag to be sent.java.io.IOException
- if a fatal communication error occurred.java.util.concurrent.TimeoutException
- if the configured response timeout runs out before the confirmation message is received.public void bitStringCommand(int commonAddress, CauseOfTransmission cot, int informationObjectAddress, IeBinaryStateInformation binaryStateInformation) throws java.io.IOException, java.util.concurrent.TimeoutException
commonAddress
- the Common ASDU Address. Valid value are 1...255 or 1...65535 for field lengths 1 or 2 respectively.cot
- the cause of transmission. Allowed are activation and deactivation.informationObjectAddress
- the information object address.binaryStateInformation
- the value to be sent.java.io.IOException
- if a fatal communication error occurred.java.util.concurrent.TimeoutException
- if the configured response timeout runs out before the confirmation message is received.public void bitStringCommandWithTimeTag(int commonAddress, CauseOfTransmission cot, int informationObjectAddress, IeBinaryStateInformation binaryStateInformation, IeTime56 timeTag) throws java.io.IOException, java.util.concurrent.TimeoutException
commonAddress
- the Common ASDU Address. Valid value are 1...255 or 1...65535 for field lengths 1 or 2 respectively.cot
- the cause of transmission. Allowed are activation and deactivation.informationObjectAddress
- the information object address.binaryStateInformation
- the value to be sent.timeTag
- the time tag to be sent.java.io.IOException
- if a fatal communication error occurred.java.util.concurrent.TimeoutException
- if the configured response timeout runs out before the confirmation message is received.public void interrogation(int commonAddress, CauseOfTransmission cot, IeQualifierOfInterrogation qualifier) throws java.io.IOException, java.util.concurrent.TimeoutException
commonAddress
- the Common ASDU Address. Valid value are 1...255 or 1...65535 for field lengths 1 or 2 respectively.cot
- the cause of transmission. Allowed are activation and deactivation.qualifier
- the qualifier to be sent.java.io.IOException
- if a fatal communication error occurred.java.util.concurrent.TimeoutException
- if the configured response timeout runs out before the confirmation message is received.public void counterInterrogation(int commonAddress, CauseOfTransmission cot, IeQualifierOfCounterInterrogation qualifier) throws java.io.IOException, java.util.concurrent.TimeoutException
commonAddress
- the Common ASDU Address. Valid value are 1...255 or 1...65535 for field lengths 1 or 2 respectively.cot
- the cause of transmission. Allowed are activation and deactivation.qualifier
- the qualifier to be sent.java.io.IOException
- if a fatal communication error occurred.java.util.concurrent.TimeoutException
- if the configured response timeout runs out before the confirmation message is received.public void readCommand(int commonAddress, int informationObjectAddress) throws java.io.IOException, java.util.concurrent.TimeoutException
commonAddress
- the Common ASDU Address. Valid value are 1...255 or 1...65535 for field lengths 1 or 2 respectively.informationObjectAddress
- the information object address.java.io.IOException
- if a fatal communication error occurred.java.util.concurrent.TimeoutException
- if the configured response timeout runs out before the confirmation message is received.public IeTime56 synchronizeClocks(int commonAddress, IeTime56 time) throws java.io.IOException, java.util.concurrent.TimeoutException
commonAddress
- the Common ASDU Address. Valid value are 1...255 or 1...65535 for field lengths 1 or 2 respectively.time
- the time to be sent.java.io.IOException
- if a fatal communication error occurred.java.util.concurrent.TimeoutException
- if the configured response timeout runs out before the confirmation message is received.public void testCommand(int commonAddress) throws java.io.IOException, java.util.concurrent.TimeoutException
commonAddress
- the Common ASDU Address. Valid value are 1...255 or 1...65535 for field lengths 1 or 2 respectively.java.io.IOException
- if a fatal communication error occurred.java.util.concurrent.TimeoutException
- if the configured response timeout runs out before the confirmation message is received.public void resetProcessCommand(int commonAddress, IeQualifierOfResetProcessCommand qualifier) throws java.io.IOException, java.util.concurrent.TimeoutException
commonAddress
- the Common ASDU Address. Valid value are 1...255 or 1...65535 for field lengths 1 or 2 respectively.qualifier
- the qualifier to be sent.java.io.IOException
- if a fatal communication error occurred.java.util.concurrent.TimeoutException
- if the configured response timeout runs out before the confirmation message is received.public void delayAcquisitionCommand(int commonAddress, CauseOfTransmission cot, IeTime16 time) throws java.io.IOException, java.util.concurrent.TimeoutException
commonAddress
- the Common ASDU Address. Valid value are 1...255 or 1...65535 for field lengths 1 or 2 respectively.cot
- the cause of transmission. Allowed are activation and spontaneous.time
- the time to be sent.java.io.IOException
- if a fatal communication error occurred.java.util.concurrent.TimeoutException
- if the configured response timeout runs out before the confirmation message is received.public void testCommandWithTimeTag(int commonAddress, IeTestSequenceCounter testSequenceCounter, IeTime56 time) throws java.io.IOException, java.util.concurrent.TimeoutException
commonAddress
- the Common ASDU Address. Valid value are 1...255 or 1...65535 for field lengths 1 or 2 respectively.testSequenceCounter
- the value to be sent.time
- the time to be sent.java.io.IOException
- if a fatal communication error occurred.java.util.concurrent.TimeoutException
- if the configured response timeout runs out before the confirmation message is received.public void parameterNormalizedValueCommand(int commonAddress, int informationObjectAddress, IeNormalizedValue normalizedValue, IeQualifierOfParameterOfMeasuredValues qualifier) throws java.io.IOException, java.util.concurrent.TimeoutException
commonAddress
- the Common ASDU Address. Valid value are 1...255 or 1...65535 for field lengths 1 or 2 respectively.informationObjectAddress
- the information object address.normalizedValue
- the value to be sent.qualifier
- the qualifier to be sent.java.io.IOException
- if a fatal communication error occurred.java.util.concurrent.TimeoutException
- if the configured response timeout runs out before the confirmation message is received.public void parameterScaledValueCommand(int commonAddress, int informationObjectAddress, IeScaledValue scaledValue, IeQualifierOfParameterOfMeasuredValues qualifier) throws java.io.IOException, java.util.concurrent.TimeoutException
commonAddress
- the Common ASDU Address. Valid value are 1...255 or 1...65535 for field lengths 1 or 2 respectively.informationObjectAddress
- the information object address.scaledValue
- the value to be sent.qualifier
- the qualifier to be sent.java.io.IOException
- if a fatal communication error occurred.java.util.concurrent.TimeoutException
- if the configured response timeout runs out before the confirmation message is received.public void parameterShortFloatCommand(int commonAddress, int informationObjectAddress, IeShortFloat shortFloat, IeQualifierOfParameterOfMeasuredValues qualifier) throws java.io.IOException, java.util.concurrent.TimeoutException
commonAddress
- the Common ASDU Address. Valid value are 1...255 or 1...65535 for field lengths 1 or 2 respectively.informationObjectAddress
- the information object address.shortFloat
- the value to be sent.qualifier
- the qualifier to be sent.java.io.IOException
- if a fatal communication error occurred.java.util.concurrent.TimeoutException
- if the configured response timeout runs out before the confirmation message is received.public void parameterActivation(int commonAddress, CauseOfTransmission cot, int informationObjectAddress, IeQualifierOfParameterActivation qualifier) throws java.io.IOException, java.util.concurrent.TimeoutException
commonAddress
- the Common ASDU Address. Valid value are 1...255 or 1...65535 for field lengths 1 or 2 respectively.cot
- the cause of transmission. Allowed are activation and deactivation.informationObjectAddress
- the information object address.qualifier
- the qualifier to be sent.java.io.IOException
- if a fatal communication error occurred.java.util.concurrent.TimeoutException
- if the configured response timeout runs out before the confirmation message is received.public void fileReady(int commonAddress, int informationObjectAddress, IeNameOfFile nameOfFile, IeLengthOfFileOrSection lengthOfFile, IeFileReadyQualifier qualifier) throws java.io.IOException, java.util.concurrent.TimeoutException
java.io.IOException
java.util.concurrent.TimeoutException
public void sectionReady(int commonAddress, int informationObjectAddress, IeNameOfFile nameOfFile, IeNameOfSection nameOfSection, IeLengthOfFileOrSection lengthOfSection, IeSectionReadyQualifier qualifier) throws java.io.IOException, java.util.concurrent.TimeoutException
java.io.IOException
java.util.concurrent.TimeoutException
public void callOrSelectFiles(int commonAddress, CauseOfTransmission cot, int informationObjectAddress, IeNameOfFile nameOfFile, IeNameOfSection nameOfSection, IeSelectAndCallQualifier qualifier) throws java.io.IOException, java.util.concurrent.TimeoutException
java.io.IOException
java.util.concurrent.TimeoutException
public void lastSectionOrSegment(int commonAddress, int informationObjectAddress, IeNameOfFile nameOfFile, IeNameOfSection nameOfSection, IeLastSectionOrSegmentQualifier qualifier, IeChecksum checksum) throws java.io.IOException, java.util.concurrent.TimeoutException
java.io.IOException
java.util.concurrent.TimeoutException
public void ackFileOrSection(int commonAddress, int informationObjectAddress, IeNameOfFile nameOfFile, IeNameOfSection nameOfSection, IeAckFileOrSectionQualifier qualifier) throws java.io.IOException, java.util.concurrent.TimeoutException
java.io.IOException
java.util.concurrent.TimeoutException
public void sendSegment(int commonAddress, int informationObjectAddress, IeNameOfFile nameOfFile, IeNameOfSection nameOfSection, IeFileSegment segment) throws java.io.IOException, java.util.concurrent.TimeoutException
java.io.IOException
java.util.concurrent.TimeoutException
public void sendDirectory(int commonAddress, int informationObjectAddress, InformationElement[][] directory) throws java.io.IOException, java.util.concurrent.TimeoutException
java.io.IOException
java.util.concurrent.TimeoutException
public void queryLog(int commonAddress, int informationObjectAddress, IeNameOfFile nameOfFile, IeTime56 rangeStartTime, IeTime56 rangeEndTime) throws java.io.IOException, java.util.concurrent.TimeoutException
java.io.IOException
java.util.concurrent.TimeoutException