Razberry bringt fehler bei addNode

Begonnen von Markus79, 14 April 2016, 07:56:44

Vorheriges Thema - Nächstes Thema

Markus79

Hi,
ich bekomme meine Fibaro Roller Shutter 2 nicht mit meinem Razberry verbunden.

FHEM läuft auf einem Raspberry 3
define ZWAVE ZWDongle /dev/ttyS0@115200
attr ZWAVE room ZWave
attr ZWAVE verbose 5


Auf dem Raspberry ist laut Anleitung auch der Razberry aufgesteckt.

Wenn ich die Teilnehmer hinzufügen will mit AddNode on kommen im Log folgende Meldungen.


2016.04.14 07:50:55 4 : ZWDongle *** set ZWAVE addNode on
2016.04.14 07:50:55 5 : ZWDongle_Write 004a810b ()
2016.04.14 07:50:55 5 : SW: 0105004a810b3a
2016-04-14 07:50:55 ZWDongle ZWAVE addNode on
2016.04.14 07:50:56 2 : ZWDongle_ProcessSendStack: no ACK, resending message 0105004a810b3a
2016.04.14 07:50:56 5 : SW: 0105004a810b3a
2016.04.14 07:50:57 2 : ZWDongle_ProcessSendStack: no ACK, resending message 0105004a810b3a
2016.04.14 07:50:57 5 : SW: 0105004a810b3a
2016.04.14 07:50:58 2 : ZWDongle_ProcessSendStack: no ACK, resending message 0105004a810b3a
2016.04.14 07:50:58 5 : SW: 0105004a810b3a
2016.04.14 07:50:58 5 : ACK received, removing 0105004a810b3a from dongle sendstack
2016.04.14 07:50:58 4 : ZWDongle_Read ZWAVE: rcvd 0004000203300300 (request APPLICATION_COMMAND_HANDLER), sending ACK
2016.04.14 07:50:58 5 : SW: 06
2016.04.14 07:50:58 5 : ZWAVE dispatch 0004000203300300
2016.04.14 07:50:58 4 : CMD:APPLICATION_COMMAND_HANDLER ID:02 ARG:03300300 CB:00
2016.04.14 07:50:58 4 : ZWave: unknown message 0004000203300300
2016.04.14 07:50:58 4 : ZWDongle_Read ZWAVE: rcvd 0004000203200100 (request APPLICATION_COMMAND_HANDLER), sending ACK
2016.04.14 07:50:58 5 : SW: 06
2016.04.14 07:50:58 5 : ZWAVE dispatch 0004000203200100
2016.04.14 07:50:58 4 : CMD:APPLICATION_COMMAND_HANDLER ID:02 ARG:03200100 CB:00
2016.04.14 07:50:58 4 : ZWave: unknown message 0004000203200100
2016.04.14 07:50:58 4 : ZWDongle_Read ZWAVE: rcvd 00040002033003ff (request APPLICATION_COMMAND_HANDLER), sending ACK
2016.04.14 07:50:58 5 : SW: 06
2016.04.14 07:50:58 5 : ZWAVE dispatch 00040002033003ff
2016.04.14 07:50:58 4 : CMD:APPLICATION_COMMAND_HANDLER ID:02 ARG:033003ff CB:00
2016.04.14 07:50:58 4 : ZWave: unknown message 00040002033003ff
2016.04.14 07:51:11 1 : ZWAVE: SOF missing (got 50 instead of 01)
2016.04.14 07:51:11 5 : ZWDongle_Read SOF Error -> sending NACK
2016.04.14 07:51:11 5 : SW: 15


Deshalb gehe ich von irgend einem Software Problem aus. Kann mir bitte jemand weiterhelfen woher das Problem kommt und oder wie man es löst.

p.s. Abstand Raspberry und Rolloshutter ca. 1,5m freie Sicht.

Danke im Voraus
Markus

rudolfkoenig

Nach einem "addNode on" muesste bei verbose 5 eine learnReady Meldung kommen.
D.h. irgendetwas ist mit dem Stick nicht in Ordnung.
Passiert das auch, nachdem man den Stick entfernt und wieder reinsteckt?

Markus79

Das ist eine Aufsteckplatine auf die GPIO. Habe den Raspberry schon häufig neu gestartet.

Gesendet von meinem SM-G903F mit Tapatalk


jeep

Zitat von: Markus79 am 14 April 2016, 07:56:44
Hi,
ich bekomme meine Fibaro Roller Shutter 2 nicht mit meinem Razberry verbunden.

FHEM läuft auf einem Raspberry 3


Den RPi 3 gibt es mWn seit knapp 2 Monaten. Ich würde mal in die Runde fragen ob schon jemand eine RaZberry Platine (egal mit welcher Software) erfolgreich mit dem RPi 3 zum Laufen gebracht hat. Auf RPi 2 Model  B läuft es bei mir schon seit über 1 Jahr problemlos. Ach ja und mal stromlos machen hilft oft mehr als nur Neustart. Das Netzteil sollte min. 12,5 W Leistung liefern.
Viel Erfolg.

Grüße,
Josef
Ein wenig HomeMatic
RPi2  - UZB1, FHEM Testsystem - 8 devices
HC2  - 72 devices  (95 % sind Fibaro devices)

krikan

Schau Dir vielleicht mal die Threads zur EnOeanPi-Aufsteckplatine auf dem Raspi 3 an:
https://forum.fhem.de/index.php/topic,51112.0.html
https://forum.fhem.de/index.php/topic,52179.0.html
Vielleicht bringt das, aber vermutlich mit Verlust von Bluetooth, eine Lösung.

Gruß, Christian

Markus79

So jetzt mit ausgeschaltetem Bluetooth
Zitatsudo nano /boot/config.txt

Add to the end of the file
dtoverlay=pi3-disable-bt

und einmal Spannungsfrei gemacht

Netzgerät ist von Raspberry mit 2,5A (Sollte also nicht die Ursache sein)

2016.04.15 07:31:55 2 : ZWDongle_ProcessSendStack: no ACK, resending message 0105004a810130
2016.04.15 07:31:55 5 : SW: 0105004a810130
2016.04.15 07:31:55 5 : ACK received, removing 0105004a810130 from dongle sendstack
2016.04.15 07:31:55 4 : ZWDongle_Read ZWAVE: rcvd 004a01010000 (request ZW_ADD_NODE_TO_NETWORK), sending ACK
2016.04.15 07:31:55 5 : SW: 06
2016.04.15 07:31:55 5 : ZWAVE dispatch 004a01010000
2016.04.15 07:31:56 4 : CMD:ZW_ADD_NODE_TO_NETWORK ID:01 ARG:0000 CB:01
2016-04-15 07:31:56 ZWDongle ZWAVE ZW_ADD_NODE_TO_NETWORK learnReady
2016.04.15 07:31:56 4 : ZWAVE ZW_ADD_NODE_TO_NETWORK learnReady
2016.04.15 07:32:04 1 : ZWAVE: SOF missing (got 40 instead of 01)
2016.04.15 07:32:04 5 : ZWDongle_Read SOF Error -> sending NACK
2016.04.15 07:32:04 5 : SW: 15
2016.04.15 07:32:04 1 : ZWAVE: SOF missing (got 02 instead of 01)
2016.04.15 07:32:04 5 : ZWDongle_Read SOF Error -> sending NACK
2016.04.15 07:32:04 5 : SW: 15
2016.04.15 07:32:05 1 : ZWAVE: SOF missing (got 40 instead of 01)
2016.04.15 07:32:05 5 : ZWDongle_Read SOF Error -> sending NACK
2016.04.15 07:32:05 5 : SW: 15
2016.04.15 07:32:05 1 : ZWAVE: SOF missing (got 82 instead of 01)
2016.04.15 07:32:05 5 : ZWDongle_Read SOF Error -> sending NACK
2016.04.15 07:32:05 5 : SW: 15
2016.04.15 07:32:06 1 : ZWAVE: SOF missing (got 40 instead of 01)
2016.04.15 07:32:06 1 : ZWAVE: SOF missing (got 88 instead of 01)
2016.04.15 07:32:07 1 : ZWAVE: SOF missing (got 40 instead of 01)
2016.04.15 07:32:07 1 : ZWAVE: SOF missing (got 42 instead of 01)
2016.04.15 07:32:08 1 : ZWAVE: SOF missing (got 50 instead of 01)
2016.04.15 07:32:08 1 : ZWAVE: SOF missing (got 82 instead of 01)
2016.04.15 07:32:09 1 : ZWAVE: SOF missing (got 50 instead of 01)
2016.04.15 07:32:09 1 : ZWAVE: SOF missing (got 00 instead of 01)
2016.04.15 07:32:10 1 : ZWAVE: SOF missing (got 40 instead of 01)
2016.04.15 07:32:10 1 : ZWAVE: SOF missing (got 10 instead of 01)
2016.04.15 07:32:11 1 : ZWAVE: SOF missing (got 40 instead of 01)
2016.04.15 07:32:11 1 : ZWAVE: SOF missing (got 88 instead of 01)
2016.04.15 07:32:12 1 : ZWAVE: SOF missing (got 40 instead of 01)
2016.04.15 07:32:12 1 : ZWAVE: SOF missing (got c1 instead of 01)
2016.04.15 07:32:13 1 : ZWAVE: SOF missing (got 50 instead of 01)
2016.04.15 07:32:13 1 : ZWAVE: SOF missing (got c1 instead of 01)
2016.04.15 07:32:14 1 : ZWAVE: SOF missing (got 40 instead of 01)
2016.04.15 07:32:14 1 : ZWAVE: SOF missing (got 02 instead of 01)
2016.04.15 07:32:15 1 : ZWAVE: SOF missing (got 40 instead of 01)
2016.04.15 07:32:15 1 : ZWAVE: SOF missing (got 82 instead of 01)
2016.04.15 07:33:20 4 : ZWDongle *** set ZWAVE addNode off
2016.04.15 07:33:20 5 : ZWDongle_Write 004a0502 ()
2016.04.15 07:33:20 5 : SW: 0105004a0502b7
2016-04-15 07:33:20 ZWDongle ZWAVE addNode off
2016.04.15 07:33:21 2 : ZWDongle_ProcessSendStack: no ACK, resending message 0105004a0502b7
2016.04.15 07:33:21 5 : SW: 0105004a0502b7
2016.04.15 07:33:22 2 : ZWDongle_ProcessSendStack: no ACK, resending message 0105004a0502b7
2016.04.15 07:33:22 5 : SW: 0105004a0502b7
2016.04.15 07:33:23 2 : ZWDongle_ProcessSendStack: no ACK, resending message 0105004a0502b7
2016.04.15 07:33:23 5 : SW: 0105004a0502b7
2016.04.15 07:33:24 2 : ZWDongle_ProcessSendStack: no ACK, resending message 0105004a0502b7
2016.04.15 07:33:24 1 : ERROR: max send retries reached, removing 0105004a0502b7 from dongle sendstack


Falls es mit dem Razberry nicht gehen sollte wegen Eventueller Unverträglichkeit gibt es Z-Wave Sticks die mit dem Raspi3 gehen.

krikan

ZitatZ-Wave Sticks die mit dem Raspi3 gehen.
Bei mir: zwave.me UZB (intensiv getestet) und Vision VIS_ZU1401 (nur oberflächlich getestet)

So richtig glauben kann ich nicht, dass der Razberry nicht mit Raspi3 funktioniert. "sudo systemctl disable hciuart" hast Du auch ausgeführt?
Oder zwave.me mal fragen bzw. in deren Forum suchen.

Gruß, Christian

Markus79

Problem gelöst
https://openenergymonitor.org/emon/node/12311

ZitatRaspberry Pi 3 compatibility (BT disable & serial port remap fix)
Submitted by glyn.hudson on Tue, 08/03/2016 - 15:53
The latest emonSD for emonPi / emonBase seemed to work out of the box with the RasPi3, however it became apparent that something rather important was missing...serial comms with the emonPi's ATmega328!

The emonPi communicates with the RasPi via GPIO 14/15 which on the Model B,B+ and Pi2 is mapped to UART0. However on the Pi3 these pins are mapped to UART1 since UART0 is now used for the Bluetooth module. However UART1 is software UART and baud rate is dependent to clock speed which can change with the CPU load, under voltage and temperature; therefore not stable enough. One hack is to force the CPU to a lower speed ( add core_freq=250 to /boot/cmdline.txt)which cripples the Pi3 performance.

A better solution for the emonPi is to disable BT and map UART1 back to UART0 (ttyAMA0) so we can talk to the emonPi in the same way as before.

First update:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo rpi-update
To disable onboard Pi3 Bluetooth and restore UART0/ttyAMA0 over GPIOs 14 & 15 modify:

sudo nano /boot/config.txt
Add to the end of the file

dtoverlay=pi3-disable-bt
We also need to run to stop BT modem trying to use UART

sudo systemctl disable hciuart

Schritt für schritt ausgeführt und siehe da es geht.

Der Razberry funktioniert offenbar nicht solange Bluetooth läuft.

Danke für die Anregungen damit man erst mal weiß nach was man suchen muss.

MFG
Markus

krikan