[74_XiaomiBTLESens.pm] Xiaomi Bluetooth Sensoren FlowerSens/Thermometer

Begonnen von CoolTux, 11 Januar 2018, 15:42:45

Vorheriges Thema - Nächstes Thema

majestro84

OK danke für die Antwort dann probiere ich es mal aus


Gesendet von meinem Redmi Note 4 mit Tapatalk

Server: Fujitsu ESPRIMO Q920 - aktuellen FHEM-Docker Image:Z-Wave (RollerShutter,DoorWindow,Socket,PIR,....) | ENIGMA2 | EGPM2LAN | BLE-Tag(PRESENCE) | HUE | alexa-fhem | Shelly | MQTT2
1.Pi-Zero:Viessmann(optolink) mit 89_VCONTROL300.pm
2.Pi3 Dongle Server: Zigbee2MQTT(CC1352P-2), Z-Wave(UZB1), BT

fhainz

Hallo Leon!

Meine 7 Flower Sensoren laufen derzeit auf einer Ubuntu VM mit einem externem BT-Stick. Nachdem ich ab und zu Probleme mit der Reichweite des Sticks habe, hab ich mir einen Raspi 3+ geholt der auf dem Balkon kommen soll.
Der Pi ist heute angekommen, bei der Inbetriebnahme der Sensoren habe ich aber einige Probleme.
Ich hab die Installations-Prozedur jetzt 2x durch, bei der 2. Installation hab dann ich irgendwann angefangen den Beitrag zu schreiben um so alles genau mitzudokumentieren.

Nach der ersten Installation von raspbian hab ich mit hcitool lescan die Sensoren gleich gefunden. Dann FHEM und MQTT installiert und meine 7 Sensoren eingebunden (Copy+Paste der 7 Definitionen aus und in die fhem.cfg). Das erste abrufen hat geklappt, nach einem manuellen update kam schon der error (Invalid argument (22). Anschließend hab ich viel versucht und anscheinend das Systen kaputt konfiguriert. Gut nochmal von vorne, jetzt aber geziel. ;)

Nach der 2. Installation von raspbian funktioninert hcitool lescan ohne Probleme. 2-3x getestet. Anschließend wieder FHEM laut Debian Anleitung mit apt-get installiert und 5 Sensoren definiert. Wieder nach ein paar Sekunden der gleiche Fehler wie oben. In der Konsole bekomme ich jetzt den Fehler Disable scan failed: Input/output error Anschließend hab ich alle 5 Devices gelöscht, google angeschmissen und das gefunden. https://stackoverflow.com/questions/22062037/hcitool-lescan-shows-i-o-error
Also das in der Konsole eingegeben

hciconfig hci0 down
hciconfig hci0 up

und jetzt funktioniert es auch wieder aus der Konsole. 5-10 Minuten gewartet, immer wieder erneut versucht. Keine Probleme. Anschließend hab ich dann langsam Stück für Stück 5 der 7 Sensoren in der Web-UI definiert, immer wieder ausprobiert, gespeichert und NICHT neugestartet. Abrufen klappt aus FHEM und der Konsole.
Jetzt starte ich FHEM neu, 1-2 Sensoren gehen auf active, der rest error (Invalid argument (22)). In der Konsole bekomme ich jetzt nach ein paar Scans auch wieder den Fehler Disable scan failed: Input/output error
Die Prozedur nachdem ich hciconfig hci0 ... eingegeben habe, habe ich jetzt 2x wiederholt. Immer mit dem selben Ergebnis. Sobald FHEM und ein neustart ins spiel kommen, fängt hcitool zu zicken an. Beim 2. mal nachstellen hat das Empfangen des ersten Sensors länger gedauert als das empfangen des 2. Sensors. Der 2. Sensor war active, der 1. anschließend gleich mal auf error, ohne neustart.

Ich hab auch auf der Ubuntu-VM alle paar Tage Probleme die Sensoren zu empfangen. Den Fehler kann ich falls gewünscht nachreichen könnte aber "charWrite faild" sein, bin mir aber nicht sicher. Ein neustart von FHEM hilft da nicht mehr, ich muss die komplette Maschine neustarten. Das war unteranderem ein Grund auf den Pi zu wechseln ;)

Kannst du dir das ganze erklären? Falls du verbose 5 Logs benötigst, sag bescheid.

Danke & Grüße

Edit:
hcitool in der konsole funktioniert eigenartigerweise noch, in FHEM aber Invalid argument (22)

theophilou85

Habe das verbose jetzt auf 5 gesetzt, anbei schon einmal ein list eines der drei Sensoren

Internals:
   BTMAC      C4:7C:8D:66:20:C7
   DEF        C4:7C:8D:66:20:C7
   INTERVAL   3600
   NAME       pla02
   NOTIFYDEV  global,pla02
   NR         356
   NTFY_ORDER 50-pla02
   STATE      initialized
   TYPE       XiaomiBTLESens
   VERSION    2.0.12
   loglevel   4
   READINGS:
     2018-04-19 00:59:05   battery         ok
     2018-04-19 00:59:05   batteryLevel    100
     2018-04-19 18:10:41   fertility       1
     2018-04-19 00:59:05   firmware        2.7.0
     2018-04-17 00:19:51   lastGattError   charWrite faild
     2018-04-19 18:10:41   lux             170
     2018-04-19 18:10:41   moisture        0
     2018-04-25 00:08:01   state           initialized
     2018-04-19 18:10:41   temperature     23.2
   helper:
     CallBattery 0
     CallSensDataCounter 0
Attributes:
   alias      Plant Sensor right
   event-min-interval state:3600,battery:3600,batteryLevel:3600,temperature:3600,moisture:3600,fertility:3600,lux:3600
   event-on-change-reading state
   event-on-update-reading .*
   group      [Bluetooth] Plant Sensors
   interval   3600
   model      flowerSens
   room       Sensors
   verbose    5


Im Moment ist er initialized und bietet mir an ein resetBatteryTimestamp zu senden. Mache ich das, wechselt er auf "active" und tut wieder.

theophilou85

Es ist wieder passiert. Folgendes aus dem Log:

2018.04.25 00:08:36 4: XiaomiBTLESens (pla01) - Run CreateParamGatttool with mod: read
2018.04.25 00:08:36 5: XiaomiBTLESens (pla01) - Read XiaomiBTLESens_ExecGatttool_Run pla01|C4:7C:8D:66:1E:79|read|0x38
2018.04.25 00:08:36 4: XiaomiBTLESens (pla01) - stateRequestTimer: Call Request Timer
2018.04.25 00:08:37 5: XiaomiBTLESens (pla01) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:1E:79 --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.04.25 00:08:39 5: XiaomiBTLESens (pla01) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,64 15 32 2e 37 2e 30

2018.04.25 00:08:39 4: XiaomiBTLESens (pla01) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,64 15 32 2e 37 2e 30

2018.04.25 00:08:39 5: XiaomiBTLESens (pla01) - ExecGatttool_Done: gatttool return string: pla01|C4:7C:8D:66:1E:79|ok|read|0x38|{"gtResult":"64 15 32 2e 37 2e 30 "}
2018.04.25 00:08:39 4: XiaomiBTLESens (pla01) - ProcessingNotification
2018.04.25 00:08:39 4: XiaomiBTLESens (pla01) - ProcessingNotification: handle 0x38
2018.04.25 00:08:39 4: XiaomiBTLESens (pla01) - FlowerSens Handle0x38
2018.04.25 00:08:39 4: XiaomiBTLESens (pla01) - WriteReadings: Readings were written
2018.04.25 00:08:39 4: XiaomiBTLESens (pla01) - Run CreateParamGatttool with mod: write
2018.04.25 00:08:39 5: XiaomiBTLESens (pla01) - Write XiaomiBTLESens_ExecGatttool_Run pla01|C4:7C:8D:66:1E:79|write|0x33|A01F
2018.04.25 00:08:39 5: XiaomiBTLESens (pla01) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:1E:79 --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 0
2018.04.25 00:08:39 5: XiaomiBTLESens (pla01) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully

2018.04.25 00:08:39 4: XiaomiBTLESens (pla01) - ExecGatttool_Run: gatttool result Characteristic value was written successfully

2018.04.25 00:08:39 5: XiaomiBTLESens (pla01) - ExecGatttool_Done: gatttool return string: pla01|C4:7C:8D:66:1E:79|ok|write|0x33|{"gtResult":"no data response"}
2018.04.25 00:08:39 4: XiaomiBTLESens (pla01) - Run CreateParamGatttool with mod: read
2018.04.25 00:08:39 5: XiaomiBTLESens (pla01) - Read XiaomiBTLESens_ExecGatttool_Run pla01|C4:7C:8D:66:1E:79|read|0x35
2018.04.25 00:08:40 5: XiaomiBTLESens (pla01) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:1E:79 --char-read -a 0x35 2>&1 /dev/null and loop 0
2018.04.25 00:08:40 5: XiaomiBTLESens (pla01) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,f3 00 00 5a 00 00 00 00 00 00 02 3c 00 fb 34 9b

2018.04.25 00:08:40 4: XiaomiBTLESens (pla01) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,f3 00 00 5a 00 00 00 00 00 00 02 3c 00 fb 34 9b

2018.04.25 00:08:40 5: XiaomiBTLESens (pla01) - ExecGatttool_Done: gatttool return string: pla01|C4:7C:8D:66:1E:79|ok|read|0x35|{"gtResult":"f3 00 00 5a 00 00 00 00 00 00 02 3c 00 fb 34 9b "}
2018.04.25 00:08:40 4: XiaomiBTLESens (pla01) - ProcessingNotification
2018.04.25 00:08:40 4: XiaomiBTLESens (pla01) - ProcessingNotification: handle 0x35
2018.04.25 00:08:40 4: XiaomiBTLESens (pla01) - FlowerSens Handle0x35
2018.04.25 00:08:40 4: XiaomiBTLESens (pla01) - WriteReadings: Readings were written
2018.04.25 00:08:45 3: Watchdog mod00_det_wd0 triggered
2018.04.25 00:08:45 3: scc00 IT_set: swt05 off
2018.04.25 00:08:47 4: XiaomiBTLESens (pla00) - Run CreateParamGatttool with mod: read
2018.04.25 00:08:47 5: XiaomiBTLESens (pla00) - Read XiaomiBTLESens_ExecGatttool_Run pla00|C4:7C:8D:66:1C:4C|read|0x38
2018.04.25 00:08:47 4: XiaomiBTLESens (pla00) - stateRequestTimer: Call Request Timer
2018.04.25 00:08:47 5: XiaomiBTLESens (pla00) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:1C:4C --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.04.25 00:08:49 5: XiaomiBTLESens (pla00) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,61 15 32 2e 37 2e 30

2018.04.25 00:08:49 4: XiaomiBTLESens (pla00) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,61 15 32 2e 37 2e 30

2018.04.25 00:08:49 5: XiaomiBTLESens (pla00) - ExecGatttool_Done: gatttool return string: pla00|C4:7C:8D:66:1C:4C|ok|read|0x38|{"gtResult":"61 15 32 2e 37 2e 30 "}
2018.04.25 00:08:49 4: XiaomiBTLESens (pla00) - ProcessingNotification
2018.04.25 00:08:49 4: XiaomiBTLESens (pla00) - ProcessingNotification: handle 0x38
2018.04.25 00:08:49 4: XiaomiBTLESens (pla00) - FlowerSens Handle0x38
2018.04.25 00:08:49 4: XiaomiBTLESens (pla00) - WriteReadings: Readings were written
2018.04.25 00:08:49 4: XiaomiBTLESens (pla00) - Run CreateParamGatttool with mod: write
2018.04.25 00:08:49 5: XiaomiBTLESens (pla00) - Write XiaomiBTLESens_ExecGatttool_Run pla00|C4:7C:8D:66:1C:4C|write|0x33|A01F
2018.04.25 00:08:50 5: XiaomiBTLESens (pla00) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:1C:4C --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 0
2018.04.25 00:08:50 5: XiaomiBTLESens (pla00) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully

2018.04.25 00:08:50 4: XiaomiBTLESens (pla00) - ExecGatttool_Run: gatttool result Characteristic value was written successfully

2018.04.25 00:08:50 5: XiaomiBTLESens (pla00) - ExecGatttool_Done: gatttool return string: pla00|C4:7C:8D:66:1C:4C|ok|write|0x33|{"gtResult":"no data response"}
2018.04.25 00:08:50 4: XiaomiBTLESens (pla00) - Run CreateParamGatttool with mod: read
2018.04.25 00:08:50 5: XiaomiBTLESens (pla00) - Read XiaomiBTLESens_ExecGatttool_Run pla00|C4:7C:8D:66:1C:4C|read|0x35
2018.04.25 00:08:50 5: XiaomiBTLESens (pla00) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:1C:4C --char-read -a 0x35 2>&1 /dev/null and loop 0
2018.04.25 00:08:50 5: XiaomiBTLESens (pla00) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,fa 00 00 4c 00 00 00 00 00 00 02 3c 00 fb 34 9b

2018.04.25 00:08:50 4: XiaomiBTLESens (pla00) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,fa 00 00 4c 00 00 00 00 00 00 02 3c 00 fb 34 9b

2018.04.25 00:08:51 5: XiaomiBTLESens (pla00) - ExecGatttool_Done: gatttool return string: pla00|C4:7C:8D:66:1C:4C|ok|read|0x35|{"gtResult":"fa 00 00 4c 00 00 00 00 00 00 02 3c 00 fb 34 9b "}
2018.04.25 00:08:51 4: XiaomiBTLESens (pla00) - ProcessingNotification
2018.04.25 00:08:51 4: XiaomiBTLESens (pla00) - ProcessingNotification: handle 0x35
2018.04.25 00:08:51 4: XiaomiBTLESens (pla00) - FlowerSens Handle0x35
2018.04.25 00:08:51 4: XiaomiBTLESens (pla00) - WriteReadings: Readings were written
2018.04.25 00:11:00 4: XiaomiBTLESens (pla02) - Run CreateParamGatttool with mod: read
2018.04.25 00:11:00 5: XiaomiBTLESens (pla02) - Read XiaomiBTLESens_ExecGatttool_Run pla02|C4:7C:8D:66:20:C7|read|0x38
2018.04.25 00:11:00 4: XiaomiBTLESens (pla02) - stateRequestTimer: Call Request Timer
2018.04.25 00:11:00 5: XiaomiBTLESens (pla02) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:20:C7 --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.04.25 00:11:02 5: XiaomiBTLESens (pla02) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,64 15 32 2e 37 2e 30

2018.04.25 00:11:02 4: XiaomiBTLESens (pla02) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,64 15 32 2e 37 2e 30

2018.04.25 00:11:02 5: XiaomiBTLESens (pla02) - ExecGatttool_Done: gatttool return string: pla02|C4:7C:8D:66:20:C7|ok|read|0x38|{"gtResult":"64 15 32 2e 37 2e 30 "}
2018.04.25 00:11:02 4: XiaomiBTLESens (pla02) - ProcessingNotification
2018.04.25 00:11:02 4: XiaomiBTLESens (pla02) - ProcessingNotification: handle 0x38
2018.04.25 00:11:02 4: XiaomiBTLESens (pla02) - FlowerSens Handle0x38
2018.04.25 00:11:02 4: XiaomiBTLESens (pla02) - WriteReadings: Readings were written
2018.04.25 00:11:02 4: XiaomiBTLESens (pla02) - Run CreateParamGatttool with mod: write
2018.04.25 00:11:02 5: XiaomiBTLESens (pla02) - Write XiaomiBTLESens_ExecGatttool_Run pla02|C4:7C:8D:66:20:C7|write|0x33|A01F
2018.04.25 00:11:03 5: XiaomiBTLESens (pla02) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:20:C7 --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 0
2018.04.25 00:11:03 5: XiaomiBTLESens (pla02) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully

2018.04.25 00:11:03 4: XiaomiBTLESens (pla02) - ExecGatttool_Run: gatttool result Characteristic value was written successfully

2018.04.25 00:11:03 5: XiaomiBTLESens (pla02) - ExecGatttool_Done: gatttool return string: pla02|C4:7C:8D:66:20:C7|ok|write|0x33|{"gtResult":"no data response"}
2018.04.25 00:11:03 4: XiaomiBTLESens (pla02) - Run CreateParamGatttool with mod: read
2018.04.25 00:11:03 5: XiaomiBTLESens (pla02) - Read XiaomiBTLESens_ExecGatttool_Run pla02|C4:7C:8D:66:20:C7|read|0x35
2018.04.25 00:11:03 5: XiaomiBTLESens (pla02) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:20:C7 --char-read -a 0x35 2>&1 /dev/null and loop 0
2018.04.25 00:11:03 5: XiaomiBTLESens (pla02) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,ee 00 00 52 00 00 00 00 02 00 02 3c 00 fb 34 9b

2018.04.25 00:11:03 4: XiaomiBTLESens (pla02) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,ee 00 00 52 00 00 00 00 02 00 02 3c 00 fb 34 9b

2018.04.25 00:11:03 5: XiaomiBTLESens (pla02) - ExecGatttool_Done: gatttool return string: pla02|C4:7C:8D:66:20:C7|ok|read|0x35|{"gtResult":"ee 00 00 52 00 00 00 00 02 00 02 3c 00 fb 34 9b "}
2018.04.25 00:11:03 4: XiaomiBTLESens (pla02) - ProcessingNotification
2018.04.25 00:11:03 4: XiaomiBTLESens (pla02) - ProcessingNotification: handle 0x35
2018.04.25 00:11:03 4: XiaomiBTLESens (pla02) - FlowerSens Handle0x35
2018.04.25 00:11:03 4: XiaomiBTLESens (pla02) - WriteReadings: Readings were written

2018.04.25 00:14:33 3: Sub XiaomiBTLESens_Undef (pla02) - delete device pla02
2018.04.25 00:14:33 3: Sub XiaomiBTLESens_Undef (pla01) - delete device pla01
2018.04.25 00:14:33 3: Sub XiaomiBTLESens_Undef (pla00) - delete device pla00

2018.04.25 00:14:42 3: XiaomiBTLESens (pla00) - defined with BTMAC C4:7C:8D:66:1C:4C
2018.04.25 00:14:42 3: XiaomiBTLESens (pla00) - set interval to 3600
2018.04.25 00:14:42 3: XiaomiBTLESens (pla01) - defined with BTMAC C4:7C:8D:66:1E:79
2018.04.25 00:14:42 3: XiaomiBTLESens (pla01) - set interval to 3600
2018.04.25 00:14:42 3: XiaomiBTLESens (pla02) - defined with BTMAC C4:7C:8D:66:20:C7
2018.04.25 00:14:42 3: XiaomiBTLESens (pla02) - set interval to 3600


Letztes Log des Devices:
2018-04-25_00:08:40 pla01 fertility: 0
2018-04-25_00:08:40 pla01 temperature: 24.3
2018-04-25_00:08:40 pla01 moisture: 0
2018-04-25_00:08:40 pla01 active

CoolTux

Zitat von: theophilou85 am 26 April 2018, 23:54:47
Es ist wieder passiert. Folgendes aus dem Log:

2018.04.25 00:08:36 4: XiaomiBTLESens (pla01) - Run CreateParamGatttool with mod: read
2018.04.25 00:08:36 5: XiaomiBTLESens (pla01) - Read XiaomiBTLESens_ExecGatttool_Run pla01|C4:7C:8D:66:1E:79|read|0x38
2018.04.25 00:08:36 4: XiaomiBTLESens (pla01) - stateRequestTimer: Call Request Timer
2018.04.25 00:08:37 5: XiaomiBTLESens (pla01) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:1E:79 --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.04.25 00:08:39 5: XiaomiBTLESens (pla01) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,64 15 32 2e 37 2e 30

2018.04.25 00:08:39 4: XiaomiBTLESens (pla01) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,64 15 32 2e 37 2e 30

2018.04.25 00:08:39 5: XiaomiBTLESens (pla01) - ExecGatttool_Done: gatttool return string: pla01|C4:7C:8D:66:1E:79|ok|read|0x38|{"gtResult":"64 15 32 2e 37 2e 30 "}
2018.04.25 00:08:39 4: XiaomiBTLESens (pla01) - ProcessingNotification
2018.04.25 00:08:39 4: XiaomiBTLESens (pla01) - ProcessingNotification: handle 0x38
2018.04.25 00:08:39 4: XiaomiBTLESens (pla01) - FlowerSens Handle0x38
2018.04.25 00:08:39 4: XiaomiBTLESens (pla01) - WriteReadings: Readings were written
2018.04.25 00:08:39 4: XiaomiBTLESens (pla01) - Run CreateParamGatttool with mod: write
2018.04.25 00:08:39 5: XiaomiBTLESens (pla01) - Write XiaomiBTLESens_ExecGatttool_Run pla01|C4:7C:8D:66:1E:79|write|0x33|A01F
2018.04.25 00:08:39 5: XiaomiBTLESens (pla01) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:1E:79 --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 0
2018.04.25 00:08:39 5: XiaomiBTLESens (pla01) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully

2018.04.25 00:08:39 4: XiaomiBTLESens (pla01) - ExecGatttool_Run: gatttool result Characteristic value was written successfully

2018.04.25 00:08:39 5: XiaomiBTLESens (pla01) - ExecGatttool_Done: gatttool return string: pla01|C4:7C:8D:66:1E:79|ok|write|0x33|{"gtResult":"no data response"}
2018.04.25 00:08:39 4: XiaomiBTLESens (pla01) - Run CreateParamGatttool with mod: read
2018.04.25 00:08:39 5: XiaomiBTLESens (pla01) - Read XiaomiBTLESens_ExecGatttool_Run pla01|C4:7C:8D:66:1E:79|read|0x35
2018.04.25 00:08:40 5: XiaomiBTLESens (pla01) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:1E:79 --char-read -a 0x35 2>&1 /dev/null and loop 0
2018.04.25 00:08:40 5: XiaomiBTLESens (pla01) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,f3 00 00 5a 00 00 00 00 00 00 02 3c 00 fb 34 9b

2018.04.25 00:08:40 4: XiaomiBTLESens (pla01) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,f3 00 00 5a 00 00 00 00 00 00 02 3c 00 fb 34 9b

2018.04.25 00:08:40 5: XiaomiBTLESens (pla01) - ExecGatttool_Done: gatttool return string: pla01|C4:7C:8D:66:1E:79|ok|read|0x35|{"gtResult":"f3 00 00 5a 00 00 00 00 00 00 02 3c 00 fb 34 9b "}
2018.04.25 00:08:40 4: XiaomiBTLESens (pla01) - ProcessingNotification
2018.04.25 00:08:40 4: XiaomiBTLESens (pla01) - ProcessingNotification: handle 0x35
2018.04.25 00:08:40 4: XiaomiBTLESens (pla01) - FlowerSens Handle0x35
2018.04.25 00:08:40 4: XiaomiBTLESens (pla01) - WriteReadings: Readings were written
2018.04.25 00:08:45 3: Watchdog mod00_det_wd0 triggered
2018.04.25 00:08:45 3: scc00 IT_set: swt05 off
2018.04.25 00:08:47 4: XiaomiBTLESens (pla00) - Run CreateParamGatttool with mod: read
2018.04.25 00:08:47 5: XiaomiBTLESens (pla00) - Read XiaomiBTLESens_ExecGatttool_Run pla00|C4:7C:8D:66:1C:4C|read|0x38
2018.04.25 00:08:47 4: XiaomiBTLESens (pla00) - stateRequestTimer: Call Request Timer
2018.04.25 00:08:47 5: XiaomiBTLESens (pla00) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:1C:4C --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.04.25 00:08:49 5: XiaomiBTLESens (pla00) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,61 15 32 2e 37 2e 30

2018.04.25 00:08:49 4: XiaomiBTLESens (pla00) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,61 15 32 2e 37 2e 30

2018.04.25 00:08:49 5: XiaomiBTLESens (pla00) - ExecGatttool_Done: gatttool return string: pla00|C4:7C:8D:66:1C:4C|ok|read|0x38|{"gtResult":"61 15 32 2e 37 2e 30 "}
2018.04.25 00:08:49 4: XiaomiBTLESens (pla00) - ProcessingNotification
2018.04.25 00:08:49 4: XiaomiBTLESens (pla00) - ProcessingNotification: handle 0x38
2018.04.25 00:08:49 4: XiaomiBTLESens (pla00) - FlowerSens Handle0x38
2018.04.25 00:08:49 4: XiaomiBTLESens (pla00) - WriteReadings: Readings were written
2018.04.25 00:08:49 4: XiaomiBTLESens (pla00) - Run CreateParamGatttool with mod: write
2018.04.25 00:08:49 5: XiaomiBTLESens (pla00) - Write XiaomiBTLESens_ExecGatttool_Run pla00|C4:7C:8D:66:1C:4C|write|0x33|A01F
2018.04.25 00:08:50 5: XiaomiBTLESens (pla00) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:1C:4C --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 0
2018.04.25 00:08:50 5: XiaomiBTLESens (pla00) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully

2018.04.25 00:08:50 4: XiaomiBTLESens (pla00) - ExecGatttool_Run: gatttool result Characteristic value was written successfully

2018.04.25 00:08:50 5: XiaomiBTLESens (pla00) - ExecGatttool_Done: gatttool return string: pla00|C4:7C:8D:66:1C:4C|ok|write|0x33|{"gtResult":"no data response"}
2018.04.25 00:08:50 4: XiaomiBTLESens (pla00) - Run CreateParamGatttool with mod: read
2018.04.25 00:08:50 5: XiaomiBTLESens (pla00) - Read XiaomiBTLESens_ExecGatttool_Run pla00|C4:7C:8D:66:1C:4C|read|0x35
2018.04.25 00:08:50 5: XiaomiBTLESens (pla00) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:1C:4C --char-read -a 0x35 2>&1 /dev/null and loop 0
2018.04.25 00:08:50 5: XiaomiBTLESens (pla00) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,fa 00 00 4c 00 00 00 00 00 00 02 3c 00 fb 34 9b

2018.04.25 00:08:50 4: XiaomiBTLESens (pla00) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,fa 00 00 4c 00 00 00 00 00 00 02 3c 00 fb 34 9b

2018.04.25 00:08:51 5: XiaomiBTLESens (pla00) - ExecGatttool_Done: gatttool return string: pla00|C4:7C:8D:66:1C:4C|ok|read|0x35|{"gtResult":"fa 00 00 4c 00 00 00 00 00 00 02 3c 00 fb 34 9b "}
2018.04.25 00:08:51 4: XiaomiBTLESens (pla00) - ProcessingNotification
2018.04.25 00:08:51 4: XiaomiBTLESens (pla00) - ProcessingNotification: handle 0x35
2018.04.25 00:08:51 4: XiaomiBTLESens (pla00) - FlowerSens Handle0x35
2018.04.25 00:08:51 4: XiaomiBTLESens (pla00) - WriteReadings: Readings were written
2018.04.25 00:11:00 4: XiaomiBTLESens (pla02) - Run CreateParamGatttool with mod: read
2018.04.25 00:11:00 5: XiaomiBTLESens (pla02) - Read XiaomiBTLESens_ExecGatttool_Run pla02|C4:7C:8D:66:20:C7|read|0x38
2018.04.25 00:11:00 4: XiaomiBTLESens (pla02) - stateRequestTimer: Call Request Timer
2018.04.25 00:11:00 5: XiaomiBTLESens (pla02) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:20:C7 --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.04.25 00:11:02 5: XiaomiBTLESens (pla02) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,64 15 32 2e 37 2e 30

2018.04.25 00:11:02 4: XiaomiBTLESens (pla02) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,64 15 32 2e 37 2e 30

2018.04.25 00:11:02 5: XiaomiBTLESens (pla02) - ExecGatttool_Done: gatttool return string: pla02|C4:7C:8D:66:20:C7|ok|read|0x38|{"gtResult":"64 15 32 2e 37 2e 30 "}
2018.04.25 00:11:02 4: XiaomiBTLESens (pla02) - ProcessingNotification
2018.04.25 00:11:02 4: XiaomiBTLESens (pla02) - ProcessingNotification: handle 0x38
2018.04.25 00:11:02 4: XiaomiBTLESens (pla02) - FlowerSens Handle0x38
2018.04.25 00:11:02 4: XiaomiBTLESens (pla02) - WriteReadings: Readings were written
2018.04.25 00:11:02 4: XiaomiBTLESens (pla02) - Run CreateParamGatttool with mod: write
2018.04.25 00:11:02 5: XiaomiBTLESens (pla02) - Write XiaomiBTLESens_ExecGatttool_Run pla02|C4:7C:8D:66:20:C7|write|0x33|A01F
2018.04.25 00:11:03 5: XiaomiBTLESens (pla02) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:20:C7 --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 0
2018.04.25 00:11:03 5: XiaomiBTLESens (pla02) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully

2018.04.25 00:11:03 4: XiaomiBTLESens (pla02) - ExecGatttool_Run: gatttool result Characteristic value was written successfully

2018.04.25 00:11:03 5: XiaomiBTLESens (pla02) - ExecGatttool_Done: gatttool return string: pla02|C4:7C:8D:66:20:C7|ok|write|0x33|{"gtResult":"no data response"}
2018.04.25 00:11:03 4: XiaomiBTLESens (pla02) - Run CreateParamGatttool with mod: read
2018.04.25 00:11:03 5: XiaomiBTLESens (pla02) - Read XiaomiBTLESens_ExecGatttool_Run pla02|C4:7C:8D:66:20:C7|read|0x35
2018.04.25 00:11:03 5: XiaomiBTLESens (pla02) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:20:C7 --char-read -a 0x35 2>&1 /dev/null and loop 0
2018.04.25 00:11:03 5: XiaomiBTLESens (pla02) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,ee 00 00 52 00 00 00 00 02 00 02 3c 00 fb 34 9b

2018.04.25 00:11:03 4: XiaomiBTLESens (pla02) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,ee 00 00 52 00 00 00 00 02 00 02 3c 00 fb 34 9b

2018.04.25 00:11:03 5: XiaomiBTLESens (pla02) - ExecGatttool_Done: gatttool return string: pla02|C4:7C:8D:66:20:C7|ok|read|0x35|{"gtResult":"ee 00 00 52 00 00 00 00 02 00 02 3c 00 fb 34 9b "}
2018.04.25 00:11:03 4: XiaomiBTLESens (pla02) - ProcessingNotification
2018.04.25 00:11:03 4: XiaomiBTLESens (pla02) - ProcessingNotification: handle 0x35
2018.04.25 00:11:03 4: XiaomiBTLESens (pla02) - FlowerSens Handle0x35
2018.04.25 00:11:03 4: XiaomiBTLESens (pla02) - WriteReadings: Readings were written

2018.04.25 00:14:33 3: Sub XiaomiBTLESens_Undef (pla02) - delete device pla02
2018.04.25 00:14:33 3: Sub XiaomiBTLESens_Undef (pla01) - delete device pla01
2018.04.25 00:14:33 3: Sub XiaomiBTLESens_Undef (pla00) - delete device pla00

2018.04.25 00:14:42 3: XiaomiBTLESens (pla00) - defined with BTMAC C4:7C:8D:66:1C:4C
2018.04.25 00:14:42 3: XiaomiBTLESens (pla00) - set interval to 3600
2018.04.25 00:14:42 3: XiaomiBTLESens (pla01) - defined with BTMAC C4:7C:8D:66:1E:79
2018.04.25 00:14:42 3: XiaomiBTLESens (pla01) - set interval to 3600
2018.04.25 00:14:42 3: XiaomiBTLESens (pla02) - defined with BTMAC C4:7C:8D:66:20:C7
2018.04.25 00:14:42 3: XiaomiBTLESens (pla02) - set interval to 3600


Letztes Log des Devices:
2018-04-25_00:08:40 pla01 fertility: 0
2018-04-25_00:08:40 pla01 temperature: 24.3
2018-04-25_00:08:40 pla01 moisture: 0
2018-04-25_00:08:40 pla01 active


Guten Morgen,

Er scheint in der Tat falsche Werte zu bekommen. Ich kann mir aber nicht erklären wieso, denn das Schreiben funktioniert und er darf korrekt lesen.
Ich empfehle Dir ein Firmware-Update zu machen. Musste feststellen das mit jeder neueren Version das auslesen immer besser wurde, oder zu mindest die Fehlerbehandlung sauberer vom Modul abgefangen wurde.
Dies hilft natürlich nicht bei Reichweitenprobleme aber die hast du ja auch nicht.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

CoolTux

Zitat von: fhainz am 24 April 2018, 21:03:39
Hallo Leon!

Meine 7 Flower Sensoren laufen derzeit auf einer Ubuntu VM mit einem externem BT-Stick. Nachdem ich ab und zu Probleme mit der Reichweite des Sticks habe, hab ich mir einen Raspi 3+ geholt der auf dem Balkon kommen soll.
Der Pi ist heute angekommen, bei der Inbetriebnahme der Sensoren habe ich aber einige Probleme.
Ich hab die Installations-Prozedur jetzt 2x durch, bei der 2. Installation hab dann ich irgendwann angefangen den Beitrag zu schreiben um so alles genau mitzudokumentieren.

Nach der ersten Installation von raspbian hab ich mit hcitool lescan die Sensoren gleich gefunden. Dann FHEM und MQTT installiert und meine 7 Sensoren eingebunden (Copy+Paste der 7 Definitionen aus und in die fhem.cfg). Das erste abrufen hat geklappt, nach einem manuellen update kam schon der error (Invalid argument (22). Anschließend hab ich viel versucht und anscheinend das Systen kaputt konfiguriert. Gut nochmal von vorne, jetzt aber geziel. ;)

Nach der 2. Installation von raspbian funktioninert hcitool lescan ohne Probleme. 2-3x getestet. Anschließend wieder FHEM laut Debian Anleitung mit apt-get installiert und 5 Sensoren definiert. Wieder nach ein paar Sekunden der gleiche Fehler wie oben. In der Konsole bekomme ich jetzt den Fehler Disable scan failed: Input/output error Anschließend hab ich alle 5 Devices gelöscht, google angeschmissen und das gefunden. https://stackoverflow.com/questions/22062037/hcitool-lescan-shows-i-o-error
Also das in der Konsole eingegeben

hciconfig hci0 down
hciconfig hci0 up

und jetzt funktioniert es auch wieder aus der Konsole. 5-10 Minuten gewartet, immer wieder erneut versucht. Keine Probleme. Anschließend hab ich dann langsam Stück für Stück 5 der 7 Sensoren in der Web-UI definiert, immer wieder ausprobiert, gespeichert und NICHT neugestartet. Abrufen klappt aus FHEM und der Konsole.
Jetzt starte ich FHEM neu, 1-2 Sensoren gehen auf active, der rest error (Invalid argument (22)). In der Konsole bekomme ich jetzt nach ein paar Scans auch wieder den Fehler Disable scan failed: Input/output error
Die Prozedur nachdem ich hciconfig hci0 ... eingegeben habe, habe ich jetzt 2x wiederholt. Immer mit dem selben Ergebnis. Sobald FHEM und ein neustart ins spiel kommen, fängt hcitool zu zicken an. Beim 2. mal nachstellen hat das Empfangen des ersten Sensors länger gedauert als das empfangen des 2. Sensors. Der 2. Sensor war active, der 1. anschließend gleich mal auf error, ohne neustart.

Ich hab auch auf der Ubuntu-VM alle paar Tage Probleme die Sensoren zu empfangen. Den Fehler kann ich falls gewünscht nachreichen könnte aber "charWrite faild" sein, bin mir aber nicht sicher. Ein neustart von FHEM hilft da nicht mehr, ich muss die komplette Maschine neustarten. Das war unteranderem ein Grund auf den Pi zu wechseln ;)

Kannst du dir das ganze erklären? Falls du verbose 5 Logs benötigst, sag bescheid.

Danke & Grüße

Edit:
hcitool in der konsole funktioniert eigenartigerweise noch, in FHEM aber Invalid argument (22)

Hallo,

Bei Dir müsste ich ein bisschen drüber Nachdenken. Leider habe ich nicht wirklich eine Ahnung. Ich habe gehört das es oft Probleme mit BT und dem Raspi 3 geben soll. Du kannst zu Testzwecken versuchen einen BT Stick zu nehmen statt des internen.
Das hcitool funktioniert und das Modul nicht hat nichts miteinander zu tun, wenn du sauber testen willst musst du den gatttool Befehl ausführen.



Grüße
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

majestro84

So ich habe meine Thermometer nun alle verbunden soweit läuft es auch nur bekomme ich des öfteren diesen Fehler.
lastGattError   charWrite faild

Was kann ich sagen unternehmen?



Gesendet von meinem Redmi Note 4 mit Tapatalk

Server: Fujitsu ESPRIMO Q920 - aktuellen FHEM-Docker Image:Z-Wave (RollerShutter,DoorWindow,Socket,PIR,....) | ENIGMA2 | EGPM2LAN | BLE-Tag(PRESENCE) | HUE | alexa-fhem | Shelly | MQTT2
1.Pi-Zero:Viessmann(optolink) mit 89_VCONTROL300.pm
2.Pi3 Dongle Server: Zigbee2MQTT(CC1352P-2), Z-Wave(UZB1), BT

CoolTux

Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

CoolTux

Zitat von: majestro84 am 29 April 2018, 11:27:38
Hier Mal ein Auszug aus dem log


2018-04-29_08:13:19 K_Abstellraum_Temperatur active 2018-04-29_08:18:10 K_Abstellraum_Temperatur write sensor data
2018-04-29_08:18:21 K_Abstellraum_Temperatur temperature: 21.7
2018-04-29_08:18:21 K_Abstellraum_Temperatur humidity: 48.1
2018-04-29_08:18:21 K_Abstellraum_Temperatur active 2018-04-29_08:23:32 K_Abstellraum_Temperatur write sensor data
2018-04-29_08:23:41 K_Abstellraum_Temperatur lastGattError: charWrite faild
2018-04-29_08:23:41 K_Abstellraum_Temperatur error 2018-04-29_08:23:41 K_Abstellraum_Temperatur active 2018-04-29_08:29:50 K_Abstellraum_Temperatur write sensor data
2018-04-29_08:29:56 K_Abstellraum_Temperatur lastGattError: charWrite faild
2018-04-29_08:29:56 K_Abstellraum_Temperatur error 2018-04-29_08:29:56 K_Abstellraum_Temperatur active 2018-04-29_08:35:44 K_Abstellraum_Temperatur write sensor data
2018-04-29_08:35:49 K_Abstellraum_Temperatur lastGattError: charWrite faild
2018-04-29_08:35:49 K_Abstellraum_Temperatur error 2018-04-29_08:35:49 K_Abstellraum_Temperatur active 2018-04-29_08:41:46 K_Abstellraum_Temperatur write sensor data
2018-04-29_08:42:33 K_Abstellraum_Temperatur lastGattError: Transport endpoint is not connected (107) 2018-04-29_08:42:33 K_Abstellraum_Temperatur error 2018-04-29_08:47:26 K_Abstellraum_Temperatur write sensor data
2018-04-29_08:48:11 K_Abstellraum_Temperatur lastGattError: Transport endpoint is not connected (107) 2018-04-29_08:48:11 K_Abstellraum_Temperatur error 2018-04-29_08:53:09 K_Abstellraum_Temperatur write sensor data
2018-04-29_08:53:24 K_Abstellraum_Temperatur lastGattError: charWrite faild
2018-04-29_08:53:24 K_Abstellraum_Temperatur error 2018-04-29_08:53:24 K_Abstellraum_Temperatur active 2018-04-29_08:58:19 K_Abstellraum_Temperatur write sensor data
2018-04-29_08:58:29 K_Abstellraum_Temperatur temperature: 21.6
2018-04-29_08:58:29 K_Abstellraum_Temperatur humidity: 46.3
2018-04-29_08:58:29 K_Abstellraum_Temperatur active


Vielleicht kannst du da was mit anfangen.
Danke schon mal im voraus.
Schönen Sonntag noch

Gesendet von meinem Redmi Note 4 mit Tapatalk
Das ist ein Device Log ich brauche bitte fhem Log
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

majestro84

Sorry mein Fehler hier das FHEM log.

2018.04.29 08:47:26 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - Run CreateParamGatttool with mod: write
2018.04.29 08:47:26 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - Write XiaomiBTLESens_ExecGatttool_Run K_Abstellraum_Temperatur|4C:65:A8:D3:EF:EE|write|0x10|0100
2018.04.29 08:47:26 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - stateRequestTimer: Call Request Timer
2018.04.29 08:47:26 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D3:EF:EE --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.04.29 08:47:36 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: gatttool loop result
2018.04.29 08:47:36 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D3:EF:EE --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 1
2018.04.29 08:47:46 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: gatttool loop result
2018.04.29 08:47:46 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D3:EF:EE --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 2
2018.04.29 08:47:56 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: gatttool loop result
2018.04.29 08:47:56 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D3:EF:EE --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 3
2018.04.29 08:48:06 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: gatttool loop result
2018.04.29 08:48:06 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D3:EF:EE --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 4
2018.04.29 08:48:10 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: gatttool loop result connect error,Transport endpoint is not connected (107)

2018.04.29 08:48:10 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: gatttool result connect error,Transport endpoint is not connected (107)

2018.04.29 08:48:11 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Done: gatttool return string: K_Abstellraum_Temperatur|4C:65:A8:D3:EF:EE|error|write|0x10|{"gtResult":"Transport endpoint is not connected (107)"}
2018.04.29 08:48:11 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - ProcessingErrors
2018.04.29 08:48:11 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - WriteReadings: Readings were written
2018.04.29 08:53:09 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - Run CreateParamGatttool with mod: write
2018.04.29 08:53:09 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - Write XiaomiBTLESens_ExecGatttool_Run K_Abstellraum_Temperatur|4C:65:A8:D3:EF:EE|write|0x10|0100
2018.04.29 08:53:09 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - stateRequestTimer: Call Request Timer
2018.04.29 08:53:09 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D3:EF:EE --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.04.29 08:53:19 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: gatttool loop result
2018.04.29 08:53:19 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D3:EF:EE --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 1
2018.04.29 08:53:22 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: gatttool loop result connect error,Transport endpoint is not connected (107)
2018.04.29 08:53:22 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D3:EF:EE --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 2
2018.04.29 08:53:24 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: gatttool loop result connect error,Software caused connection abort (103)
2018.04.29 08:53:24 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D3:EF:EE --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 3
2018.04.29 08:53:24 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: gatttool loop result connect,No route to host (113)
2018.04.29 08:53:24 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: gatttool result connect,No route to host (113)
2018.04.29 08:53:24 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Done: gatttool return string: K_Abstellraum_Temperatur|4C:65:A8:D3:EF:EE|ok|write|0x10|{"gtResult":"No route to host (113)"}
2018.04.29 08:53:24 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - ProcessingNotification
2018.04.29 08:53:24 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - ProcessingNotification: handle 0x10
2018.04.29 08:53:24 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - Thermo/Hygro Sens Handle0x10
2018.04.29 08:53:24 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - WriteReadings: Readings were written
2018.04.29 08:53:24 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - WriteReadings: Readings were written
2018.04.29 08:58:19 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - Run CreateParamGatttool with mod: write
2018.04.29 08:58:19 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - Write XiaomiBTLESens_ExecGatttool_Run K_Abstellraum_Temperatur|4C:65:A8:D3:EF:EE|write|0x10|0100
2018.04.29 08:58:19 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - stateRequestTimer: Call Request Timer
2018.04.29 08:58:19 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D3:EF:EE --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.04.29 08:58:21 3: ENIGMA2 WZ_Receiver: ERROR: Unable to read tv bouquet '1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.dbe09.tv" ORDER BY bouquet' from device
2018.04.29 08:58:29 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 31 2e 36 20 48 3d 34 36 2e 33 00
Notification handle = 0x000e value,54 3d 32 31 2e 36 20 48 3d 34 36 2e 32 00
Notification handle = 0x000e value,54 3d 32 31 2e 36 20 48 3d 34 36 2e 35 00
Notification handle = 0x000e value,54 3d 32 31 2e 36 20 48 3d 34 36 2e 34 00

2018.04.29 08:58:29 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 31 2e 36 20 48 3d 34 36 2e 33 00
Notification handle = 0x000e value,54 3d 32 31 2e 36 20 48 3d 34 36 2e 32 00
Notification handle = 0x000e value,54 3d 32 31 2e 36 20 48 3d 34 36 2e 35 00
Notification handle = 0x000e value,54 3d 32 31 2e 36 20 48 3d 34 36 2e 34 00

2018.04.29 08:58:29 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Done: gatttool return string: K_Abstellraum_Temperatur|4C:65:A8:D3:EF:EE|ok|write|0x10|{"gtResult":"54 3d 32 31 2e 36 20 48 3d 34 36 2e 33 00 "}
2018.04.29 08:58:29 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - ProcessingNotification
2018.04.29 08:58:29 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - ProcessingNotification: handle 0x10
2018.04.29 08:58:29 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - Thermo/Hygro Sens Handle0x10
2018.04.29 08:58:29 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - WriteReadings: Readings were written
2018.04.29 09:03:46 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - Run CreateParamGatttool with mod: write
2018.04.29 09:03:46 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - Write XiaomiBTLESens_ExecGatttool_Run K_Abstellraum_Temperatur|4C:65:A8:D3:EF:EE|write|0x10|0100
2018.04.29 09:03:46 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - stateRequestTimer: Call Request Timer
2018.04.29 09:03:46 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D3:EF:EE --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.04.29 09:03:48 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: gatttool loop result connect error,Transport endpoint is not connected (107)

2018.04.29 09:03:48 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D3:EF:EE --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 1
2018.04.29 09:03:49 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: gatttool loop result connect error,Software caused connection abort (103)

2018.04.29 09:03:49 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D3:EF:EE --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 2
2018.04.29 09:03:49 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: gatttool loop result connect,No route to host (113)

2018.04.29 09:03:49 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: gatttool result connect,No route to host (113)

2018.04.29 09:03:49 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Done: gatttool return string: K_Abstellraum_Temperatur|4C:65:A8:D3:EF:EE|ok|write|0x10|{"gtResult":"No route to host (113)"}
2018.04.29 09:03:49 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - ProcessingNotification
2018.04.29 09:03:49 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - ProcessingNotification: handle 0x10
2018.04.29 09:03:49 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - Thermo/Hygro Sens Handle0x10
2018.04.29 09:03:49 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - WriteReadings: Readings were written
2018.04.29 09:03:49 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - WriteReadings: Readings were written
Server: Fujitsu ESPRIMO Q920 - aktuellen FHEM-Docker Image:Z-Wave (RollerShutter,DoorWindow,Socket,PIR,....) | ENIGMA2 | EGPM2LAN | BLE-Tag(PRESENCE) | HUE | alexa-fhem | Shelly | MQTT2
1.Pi-Zero:Viessmann(optolink) mit 89_VCONTROL300.pm
2.Pi3 Dongle Server: Zigbee2MQTT(CC1352P-2), Z-Wave(UZB1), BT

Steffen

Hallo!

Habe seit einem Upgrade Stretch auf einmal nur Probleme mit den Modulen die mit Bluetooth zusammen hängen und jetzt hier auch mit diesen.

Vielleicht habt ihr ja eine Idee was es sein könnte:


2018.04.29 18:30:37 3: XiaomiBTLESens (TestPflanze) - defined with BTMAC C4:7C:8D:66:17:03
2018.04.29 18:32:07 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 6585
2018.04.29 18:32:12 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:13 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:14 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:15 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:17 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:18 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:19 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:20 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:21 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:22 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:23 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:24 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:25 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:26 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:28 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:29 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:30 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:31 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:32 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:33 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:34 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:35 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:36 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:37 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:38 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:39 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:41 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:33:42 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 6667
2018.04.29 18:37:59 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 6913


Mfg Steffen

CoolTux

Da scheint schon ein gatttool Prozess zu laufen.
list vom Device und mach mal ein
ps ax | grep gatttool
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Steffen

Hallo!

Ok du scheinst recht zu haben, aber es bleibt so auch wenn ich das ganze System neu starte aber hier mal die weiteren Infos:


root@happyfamilyserver:~# ps ax | grep gatttool
7895 ?        S      0:00 sh -c gatttool -i hci0 -b C4:7C:8D:66:17:03 --char-read -a 0x38 2>&1 /dev/null
7896 ?        S      0:00 gatttool -i hci0 -b C4:7C:8D:66:17:03 --char-read -a 0x38 /dev/null
7909 pts/0    S+     0:00 grep gatttool
root@happyfamilyserver:~#



Internals:
   BTMAC      C4:7C:8D:66:17:03
   CHANGED   
   DEF        C4:7C:8D:66:17:03
   INTERVAL   300
   NAME       TestPflanze
   NOTIFYDEV  global,TestPflanze
   NR         234
   NTFY_ORDER 50-TestPflanze
   STATE      32
   TYPE       XiaomiBTLESens
   VERSION    2.0.12
   loglevel   4
   READINGS:
     2018-04-28 10:30:14   battery         ok
     2018-04-28 10:30:14   batteryLevel    99
     2018-04-28 11:14:39   fertility       0
     2018-04-28 10:30:14   firmware        3.1.8
     2018-04-29 18:57:11   lastGattError   The BlockingCall Process terminated unexpectedly. Timedout
     2018-04-28 11:14:39   lux             27476
     2018-04-28 11:14:39   moisture        1
     2018-04-29 18:59:32   state           read sensor data
     2018-04-28 11:14:39   temperature     32
   helper:
     CallBattery 0
     CallSensDataCounter 0
     updateTimeCallBattery 0
     RUNNING_PID:
       abortFn    XiaomiBTLESens_ExecGatttool_Aborted
       arg        TestPflanze|C4:7C:8D:66:17:03|read|0x38
       bc_pid     48
       finishFn   XiaomiBTLESens_ExecGatttool_Done
       fn         XiaomiBTLESens_ExecGatttool_Run
       pid        8011
       telnet     telnetForBlockingFn_1525018483.13791_127.0.0.1_37632
       timeout    90
       abortArg:
Attributes:
   event-on-update-reading fertility,moisture,temperature
   model      flowerSens
   room       Balkon,XiaomiBTLESens
   stateFormat temperature


es hatte aber vor dem upgrade aber gut Funktioniert deswege habe ich kein Plan wo ich da noch ansetzten kann?!?

Mfg Steffen

CoolTux

Setze mal alles auf disable und warte 2min, danach noch mal mit ps schauen
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Steffen

Hallo!

Mit disable 1 :

root@happyfamilyserver:~# ps ax | grep gatttool
10262 pts/0    S+     0:00 grep gatttool
root@happyfamilyserver:~#ps -ax
9950 ?        S<     0:00 [hci0]
9951 ?        S<     0:00 [hci0]
9955 ?        Ss     0:00 /usr/lib/bluetooth/bluetoothd


ohne disable :


root@happyfamilyserver:~# ps ax | grep gatttool
10386 ?        S      0:00 sh -c gatttool -i hci0 -b C4:7C:8D:66:17:03 --char-read -a 0x38 2>&1 /dev/null
10387 ?        S      0:00 gatttool -i hci0 -b C4:7C:8D:66:17:03 --char-read -a 0x38 /dev/null
10399 pts/0    S+     0:00 grep gatttool
root@happyfamilyserver:~#


kannst du was erkennen???

Mfg Steffen