RPi 3, RaZberry2 and Domoticz: Anyone got it to work?
Moderator: leecollings
-
- Posts: 4
- Joined: Wednesday 19 October 2016 21:15
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
RPi 3, RaZberry2 and Domoticz: Anyone got it to work?
Hi,
I have tried for a few days to get this to work. Some time I have been able to get Domoticz to find the razberry, (on /dev/ttyUSB20 after creating a symlink) but then it is impossible to add devices. And the controller is unknown.
After running rpi-update, the AMA0 serial port is gone from Domoticz, and the ttyUSB20 does not work.
Can anyone point me in the right direction?
Thanks!
I have tried for a few days to get this to work. Some time I have been able to get Domoticz to find the razberry, (on /dev/ttyUSB20 after creating a symlink) but then it is impossible to add devices. And the controller is unknown.
After running rpi-update, the AMA0 serial port is gone from Domoticz, and the ttyUSB20 does not work.
Can anyone point me in the right direction?
Thanks!
-
- Posts: 24
- Joined: Wednesday 28 September 2016 17:26
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.5997
- Contact:
Re: RPi 3, RaZberry2 and Domoticz: Anyone got it to work?
You have to disable Bluetooth on the PI
Rasberry Pi 3; Razberry 2.0; RFXCOM
-
- Posts: 4
- Joined: Wednesday 19 October 2016 21:15
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: RPi 3, RaZberry2 and Domoticz: Anyone got it to work?
Thanks for your answer Yustmenl. Unfortunately, I have tried that with no success. After many hours of reading forum threads and testing new things, I started to note what I did this time. This is what I did tonight:
Writing the file 2016-09-23-raspbian-jessie-lite.img to a 16GB micro-SD card using win32diskimager.
Insert the card, power up the pi and log in with SSH from my windows machine using Putty.
First, check the version:
Then, using
Extending the partition to the whole card.
Change user password.
Set boot mode to console (not GUI)
Install sv_SE.UTF8 locale, but keep the GB locale default.
Select timezone Stockholm.
Memory split: 16M GPU memory.
Inactivates the serial console.
After that, raspi-config reboots the pi.
Then, with info from this post:
http://www.domoticz.com/forum/viewtopic ... 615#p78615
add to the end of the file:
dtoverlay=pi3-disable-bt
Installing Domoticz using this info: https://www.domoticz.com/wiki/Installin ... spberry_PI
I am then able to log in to the Domoticz web interface. I try to add a new hardware, and selects OpenZWave USB in the list. But there is nothing in the "Serial port" box, as seen in the attached screenshot.
Have I done something wrong so far? I have read that the symlink should not be necessary for newer versions of Domoticz.
I bought the Razberry2 unit from m.nu, it is a newer version with better antenna. https://www.m.nu/razberry2-gen5-p-2830.html
Writing the file 2016-09-23-raspbian-jessie-lite.img to a 16GB micro-SD card using win32diskimager.
Insert the card, power up the pi and log in with SSH from my windows machine using Putty.
First, check the version:
Code: Select all
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.4.21-v7+ #911 SMP Thu Sep 15 14:22:38 BST 2016 armv7l GNU/Linux
Code: Select all
sudo raspi-config
Change user password.
Set boot mode to console (not GUI)
Install sv_SE.UTF8 locale, but keep the GB locale default.
Select timezone Stockholm.
Memory split: 16M GPU memory.
Inactivates the serial console.
After that, raspi-config reboots the pi.
Then, with info from this post:
http://www.domoticz.com/forum/viewtopic ... 615#p78615
Code: Select all
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install rpi-update
sudo rpi-update
sudo reboot
Code: Select all
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.4.26-v7+ #915 SMP Thu Oct 20 17:08:44 BST 2016 armv7l GNU/Linux
Code: Select all
sudo nano /boot/config.txt
dtoverlay=pi3-disable-bt
Code: Select all
sudo systemctl disable hciuart
sudo reboot
Code: Select all
mkdir ~/domoticz
cd ~/domoticz
wget http://releases.domoticz.com/releases/release/domoticz_linux_armv7l.tgz
tar xvfz domoticz_linux_armv7l.tgz
rm domoticz_linux_armv7l.tgz
sudo cp domoticz.sh /etc/init.d
sudo chmod +x /etc/init.d/domoticz.sh
sudo update-rc.d domoticz.sh defaults
sudo service domoticz.sh start
Have I done something wrong so far? I have read that the symlink should not be necessary for newer versions of Domoticz.
I bought the Razberry2 unit from m.nu, it is a newer version with better antenna. https://www.m.nu/razberry2-gen5-p-2830.html
- Attachments
-
- dump1.PNG (104.66 KiB) Viewed 4384 times
-
- Posts: 4
- Joined: Wednesday 19 October 2016 21:15
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: RPi 3, RaZberry2 and Domoticz: Anyone got it to work?
I finally found the problem! For some reason, there was a line "enable_uart=0" in the file "/boot/config.txt". I changed that zero to a one, rebooted, and then there was possible to select /dev/ttyAMA0 as port in Dometicz! See attached screenshot.
Also, this time, it was possible to include devices!
Time to have some fun!
I hope this post can help someone else that got similar problems...
Also, this time, it was possible to include devices!
Time to have some fun!
I hope this post can help someone else that got similar problems...
- Attachments
-
- dump2.PNG (115.94 KiB) Viewed 4359 times
Re: RPi 3, RaZberry2 and Domoticz: Anyone got it to work?
But tell me you must also disabled Bluetooth before ?
-
- Posts: 4
- Joined: Wednesday 19 October 2016 21:15
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: RPi 3, RaZberry2 and Domoticz: Anyone got it to work?
Yes, that's what I did in my third post in this thread, by adding "dtoverlay=pi3-disable-bt" in the file /boot/config.txtpiokuc wrote:But tell me you must also disabled Bluetooth before ?
Re: RPi 3, RaZberry2 and Domoticz: Anyone got it to work?
Ahhh ok...i am thinkingthat for RaZberry 2 we not must disable bluetooth.
And for what is this command:
?
And on RaZberry 2 range is better ? All other parameters are probably the same. Is It changed Razberry on Razberry 2?
And for what is this command:
Code: Select all
sudo systemctl disable hciuart
And on RaZberry 2 range is better ? All other parameters are probably the same. Is It changed Razberry on Razberry 2?
-
- Posts: 69
- Joined: Monday 30 November 2015 11:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: RPi 3, RaZberry2 and Domoticz: Anyone got it to work?
Hi! Did you run before razberry 1 and rpi2? What is your experience in terms of performance and signal compared to previuos setup? Thanks
Enviado desde mi iPhone utilizando Tapatalk Pro
Enviado desde mi iPhone utilizando Tapatalk Pro
-
- Posts: 1
- Joined: Friday 20 January 2017 9:07
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: RPi 3, RaZberry2 and Domoticz: Anyone got it to work?
Hi,
I just installed domoticz with the following setup:
* Razberry2
* Raspberry Pi 3
* Raspbian Jessie, 2017-01-11
There are a couple of things to keep in mind for the Razberry2 to work properly, especially with the later jessie releases:
* The serial port has to be turned ON
* Console on the serial port has to be turned OFF
* Bluetooth has to be disabled
* hciuart.service can optionally be disable (to get rid of an error message during boot)
So, the minor issue is that when you use "raspi-config" to turn off the serial console, it does not only turn off the console output on the serial port. It also turns off the serial port, which is not really what we want. That is why most people get a bit confused and fiddle around until they figure out that the "enable_uart=0" entry in /boot/configure.txt should be "enable_uart=1", and never think of why it happened to be that way.
The "console output" to serial is configured in /boot/cmdline.txt with the entry "console=serial0,115200", which we need to get rid of, but still make sure that there is no "enable_uart=0" in /boot/config.txt.
Unless you really want to, there is no need to redistribute the GPU RAM mapping.
So, a working setup (as of 2017-01-20) is:
* Create an SD card with 2017-01-11-raspbian-jessie.img
* Before you unmount it from your PC, change the following files on the SD card:
/boot/cmdline.txt
/boot/configure.txt
* Boot the raspberry pi
* Disable the hciuart service
* Ensure you have a /dev/ttyAMA0 file
* Install domoticz as described above by kent
* Go to "Setup"->"Hardware"
* Add a OpenZWave USB device with the serial port: /dev/ttyAMA0
Done.
I just installed domoticz with the following setup:
* Razberry2
* Raspberry Pi 3
* Raspbian Jessie, 2017-01-11
There are a couple of things to keep in mind for the Razberry2 to work properly, especially with the later jessie releases:
* The serial port has to be turned ON
* Console on the serial port has to be turned OFF
* Bluetooth has to be disabled
* hciuart.service can optionally be disable (to get rid of an error message during boot)
So, the minor issue is that when you use "raspi-config" to turn off the serial console, it does not only turn off the console output on the serial port. It also turns off the serial port, which is not really what we want. That is why most people get a bit confused and fiddle around until they figure out that the "enable_uart=0" entry in /boot/configure.txt should be "enable_uart=1", and never think of why it happened to be that way.
The "console output" to serial is configured in /boot/cmdline.txt with the entry "console=serial0,115200", which we need to get rid of, but still make sure that there is no "enable_uart=0" in /boot/config.txt.
Unless you really want to, there is no need to redistribute the GPU RAM mapping.
So, a working setup (as of 2017-01-20) is:
* Create an SD card with 2017-01-11-raspbian-jessie.img
* Before you unmount it from your PC, change the following files on the SD card:
/boot/cmdline.txt
Code: Select all
cat /boot/cmdline.txt
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
Code: Select all
enable_uart=1
dtoverlay=pi3-disable-bt
* Disable the hciuart service
Code: Select all
sudo systemctl stop hciuart
sudo systemctl disable hciuart
Code: Select all
ls -la /dev/ttyAMA0
crw-rw---- 1 root dialout 204, 64 Jan 20 08:19 /dev/ttyAMA0
Code: Select all
mkdir ~/domoticz
cd ~/domoticz
wget http://releases.domoticz.com/releases/release/domoticz_linux_armv7l.tgz
tar xvfz domoticz_linux_armv7l.tgz
rm domoticz_linux_armv7l.tgz
sudo cp domoticz.sh /etc/init.d
sudo chmod +x /etc/init.d/domoticz.sh
sudo update-rc.d domoticz.sh defaults
sudo service domoticz.sh start
* Add a OpenZWave USB device with the serial port: /dev/ttyAMA0
Done.
-
- Posts: 317
- Joined: Thursday 12 January 2017 15:30
- Target OS: Linux
- Domoticz version: Beta Ch
- Location: Finland
- Contact:
Re: RPi 3, RaZberry2 and Domoticz: Anyone got it to work?
Hi !
For my raspberry3 with razberry2 I simply:
Installed raspbian jessie lite to SD, made wlan static, and then :
Enabled ssh, localisations, expanded space
Thats all i did. Works fine. At any point i did not disable bluetooth, so i presume its disabled by default ?
-T
For my raspberry3 with razberry2 I simply:
Installed raspbian jessie lite to SD, made wlan static, and then :
Code: Select all
pi@raspberrypi:~ wget -q -O - razberry.z-wave.me/install | sudo bash
Code: Select all
pi@raspberrypi:~ $ sudo raspi-config
Code: Select all
pi@raspberrypi:~ sudo curl -L install.domoticz.com | bash
-T
-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
-
- Posts: 3
- Joined: Friday 06 January 2017 21:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: RPi 3, RaZberry2 and Domoticz: Anyone got it to work?
Part of the razberry.zwave.me/install script disables bluetooth.tontze wrote:Hi !
For my raspberry3 with razberry2 I simply:
Installed raspbian jessie lite to SD, made wlan static, and then :
Enabled ssh, localisations, expanded spaceCode: Select all
pi@raspberrypi:~ $ sudo raspi-config
Thats all i did. Works fine. At any point i did not disable bluetooth, so i presume its disabled by default ?Code: Select all
pi@raspberrypi:~ sudo curl -L install.domoticz.com | bash
-T
Code: Select all
# 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
-
- Posts: 317
- Joined: Thursday 12 January 2017 15:30
- Target OS: Linux
- Domoticz version: Beta Ch
- Location: Finland
- Contact:
Re: RPi 3, RaZberry2 and Domoticz: Anyone got it to work?
And i forgot to mention, u need to disable z-way after all this to use domoticz OZW...Icarus wrote:Part of the razberry.zwave.me/install script disables bluetooth.tontze wrote:Hi !
For my raspberry3 with razberry2 I simply:
Installed raspbian jessie lite to SD, made wlan static, and then :
Enabled ssh, localisations, expanded spaceCode: Select all
pi@raspberrypi:~ $ sudo raspi-config
Thats all i did. Works fine. At any point i did not disable bluetooth, so i presume its disabled by default ?Code: Select all
pi@raspberrypi:~ sudo curl -L install.domoticz.com | bash
-T
Code: Select all
# 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
-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
Who is online
Users browsing this forum: No registered users and 1 guest