Pi4 (Buster) with RaZberry2 does not work

Discussions about RaZberry - Z-Wave board for Raspberry computer
TickTack
Posts: 4
Joined: 12 Oct 2019 13:50

Pi4 (Buster) with RaZberry2 does not work

Post by TickTack »

Hello Forum,

I've just bought a Pi4 and a RaZberry2 (the blue one). There was no software or key coming with the RaZberry2 (normal?).
I installed the RaZberry2 at the correct position.
IMG_5002.jpg
IMG_5002.jpg (680.73 KiB) Viewed 12720 times
1) I flashed the microSD with Hoobs (Buster) using Etcher
2) Powering Up the pi, both LEDs on the RaZberry2 (red and blue) light up for about 2 seconds as they should
2) I did the "sudo apt-update" as well as "sudo apt-upgrade" in the console
3) Now that's the point, where I wanted to install z-way
4) I did "wget -q -O - https://storage.z-wave.me/RaspbianInstall | sudo bash"
This is what it's showing there

1.JPG
1.JPG (871.83 KiB) Viewed 12720 times
2.JPG
2.JPG (464.72 KiB) Viewed 12720 times
3.JPG
3.JPG (556.64 KiB) Viewed 12720 times
5) I can open the UI via my computers browser using the pi's IP (which has a fixed IP).
Changed the initial pw and got to the main menu.
4.JPG
4.JPG (76.76 KiB) Viewed 12720 times
6) When I try to add new devices it shows the following failure.
Which basically means "failure while loading the data" and the possible causes, such as correct fitment, correct port and active app.
And of course the RaZberry fitted correctly, the port is /dev/ttyAMA0 and the app is active.
If I try to add an device it shows a timeout...
5.JPG
5.JPG (110.18 KiB) Viewed 12720 times
7) Changing to Management shows the following error
6.JPG
6.JPG (123.73 KiB) Viewed 12720 times
8) Firmware shows that it's 3.0.1
7.JPG
7.JPG (180.54 KiB) Viewed 12720 times
9) Changing to expert ui shows
8.JPG
8.JPG (254.22 KiB) Viewed 12720 times
10) Controller Info shows
9.JPG
9.JPG (237.44 KiB) Viewed 12720 times
11) If this is somehow important. "sudo nano /boot/cmdline.txt" shows the following
10.JPG
10.JPG (111.75 KiB) Viewed 12720 times

Can you help please ?
micky1500
Posts: 298
Joined: 07 Feb 2016 16:29
Location: England

Re: Pi4 (Buster) with RaZberry2 does not work

Post by micky1500 »

I have same settings, mine is working ok.
Looks like it can't communicate with the z-way board via the ttyAMA0 serial port.

You need to disable Bluetooth as it uses the same port.

edit config.txt and add the disable commands (add both, as i'm not sure which one is correct for pi4)
Then sudo shutdown now And power cycle the raspberry.
sudo nano /boot/config.txt

dtoverlay=pi3-disable-bt
dtoverlay=disable-bt
Raspi 4 - (Buster - 32 Bit) Zwave Version 4.1.1, Raz 7 Pro, Serial API Version: 07.38
TickTack
Posts: 4
Joined: 12 Oct 2019 13:50

Re: Pi4 (Buster) with RaZberry2 does not work

Post by TickTack »

Hello micky1500,

thank you for your fast response.
If this is the case, why is there no note or something pointing this out ?! :)

I've made the changes, but now I don't even get into the UI, even when deleting the two lines.
On the standard UI it says "the z-way-server is not available"
See below
11.JPG
11.JPG (64.05 KiB) Viewed 12710 times
12.JPG
12.JPG (43.89 KiB) Viewed 12710 times
Last edited by TickTack on 12 Oct 2019 17:23, edited 1 time in total.
TickTack
Posts: 4
Joined: 12 Oct 2019 13:50

Re: Pi4 (Buster) with RaZberry2 does not work

Post by TickTack »

But I think you are on the correct path here.

Seems like the GPIO / UART thing is a problem here.

Unfortunatelly I am completely new to this and have no clue.
TickTack
Posts: 4
Joined: 12 Oct 2019 13:50

Re: Pi4 (Buster) with RaZberry2 does not work

Post by TickTack »

saying this I've found the solution which worked.
I did a format and made everything again as in post 1.
Then I did the following:

sudo nano /boot/config.txt and add at the end enable_uart=1

In Z-Way you have to use serial port /dev/ttyS0

Restart pi and done :)

That means: No changes in Bluetooth needed.
micky1500
Posts: 298
Joined: 07 Feb 2016 16:29
Location: England

Re: Pi4 (Buster) with RaZberry2 does not work

Post by micky1500 »

Hi TickTack

Thanks for your detailed reply.
btw. I'm a user of this forum, just like you! helping each other. I have No links to the z-way team.

The official configuration is to disable Bluetooth and that should then leave Uart available for other uses.
I found that in the Raspberry itself. cat /boot/overlays/README

Might be something the z-way guys could add to the install script.

Glad you found a setting that got ur pi4 working.
Raspi 4 - (Buster - 32 Bit) Zwave Version 4.1.1, Raz 7 Pro, Serial API Version: 07.38
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: Pi4 (Buster) with RaZberry2 does not work

Post by PoltoS »

The install script should do it for you. This is part of the .deb script:

Code: Select all

RPI_BOARD_REVISION=`grep Revision /proc/cpuinfo | cut -d: -f2 | tr -d " "`
...
elif [ "$RPI_BOARD_REVISION" = "b03111" ]
then
        echo "Raspberry Pi 4 Detected. Setting up miniUART for Bluetooth"
        # 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
fi
Could you please do

Code: Select all

grep Revision /proc/cpuinfo
to let us check if it is same as we have. May be the h/w version you have is a bit different.
micky1500
Posts: 298
Joined: 07 Feb 2016 16:29
Location: England

Re: Pi4 (Buster) with RaZberry2 does not work

Post by micky1500 »

grep Revision /proc/cpuinfo
Revision : c03111

dtoverlay=pi3-miniuart-bt" >> /boot/config.txt
I don't know, but isn't that command just redirecting the Bluetooth to the alternative Uart !
so uart0/1 is still disabled.
I take the info from /boot/overlays/README
Raspi 4 - (Buster - 32 Bit) Zwave Version 4.1.1, Raz 7 Pro, Serial API Version: 07.38
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: Pi4 (Buster) with RaZberry2 does not work

Post by PoltoS »

This should move the BT to miniuart

https://www.raspberrypi.org/documentati ... on/uart.md
micky1500
Posts: 298
Joined: 07 Feb 2016 16:29
Location: England

Re: Pi4 (Buster) with RaZberry2 does not work

Post by micky1500 »

Does seem the documentation doesn't actually work as expected.
did you see my cpuinfo didn't match your script !
grep Revision /proc/cpuinfo
Revision : c03111
So my Pi4 did not work until I disabled Bluetooth, then enabled the UART.
Raspi 4 - (Buster - 32 Bit) Zwave Version 4.1.1, Raz 7 Pro, Serial API Version: 07.38
Post Reply