Razberry7 on Pi 3B fails setup, no port?

Discussions about RaZberry - Z-Wave board for Raspberry computer
msambol
Posts: 14
Joined: 09 Oct 2018 12:48

Razberry7 on Pi 3B fails setup, no port?

Post by msambol »

Hi I have installed a new copy of Raspberry OS in a Pi 3 B v 1.2 using rpi-imager.
I then added the Razberry board and rebooted, and ran
wget -qO - https://storage.z-wave.me/RaspbianInstall | sudo bash
I am able to get into the web admin interface, but get this error:
"An unexpected error occurred while initialising the Z-Wave controller data."

The board's lights are not on. The red light flickers very very briefly during power on, that's it.
In /var/log/z-way-server.log:
[2024-04-25 12:58:21.573] [C] [i/o] Failed to open device /dev/ttyAMA0: No such file or directory
indeed, it does not exist.

$ ls -l /dev/ttyA*
ls: cannot access '/dev/ttyA*': No such file or directory

I saw some mention of bluetooth in other forum posts so checked this:
$ cat /boot/config.txt
DO NOT EDIT THIS FILE

The file you are looking for has moved to /boot/firmware/config.txt
dtoverlay=pi3-disable-bt

Is there something I should do to create the tty port?
I saw many posts complaining about failed blue boards. This one is black with the following labels:

ZME_RAZBERRY7
FCCID: ALIB2-ZME RAZBERRY7
2104857

Help please!
lanbrown
Posts: 298
Joined: 01 Jun 2021 08:06

Re: Razberry7 on Pi 3B fails setup, no port?

Post by lanbrown »

Did you add the dtoverlay command or not? From the error message, it appears that you did not. Also, the non specific Pi command which is also the recommended one to use is:
dtoverlay=disable-bt

For reference, all of my systems have that above command in the /boot/config.txt location.
msambol
Posts: 14
Joined: 09 Oct 2018 12:48

Re: Razberry7 on Pi 3B fails setup, no port?

Post by msambol »

Thanks for your response. The /boot/config.txt file already had dtoverlay=pi3-disable-bt so I did not change it.
Following your response, I added the line you recommended so my file had

dtoverlay=disable-bt
dtoverlay=pi3-disable-bt

after a restart I saw that /dev/ttyAMA0 now *does* exist, but the z-wave web admin interface doesn't come up at all, even after waiting 10 minutes, and nothing is being added to the log file.

I saw in other forums the suggestion to also add
enable_uart=1
so I did and restarted again. Unfortunately now the admin website comes up but again has "An unexpected error occurred while initialising the Z-Wave controller data."

I did not find the dtoverlay change documented anywhere. Can you point me to the source of that info, perhaps there are other setup steps I missed?
lanbrown
Posts: 298
Joined: 01 Jun 2021 08:06

Re: Razberry7 on Pi 3B fails setup, no port?

Post by lanbrown »

Do not use both. The pi3 is the old command and the toverlay=disable-bt is the new command. The Raspberry Pi foundation decided to get away from platform specific commands as every Pi would have a new command.

https://www.raspberrypi.com/documentati ... g_txt.html
msambol
Posts: 14
Joined: 09 Oct 2018 12:48

Re: Razberry7 on Pi 3B fails setup, no port?

Post by msambol »

Log entries with only dtoverlay=disable-bt:

Code: Select all

[2024-04-25 23:39:15.034] [D] [zway] Opened device: /dev/ttyAMA0
[2024-04-25 23:39:15.034] [I] [i/o] Setting port speed to 115200
[2024-04-25 23:39:15.035] [D] [zway] Worker thread successfully created
[2024-04-25 23:39:15.035] [D] [zway] Worker thread entry point
[2024-04-25 23:39:15.035] [I] [zway] Adding job: Get controller info and supported function classes
[2024-04-25 23:39:15.045] [D] [zway] SENDING: ( 01 03 00 07 FB )
[2024-04-25 23:39:15.047] [D] [zway] RECEIVED ACK
[2024-04-25 23:39:15.047] [E] [zway] RECEIVED UNKNOWN PACKET TYPE: 0x47
[2024-04-25 23:39:15.048] [C] [i/o] Serial port has gone: (null)
[2024-04-25 23:39:15.048] [E] [zway] Device processing interrupted
[2024-04-25 23:39:15.048] [D] [zway] Worker thread exit point
[2024-04-25 23:39:15.055] [D] [zway] Worker thread successfully finished
[2024-04-25 23:39:15.055] [D] [i/o] Closing port
[2024-04-25 23:39:15.067] [I] [zway] SaveData will not save data since it wasn't loaded. This is to prevent data loss.
[2024-04-25 23:39:15.067] [C] [zway] Get Serial API Capabilities returned zero.
[2024-04-25 23:39:15.082] [I] [core] Error: Bad data - communication failed
Log entries with dtoverlay=disable-bt and enable_uart=1:

Code: Select all

[2024-04-25 23:45:41.118] [D] [zway] Opened device: /dev/ttyAMA0
[2024-04-25 23:45:41.118] [I] [i/o] Setting port speed to 115200
[2024-04-25 23:45:41.118] [D] [zway] Worker thread successfully created
[2024-04-25 23:45:41.118] [D] [zway] Worker thread entry point
[2024-04-25 23:45:41.119] [I] [zway] Adding job: Get controller info and supported function classes
[2024-04-25 23:45:41.129] [D] [zway] SENDING: ( 01 03 00 07 FB )
[2024-04-25 23:45:41.130] [D] [zway] RECEIVED ACK
[2024-04-25 23:45:41.131] [C] [i/o] Serial port has gone: (null)
[2024-04-25 23:45:41.132] [E] [zway] Device processing interrupted
[2024-04-25 23:45:41.132] [D] [zway] Worker thread exit point
[2024-04-25 23:45:41.139] [D] [zway] Worker thread successfully finished
[2024-04-25 23:45:41.139] [D] [i/o] Closing port
[2024-04-25 23:45:41.150] [I] [zway] SaveData will not save data since it wasn't loaded. This is to prevent data loss.
[2024-04-25 23:45:41.150] [C] [zway] Get Serial API Capabilities returned zero.
[2024-04-25 23:45:41.164] [I] [core] Error: Bad data - communication failed
Both fail, with slightly different output.
Any other suggestions?
lanbrown
Posts: 298
Joined: 01 Jun 2021 08:06

Re: Razberry7 on Pi 3B fails setup, no port?

Post by lanbrown »

post your config.txt
msambol
Posts: 14
Joined: 09 Oct 2018 12:48

Re: Razberry7 on Pi 3B fails setup, no port?

Post by msambol »

The full content of the config.txt file are in my original post:

Code: Select all

$ cat /boot/config.txt
DO NOT EDIT THIS FILE

The file you are looking for has moved to /boot/firmware/config.txt
dtoverlay=pi3-disable-bt
Following your suggestion I changed that to the non-pi3 specific syntax, with the results that I posted here.

I eventually gave up on this and re-flashed the chip with a two year old backup. Now it works fine. The config.txt file there has many commented out lines and this at the bottom:

Code: Select all

dtparam=audio=on
dtoverlay=pi3-disable-bt
I spent more than a day trying to update to the latest z-way system, including by downloading and flashing the fully integrated OS image at https://razberry.z-wave.me/z-way-server ... ry.img.zip
in no case could I get it to work with the Razberry7 shield, which I assume is defective, or even with my old shield, which works fine with the restored backup image.
lanbrown
Posts: 298
Joined: 01 Jun 2021 08:06

Re: Razberry7 on Pi 3B fails setup, no port?

Post by lanbrown »

Have you tried just updating the OS and Z-Way version and keeping the current Razberry board and verifying that it all works before introducing a third change which is the Razberry 7?
msambol
Posts: 14
Joined: 09 Oct 2018 12:48

Re: Razberry7 on Pi 3B fails setup, no port?

Post by msambol »

The point was to upgrade the hardware to take advantage of the new board's greater power. That's why I spent money on it. The system is otherwise stable, I am not looking to change it just for fun.
lanbrown
Posts: 298
Joined: 01 Jun 2021 08:06

Re: Razberry7 on Pi 3B fails setup, no port?

Post by lanbrown »

You don't get it. You make three changes, that is three variables. You limit variables so if there is an issue, the less it can be. This is basic troubleshooting.

Keeping the existing board and just upgrading the OS and the Z-Way version would be the first step. if things don't work it limits the possibilities. Once that is working is when you change the board.

You can do the upgrade however you want though.
Post Reply