-
-
Notifications
You must be signed in to change notification settings - Fork 251
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
Tackle serialPorts setting in menu entry (Razberry, ...) #33
Comments
Hey palatia, I would like to tackle as many devices as possible, without being too aggressive or having to deal with unwanted side effects. Could you help to figure out these details:
After 2 and 3 are settled, I'd be okay to implement the needed additions. |
busware SCC: the device is already working without further changes. That's not remarkable as the openHAB homematic binding does not directly need to access the module but is connecting to the homegear service (recommended toolchain) |
@bodiroga wrote:
|
Regarding 1: I looked into the z-wave.me install script and found more details regarding the problem that both Razberry and Bluetooth use the same UART pins 14 and 15. That's the reason why Bluetooth indeed needs to be disabled!
I'm not sure about the differences between these two solution but I would recommend the one used in the official installation script: # Disable bluetooth Raspberry Pi 3
RPI_BOARD_REVISION=`grep Revision /proc/cpuinfo | cut -d: -f2 | tr -d " "`
if [[ $RPI_BOARD_REVISION == "a02082" || $RPI_BOARD_REVISION == "a22082" ]]
then
echo "Raspberry Pi 3 Detected. Disabling Bluetooth"
systemctl disable hciuart
# Add "dtoverlay=pi3-miniuart-bt" to /boot/config.txt if needed
if [[ ! `grep "dtoverlay=pi3-miniuart-bt" /boot/config.txt` ]]
then
echo "Adding 'dtoverlay=pi3-miniuart-bt' to /boot/config.txt"
echo "dtoverlay=pi3-miniuart-bt" >> /boot/config.txt
fi
echo "!!! Update Raspberry Pi 3 Firmware for stability work with commands:"
echo "sudo apt-get install rpi-update"
echo "sudo rpi-update"
fi Btw.: The "hciuart" service is disabled during the mentioned installation script. Btw. 2: A "UZB" was mentioned and successfully tested without disabling Bluetooth (the above instructions). I'm too lazy too google what UZB is, I'll leave this here just for reference. |
@palatia any news? |
@ThomDietrich , I thank you for all your effort and I am really sorry for my late reply. i am traveling and don't have access to my raspi. regarding 1.) and RPi3 regarding 2.) Your solution only addresses the port ttyAMA0. Could you please try the following to cover more ground: -Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0:/dev/ttyS0:/dev/ttyAMA0:/dev/ttyAMC0 regarding 3.) regarding 4.) |
HI Thomas, Regarding 3.) My current configuration using
Without setenv configuration only adding the port configuration to
From https://community.openhab.org/t/openhabian-hassle-free-rpi-image/13379/246 Those are my log entries:
--> Razberry does not work. please let me know, if i can help with further tests. thank you and best regards, |
Changes to openHABian will come soon. In the meantime, I've documented needed actions here: http://docs.openhab.org/installation/linux.html#privileges-for-common-peripherals |
@palatia both files should work, |
@ThomDietrich , thanks for all you effort to create an easy all in one installer. it works like a charm and eases the overall installation of openhab2. regarding the razberrry port. i have done again a test with just using /etc/default/openhab2 for the port definition. It does not work with my Razberry board and my Model B Rev 2 raspi. 2016-12-04 09:06:54.247 [INFO ] [ing.zwave.handler.ZWaveSerialHandler] - Connecting to serial port '/dev/ttyAMA0' |
@BClark09 with your recent endeavors into init.d/systemd, maybe you can help. Do you know where /etc/default/openhab2 is actually sourced? |
Yes, before openHAB is launched, init.d runs the file as an expanded script and systemd runs the file as an environment path file. openHABian will use systemd. This seems to suggest that you should remove the quotes so that your file
|
Ah of course, there it is. Thanks! @palatia would you try again? |
Configuration with quotes as suggested before is working: https://community.openhab.org/t/openhabian-hassle-free-rpi-image/13379/337 |
@ThomDietrich I have RPi3 with Razberry if you want I can help with testing |
Hey @palatia, Hey @tomekmbb, What to expect:
I decided to work with quotes in What you have to do:
|
I've already found one problem. I own a Busware SCC myself, which is controlled not by openHAB directly but by an additional software on the same RPi. Executing the new steps broke this connection. Investigation needed. It's probably better to create a submenu to select which of the mentioned four steps you actually want to execute (which depends on your peripheral device). This doesn't change the situation for the Razberry. You may still test the new functionality. |
I have invested a few more minutes on this feature. There is now a menu so you only select what you actually want. I realized that this is important as otherwise for example a SCC will not work anymore. |
Today I found this thread, discussing exactly my situation. With the serial port configuration that the Openhabian-config provides, I lose the connection with my USB1 and Bluetooth attached devices. I would appreciate a config that supports all available serial ports. Is that at all possible? |
Hey,
Good luck! If you find out that you can in fact not use the Razberry and Bluetooth devices at the same time, one nice option would be to use the Razberry Pi Zero W as a slave only handling the Bluetooth devices. You can use openHABian to get it up and running quickly: https://community.openhab.org/t/openhabian-hassle-free-openhab-setup/13379/837 |
How can I Remove manually the serial console and login shell from /boot/cmdline.txt and /etc/inittab? |
Finally I got it. In rpi3 model b the file /etc/inittab is not found. Instead, I wrote in the terminal: Now the gen5 aeon labs usb is in the port / dev / ttyACM0 instead of / dev / ttyAMA0. |
That is correct. The openhabian-config function tries to solve the issue for all Raspberry Pi models. The two lines you've posted are also part of that. Did the function not work for you? What do you mean by "in the zwave serial controller"? |
Signed-off-by: Thomas Dietrich <Thomas.Dietrich@tu-ilmenau.de>
@ThomDietrich The function work for me. My problem was that zwave serial controller had an error "offline" and I had to change the port from AMA0 to ACN0 after making the changes in rbp3 model b. |
@jeess wrong place to ask but I've created an issue in the right place to answer this ;) |
The additions based on #18 are great but not fully working for me using Razberry.
i still needed to add manually to /usr/share/openhab2/runtime/karaf/bin/setenv
the port definition, e.q. -Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0
so that openhab2 recognizes the port.
i have seen many people struggle with that in the community so why not just enhance openhabian to provide that setting right away or via a setting to configure it.
The text was updated successfully, but these errors were encountered: