Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serial commands are not send, serialPort issue? #5

Open
VinceEatWorld opened this issue Feb 10, 2020 · 0 comments
Open

Serial commands are not send, serialPort issue? #5

VinceEatWorld opened this issue Feb 10, 2020 · 0 comments

Comments

@VinceEatWorld
Copy link

Hi!

Thanks for the great work on this binding together with cyrilcc. Unfortunately I have an issue after upgrading to the latest stable release of openhab (2.5.1):

Receiving serial commands works (e.g. commands from my remote get recognized), but it doesn't appear to be sending any serial commands. Issue is similar to what is described here

I readthat between 2.4.0-1 and 2.5.1 some things have changed in the way serial ports are handeled?

For example, the DSMR (Smart meter binding), imports different modules to handle the serial, see DSMRSerialConnector.java as follows:

import org.eclipse.smarthome.io.transport.serial.PortInUseException;
import org.eclipse.smarthome.io.transport.serial.SerialPort;
import org.eclipse.smarthome.io.transport.serial.SerialPortEvent;
import org.eclipse.smarthome.io.transport.serial.SerialPortEventListener;
import org.eclipse.smarthome.io.transport.serial.SerialPortIdentifier;
import org.eclipse.smarthome.io.transport.serial.SerialPortManager;
import org.eclipse.smarthome.io.transport.serial.UnsupportedCommOperationException;_

In the RFlink binding, the RfLinkSerialConnector.java still imports the serial port modules as:

import gnu.io.CommPortIdentifier;
import gnu.io.SerialPort;
import gnu.io.SerialPortEvent;
import gnu.io.SerialPortEventListener;_

Could this be causing issues the way the serial ports are connected? And if so, would it be possible to update the code to use the new serial definitions? Would love to help, but I'm not really experienced in creating/modifying bindings...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant