mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-25 14:55:55 +01:00
parent
5d89c9a885
commit
37d910d318
@ -44,6 +44,10 @@ public enum DSMRErrorStatus {
|
|||||||
* Serial port doesn't support the configured settings.
|
* Serial port doesn't support the configured settings.
|
||||||
*/
|
*/
|
||||||
PORT_NOT_COMPATIBLE(true),
|
PORT_NOT_COMPATIBLE(true),
|
||||||
|
/**
|
||||||
|
* Serial port time out or illegal state.
|
||||||
|
*/
|
||||||
|
PORT_PORT_TIMEOUT(false),
|
||||||
/**
|
/**
|
||||||
* Reading data from the serial port failed.
|
* Reading data from the serial port failed.
|
||||||
*/
|
*/
|
||||||
|
@ -172,6 +172,10 @@ public class DSMRSerialConnector extends DSMRBaseConnector implements SerialPort
|
|||||||
logger.warn("Possible bug because a new serial port value was set during opening new port.");
|
logger.warn("Possible bug because a new serial port value was set during opening new port.");
|
||||||
errorStatus = DSMRErrorStatus.PORT_INTERNAL_ERROR;
|
errorStatus = DSMRErrorStatus.PORT_INTERNAL_ERROR;
|
||||||
}
|
}
|
||||||
|
} catch (final IllegalStateException ise) {
|
||||||
|
logger.debug("Failed communicating, probably time out", ise);
|
||||||
|
|
||||||
|
errorStatus = DSMRErrorStatus.PORT_PORT_TIMEOUT;
|
||||||
} catch (final IOException ioe) {
|
} catch (final IOException ioe) {
|
||||||
logger.debug("Failed to get inputstream for serialPort", ioe);
|
logger.debug("Failed to get inputstream for serialPort", ioe);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user