> Your project looks great and looks like right what I need! Thx,
Thanks, nice to hear that you like it!
> OpenHAB appearently
> onliy sees serial ports in the form /dev/ttyX and /dev/ttyUSBX but
> not /dev/ttyAMX. Which is strange because both the Arduino IDE and
> openHAB are using the same lib to communicate with serial. (Version
> 2.1-7) Error pasted below.
This is indeed strange and I don't have any explanation for this. For retrieving the list of available serial ports, I am calling
gnu.io.CommPortIdentifier.getPortIdentifiers()
I would have expected that this returns an exhaustive list. Maybe you could address this in the RXTX discussion group as it seems to be an issue with this library?
> BTW How to set the baudrate for the serial binding?
This is not yet supported, it always uses 9600 baud. It should be easy to add a configurable baudrate, so if you require it, please feel free to enter a feature request in the issue tracker.
Best regards,
Kai
I am using a script, that reads my openhab.cfg, adds the serial ports for Z-Wave and EnOcean to the start.sh (to a copy of) and starts it.
echo "Setting Serial Ports Baud Rates to 4800"#UART on GPIOsudo stty -F /dev/ttyAMA0 4800echo -n "Speed of GPIO UART is: "stty -F /dev/ttyAMA0 speed
#USB UARTif [ -e /dev/ttyUSB0 ]; then sudo stty -F /dev/ttyUSB0 4800 echo -n "Speed of USB0 UART is: " stty -F /dev/ttyUSB0 speedfi