RPi4 + RaZberry = An unexpected error occurred while initialising the Z-Wave controller data

Данный раздел предназначен для русскоязычных пользователей. Если вы владеете английским, рекомендуем также просмотреть общую ветку обсуждений на английском.
Dan
Posts: 11
Joined: 01 May 2019 11:39

RPi4 + RaZberry = An unexpected error occurred while initialising the Z-Wave controller data

Post by Dan » 23 Nov 2019 19:41

Привет.
Я тут воткнул в новый Raspberry Pi 4 с Raspbian Buster плату Razberry
Поставил Z-Way с помощью wget -q -O - https://storage.z-wave.me/RaspbianInstall | sudo bash
залогинился, зашел в настройки и увидел, что Z-Way не видит чип (он моргает светодиодами лишь один раз при запуске малины), пишет "An unexpected error occurred while initialising the Z-Wave controller data."

В параметрах порта стоит /dev/ttyAMA0
2019-11-23 19_30_32-Window.png
2019-11-23 19_30_32-Window.png (77.92 KiB) Viewed 384 times
Куда копать дальше?

Access ID: 148046

Dan
Posts: 11
Joined: 01 May 2019 11:39

Re: RPi4 + RaZberry = An unexpected error occurred while initialising the Z-Wave controller data

Post by Dan » 23 Nov 2019 20:27

Последние строчки лога такие:

[2019-11-17 12:27:06.645] [D] [zway] [59] "WatchDogStart"
[2019-11-17 12:27:06.645] [D] [zway] [60] "WatchDogStop"
[2019-11-17 12:27:06.645] [D] [zway] [61] "ZMEFreqChange"
[2019-11-17 12:27:06.645] [D] [zway] [62] "ZMERestore"
[2019-11-17 12:27:06.645] [D] [zway] [63] "ZMEBootloaderFlash"
[2019-11-17 12:27:06.645] [D] [zway] [64] "ZMECapabilities"
[2019-11-17 12:27:06.645] [D] [zway] [65] "ZMESerialAPIOptions"
[2019-11-17 12:27:06.645] [D] [zway] Opened device: /dev/ttyAMA0
[2019-11-17 12:27:06.645] [D] [zway] Worker thread successfully created
[2019-11-17 12:27:06.645] [D] [zway] Worker thread entry point
[2019-11-17 12:27:06.646] [zway] Adding job: Get controller info and supported function classes
[2019-11-17 12:27:06.656] [D] [zway] SENDING: ( 01 03 00 07 FB )
[2019-11-17 12:27:06.857] [zway] Job 0x07 (Get controller info and supported function classes): No ACK received before timeout
[2019-11-17 12:27:06.857] [D] [zway] SENDING: ( 01 03 00 07 FB )
[2019-11-17 12:27:07.059] [zway] Job 0x07 (Get controller info and supported function classes): No ACK received before timeout
[2019-11-17 12:27:07.059] [D] [zway] SENDING: ( 01 03 00 07 FB )
[2019-11-17 12:27:07.260] [zway] Job 0x07 (Get controller info and supported function classes): No ACK received before timeout
[2019-11-17 12:27:07.260] [W] [zway] Job 0x07 (Get controller info and supported function classes) dropped: too many resends
[2019-11-17 12:27:07.260] [D] [zway] Job 0x07 (Get controller info and supported function classes): fail
[2019-11-17 12:27:07.260] [C] [zway] Get Serial API Capabilities returned zero.
[2019-11-17 12:27:07.260] [zway] Removing job: Get controller info and supported function classes
[2019-11-17 12:27:07.270] [D] [zway] Worker thread exit point
[2019-11-17 12:27:07.271] [D] [zway] Worker thread successfully finished
[2019-11-17 12:27:07.281] [zway] SaveData will not save data since it wasn't loaded. This is to prevent data loss.
[2019-11-17 12:27:07.290] [core] Error: Bad data - communication failed
[2019-11-17 12:27:07.291] [core] Tried 5 times without success. Stopping tries.
[2019-11-17 12:27:07.293] [core] Notification: critical (z-wave): Cannot start Z-Wave binding: Error: Bad data - communication failed

Dan
Posts: 11
Joined: 01 May 2019 11:39

Re: RPi4 + RaZberry = An unexpected error occurred while initialising the Z-Wave controller data

Post by Dan » 23 Nov 2019 20:31

воткнуто так:
Attachments
2019-11-23 20_30_49-Window.png
2019-11-23 20_30_49-Window.png (718.57 KiB) Viewed 381 times

Dan
Posts: 11
Joined: 01 May 2019 11:39

Re: RPi4 + RaZberry = An unexpected error occurred while initialising the Z-Wave controller data

Post by Dan » 23 Nov 2019 20:51

pi@raspberrypi:~ $ grep Revision /proc/cpuinfo
Revision : c03111


pi@raspberrypi:~ $ lsusb
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


pi@raspberrypi:~ $ ls /dev/tty*
/dev/tty /dev/tty14 /dev/tty20 /dev/tty27 /dev/tty33 /dev/tty4 /dev/tty46 /dev/tty52 /dev/tty59 /dev/tty8
/dev/tty0 /dev/tty15 /dev/tty21 /dev/tty28 /dev/tty34 /dev/tty40 /dev/tty47 /dev/tty53 /dev/tty6 /dev/tty9
/dev/tty1 /dev/tty16 /dev/tty22 /dev/tty29 /dev/tty35 /dev/tty41 /dev/tty48 /dev/tty54 /dev/tty60 /dev/ttyAMA0
/dev/tty10 /dev/tty17 /dev/tty23 /dev/tty3 /dev/tty36 /dev/tty42 /dev/tty49 /dev/tty55 /dev/tty61 /dev/ttyprintk
/dev/tty11 /dev/tty18 /dev/tty24 /dev/tty30 /dev/tty37 /dev/tty43 /dev/tty5 /dev/tty56 /dev/tty62 /dev/ttyS0
/dev/tty12 /dev/tty19 /dev/tty25 /dev/tty31 /dev/tty38 /dev/tty44 /dev/tty50 /dev/tty57 /dev/tty63
/dev/tty13 /dev/tty2 /dev/tty26 /dev/tty32 /dev/tty39 /dev/tty45 /dev/tty51 /dev/tty58 /dev/tty7

picachu
Posts: 97
Joined: 02 Mar 2016 10:44

Re: RPi4 + RaZberry = An unexpected error occurred while initialising the Z-Wave controller data

Post by picachu » 27 Nov 2019 16:12

sudo systemctl status zbw_connect.service

Что пишет?

Dan
Posts: 11
Joined: 01 May 2019 11:39

Re: RPi4 + RaZberry = An unexpected error occurred while initialising the Z-Wave controller data

Post by Dan » 27 Nov 2019 17:03

picachu wrote:
27 Nov 2019 16:12
sudo systemctl status zbw_connect.service

Что пишет?
pi@raspberrypi:~ $ sudo systemctl status zbw_connect.service
● zbw_connect.service - LSB: zbw_connect
Loaded: loaded (/etc/init.d/zbw_connect; generated)
Active: active (running) since Sun 2019-11-24 20:42:40 MSK; 2 days ago
Docs: man:systemd-sysv-generator(8)
Process: 344 ExecStart=/etc/init.d/zbw_connect start (code=exited, status=0/SU
Tasks: 2 (limit: 4915)
Memory: 4.4M
CGroup: /system.slice/zbw_connect.service
├─ 460 /bin/bash /etc/init.d/zbw_connect
└─15600 ssh -i /tmp/zbw_connect.priv -T -o StrictHostKeyChecking no -

Nov 24 20:42:39 raspberrypi systemd[1]: Starting LSB: zbw_connect...
Nov 24 20:42:40 raspberrypi zbw_connect[344]: Starting zbw_connect:ok.
Nov 24 20:42:40 raspberrypi systemd[1]: Started LSB: zbw_connect.
lines 1-14/14 (END)...skipping...
● zbw_connect.service - LSB: zbw_connect
Loaded: loaded (/etc/init.d/zbw_connect; generated)
Active: active (running) since Sun 2019-11-24 20:42:40 MSK; 2 days ago
Docs: man:systemd-sysv-generator(8)
Process: 344 ExecStart=/etc/init.d/zbw_connect start (code=exited, status=0/SUCCESS)
Tasks: 2 (limit: 4915)
Memory: 4.4M
CGroup: /system.slice/zbw_connect.service
├─ 460 /bin/bash /etc/init.d/zbw_connect
└─15600 ssh -i /tmp/zbw_connect.priv -T -o StrictHostKeyChecking no -o UserKnownHostsFile /dev/null -o BatchMode yes -o SendEnv ZBW_* -o ExitOnForwardFailure yes -o ServerAliveInterval 30 -o ServerAliveCountMax 3 -R 0.0.0.0:10

Nov 24 20:42:39 raspberrypi systemd[1]: Starting LSB: zbw_connect...
Nov 24 20:42:40 raspberrypi zbw_connect[344]: Starting zbw_connect:ok.
Nov 24 20:42:40 raspberrypi systemd[1]: Started LSB: zbw_connect.

picachu
Posts: 97
Joined: 02 Mar 2016 10:44

Re: RPi4 + RaZberry = An unexpected error occurred while initialising the Z-Wave controller data

Post by picachu » 28 Nov 2019 11:10

Попробуйте

Code: Select all

wget -q -O - https://storage.z-wave.me/RaspbianInstall | sudo bash
Ну и проверьте
https://micro-pi.ru/rpi-pi4j-%D1%83%D1% ... %82%D0%B0/

Dan
Posts: 11
Joined: 01 May 2019 11:39

Re: RPi4 + RaZberry = An unexpected error occurred while initialising the Z-Wave controller data

Post by Dan » 28 Nov 2019 11:54

picachu wrote:
28 Nov 2019 11:10
Попробуйте

Code: Select all

wget -q -O - https://storage.z-wave.me/RaspbianInstall | sudo bash
Ну и проверьте
https://micro-pi.ru/rpi-pi4j-%D1%83%D1% ... %82%D0%B0/
Выполнил команду установки, переустановился один компонент.

Code: Select all

pi@raspberrypi:~ $ wget -q -O - https://storage.z-wave.me/RaspbianInstall | sudo                                   bash
Get:1 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Get:2 https://repo.z-wave.me/z-way/raspbian buster InRelease [1,809 B]
Get:3 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13.0                                   MB]
Get:4 https://repo.z-wave.me/z-way/raspbian buster/main armhf Packages [1,081 B]
Get:5 http://archive.raspberrypi.org/debian buster InRelease [25.2 kB]
Get:6 http://archive.raspberrypi.org/debian buster/main armhf Packages [259 kB]
Fetched 13.3 MB in 16s (839 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
apt-transport-https is already the newest version (1.8.2).
dirmngr is already the newest version (2.2.12-1+rpi1+deb10u1).
0 upgraded, 0 newly installed, 0 to remove and 126 not upgraded.
Executing: /tmp/apt-key-gpghome.fxuamhC13T/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0x7E148E3C
gpg: key 2222290F7E148E3C: "Z-Wave.Me <info@z-wave.me>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:3 https://repo.z-wave.me/z-way/raspbian buster InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 126 not upgraded.
Need to get 0 B/822 B of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 95782 files and directories currently installed.)
Preparing to unpack .../z-way-full_1.0-latest-version_all.deb ...
Unpacking z-way-full (1.0-latest-version) over (1.0-latest-version) ...
Setting up z-way-full (1.0-latest-version) ...
Выполнил инструкцию по настройке UART, получил итоговое сообщение, ребутнул:
2019-11-28 11_42_29-BlackBox.png
2019-11-28 11_42_29-BlackBox.png (47.76 KiB) Viewed 319 times

Ошибка все равно осталась

picachu
Posts: 97
Joined: 02 Mar 2016 10:44

Re: RPi4 + RaZberry = An unexpected error occurred while initialising the Z-Wave controller data

Post by picachu » 28 Nov 2019 12:23

Тогда лично бы я посоветовал, раз программные пути проверены и все работает, проверить железо на другой распбери.

Ну или дождемся когда появиться Сергей, может есть какая то еще особенность четверки.
Может порт используется другой, типа /dev/ttyS0

Вот тут гляньте еще, все может быть https://www.raspberrypi.org/documentati ... on/uart.md

decart
Posts: 1
Joined: 28 Nov 2019 16:07

Re: RPi4 + RaZberry = An unexpected error occurred while initialising the Z-Wave controller data

Post by decart » 28 Nov 2019 17:31

picachu wrote:
28 Nov 2019 12:23
...Ну или дождемся когда появиться Сергей, может есть какая то еще особенность четверки.
Может порт используется другой, типа /dev/ttyS0 ...
Здравствуйте, друзья!
Получил свои устройства. У меня всё завелось. RPi 4B на бустере, RaZberry2 на v 3.0.2, только плата не такая как у вас на фото, а синяя.
Порт /dev/ttyAMA0 Всё работает третий день.
Attachments
Порт_pi4.jpg
Порт_pi4.jpg (47.69 KiB) Viewed 174 times
RaZberry2.jpg
RaZberry2.jpg (76.33 KiB) Viewed 174 times

Post Reply