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

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

Vorheriges Thema - Nächstes Thema

Loki

ich habe ein bisschen was getestet, kann aber nicht viel damit anfangen:
pi@fhem:~ $ hcitool scan
Scanning ...
pi@fhem:~ $ sudo bluetoothctl
[NEW] Controller B8:27:EB:A7:8C:6F fhem [default]
[NEW] Device C4:7C:8D:66:16:30 Flower care
[NEW] Device C4:7C:8D:66:1B:42 Flower care
[bluetooth]# devices
Device C4:7C:8D:66:16:30 Flower care
Device C4:7C:8D:66:1B:42 Flower care
[bluetooth]# scan on
Discovery started
[CHG] Controller B8:27:EB:A7:8C:6F Discovering: yes
[NEW] Device 68:EF:07:64:07:51 68-EF-07-64-07-51
[NEW] Device 7D:B0:06:0B:94:CB 7D-B0-06-0B-94-CB
[NEW] Device DB:FE:22:C4:B7:42 Eve Energy 9694
[CHG] Device C4:7C:8D:66:16:30 RSSI: -76
[CHG] Device C4:7C:8D:66:16:30 ServiceData Key: 0000fe95-0000-1000-8000-00805f9b34fb
[CHG] Device C4:7C:8D:66:16:30 ServiceData Value: 0x71
[CHG] Device C4:7C:8D:66:16:30 ServiceData Value: 0x20
[CHG] Device C4:7C:8D:66:16:30 ServiceData Value: 0x98
...


Interessant finde ich die letzten log Einträge vom Service:
pi@fhem:~ $ systemctl status bluetooth
● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2018-03-30 20:43:52 CEST; 1h 7min ago
     Docs: man:bluetoothd(8)
Main PID: 480 (bluetoothd)
   Status: "Running"
   CGroup: /system.slice/bluetooth.service
           └─480 /usr/lib/bluetooth/bluetoothd

Mär 30 20:43:52 fhem systemd[1]: Starting Bluetooth service...
Mär 30 20:43:52 fhem bluetoothd[480]: Bluetooth daemon 5.43
Mär 30 20:43:52 fhem systemd[1]: Started Bluetooth service.
Mär 30 20:43:52 fhem bluetoothd[480]: Starting SDP server
Mär 30 20:43:52 fhem bluetoothd[480]: Bluetooth management interface 1.14 initialized
[color=red][b]Mär 30 20:43:52 fhem bluetoothd[480]: Failed to obtain handles for "Service Changed" characteristic
Mär 30 20:43:52 fhem bluetoothd[480]: Sap driver initialization failed.
Mär 30 20:43:52 fhem bluetoothd[480]: sap-server: Operation not permitted[/b][/color] (1)

CoolTux

Zitat von: Fede am 30 März 2018, 21:36:41
In crontab 10min sudo hciconfig hci0 down/up. Ein bischen  gut

Hast du das mal getestet?
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


Loki

Zitat von: Fede am 30 März 2018, 21:36:41
In crontab 10min sudo hciconfig hci0 down/up. Ein bischen  gut

wie meinst du das genau?

so etwa?
*/10 * * * * sudo hciconfig hci0 down/up

Fede


*/10 * * * * sudo hciconfig hci0 down ; sleep 1 ; sudo hciconfig hci0 up

Loki

2018.03.30 22:56:34 4: XiaomiBTLESens (Drakena) - Run CreateParamGatttool with mod: write
2018.03.30 22:56:34 5: XiaomiBTLESens (Drakena) - Write XiaomiBTLESens_ExecGatttool_Run Drakena|C4:7C:8D:66:16:30|write|0x33|A01F
2018.03.30 22:56:34 4: XiaomiBTLESens (Drakena) - stateRequestTimer: Call Request Timer
2018.03.30 22:56:34 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:16:30 --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 0
2018.03.30 22:56:34 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool loop result connect,No route to host (113)

2018.03.30 22:56:34 4: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool result connect,No route to host (113)

2018.03.30 22:56:34 5: XiaomiBTLESens (Drakena) - ExecGatttool_Done: gatttool return string: Drakena|C4:7C:8D:66:16:30|ok|write|0x33|{"gtResult":"No route to host (113)"}
2018.03.30 22:56:34 4: XiaomiBTLESens (Drakena) - Run CreateParamGatttool with mod: read
2018.03.30 22:56:34 5: XiaomiBTLESens (Drakena) - Read XiaomiBTLESens_ExecGatttool_Run Drakena|C4:7C:8D:66:16:30|read|0x35
2018.03.30 22:56:34 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:16:30 --char-read -a 0x35 2>&1 /dev/null and loop 0
2018.03.30 22:56:34 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool loop result connect,No route to host (113)

2018.03.30 22:56:34 4: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool result connect,No route to host (113)

2018.03.30 22:56:34 5: XiaomiBTLESens (Drakena) - ExecGatttool_Done: gatttool return string: Drakena|C4:7C:8D:66:16:30|error|read|0x35|{"gtResult":"No route to host (113)"}
2018.03.30 22:56:34 4: XiaomiBTLESens (Drakena) - ProcessingErrors
2018.03.30 22:56:34 4: XiaomiBTLESens (Drakena) - WriteReadings: Readings were written
2018.03.30 22:59:36 4: XiaomiBTLESens (Gummibaum) - Run CreateParamGatttool with mod: read
2018.03.30 22:59:36 5: XiaomiBTLESens (Gummibaum) - Read XiaomiBTLESens_ExecGatttool_Run Gummibaum|C4:7C:8D:62:42:6F|read|0x38
2018.03.30 22:59:36 4: XiaomiBTLESens (Gummibaum) - stateRequestTimer: Call Request Timer
2018.03.30 22:59:36 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.03.30 22:59:36 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool loop result connect,No route to host (113)

2018.03.30 22:59:36 4: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool result connect,No route to host (113)

2018.03.30 22:59:36 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Done: gatttool return string: Gummibaum|C4:7C:8D:62:42:6F|error|read|0x38|{"gtResult":"No route to host (113)"}
2018.03.30 22:59:36 4: XiaomiBTLESens (Gummibaum) - ProcessingErrors
2018.03.30 22:59:36 4: XiaomiBTLESens (Gummibaum) - WriteReadings: Readings were written
2018.03.30 23:01:57 4: XiaomiBTLESens (Drakena) - Run CreateParamGatttool with mod: write
2018.03.30 23:01:57 5: XiaomiBTLESens (Drakena) - Write XiaomiBTLESens_ExecGatttool_Run Drakena|C4:7C:8D:66:16:30|write|0x33|A01F
2018.03.30 23:01:57 4: XiaomiBTLESens (Drakena) - stateRequestTimer: Call Request Timer
2018.03.30 23:01:57 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:16:30 --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 0
2018.03.30 23:01:57 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool loop result connect,No route to host (113)

2018.03.30 23:01:57 4: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool result connect,No route to host (113)

2018.03.30 23:01:57 5: XiaomiBTLESens (Drakena) - ExecGatttool_Done: gatttool return string: Drakena|C4:7C:8D:66:16:30|ok|write|0x33|{"gtResult":"No route to host (113)"}
2018.03.30 23:01:57 4: XiaomiBTLESens (Drakena) - Run CreateParamGatttool with mod: read
2018.03.30 23:01:57 5: XiaomiBTLESens (Drakena) - Read XiaomiBTLESens_ExecGatttool_Run Drakena|C4:7C:8D:66:16:30|read|0x35
2018.03.30 23:01:57 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:16:30 --char-read -a 0x35 2>&1 /dev/null and loop 0
2018.03.30 23:01:57 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool loop result connect,No route to host (113)

2018.03.30 23:01:57 4: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool result connect,No route to host (113)

2018.03.30 23:01:57 5: XiaomiBTLESens (Drakena) - ExecGatttool_Done: gatttool return string: Drakena|C4:7C:8D:66:16:30|error|read|0x35|{"gtResult":"No route to host (113)"}
2018.03.30 23:01:57 4: XiaomiBTLESens (Drakena) - ProcessingErrors
2018.03.30 23:01:57 4: XiaomiBTLESens (Drakena) - WriteReadings: Readings were written
2018.03.30 23:05:09 4: XiaomiBTLESens (Gummibaum) - Run CreateParamGatttool with mod: read
2018.03.30 23:05:09 5: XiaomiBTLESens (Gummibaum) - Read XiaomiBTLESens_ExecGatttool_Run Gummibaum|C4:7C:8D:62:42:6F|read|0x38
2018.03.30 23:05:09 4: XiaomiBTLESens (Gummibaum) - stateRequestTimer: Call Request Timer
2018.03.30 23:05:09 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.03.30 23:05:09 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool loop result connect,No route to host (113)

2018.03.30 23:05:09 4: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool result connect,No route to host (113)

2018.03.30 23:05:09 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Done: gatttool return string: Gummibaum|C4:7C:8D:62:42:6F|error|read|0x38|{"gtResult":"No route to host (113)"}
2018.03.30 23:05:09 4: XiaomiBTLESens (Gummibaum) - ProcessingErrors
2018.03.30 23:05:09 4: XiaomiBTLESens (Gummibaum) - WriteReadings: Readings were written
2018.03.30 23:07:33 4: XiaomiBTLESens (Drakena) - Run CreateParamGatttool with mod: write
2018.03.30 23:07:33 5: XiaomiBTLESens (Drakena) - Write XiaomiBTLESens_ExecGatttool_Run Drakena|C4:7C:8D:66:16:30|write|0x33|A01F
2018.03.30 23:07:33 4: XiaomiBTLESens (Drakena) - stateRequestTimer: Call Request Timer
2018.03.30 23:07:33 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:16:30 --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 0
2018.03.30 23:07:33 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool loop result connect,No route to host (113)

2018.03.30 23:07:33 4: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool result connect,No route to host (113)

2018.03.30 23:07:33 5: XiaomiBTLESens (Drakena) - ExecGatttool_Done: gatttool return string: Drakena|C4:7C:8D:66:16:30|ok|write|0x33|{"gtResult":"No route to host (113)"}
2018.03.30 23:07:33 4: XiaomiBTLESens (Drakena) - Run CreateParamGatttool with mod: read
2018.03.30 23:07:33 5: XiaomiBTLESens (Drakena) - Read XiaomiBTLESens_ExecGatttool_Run Drakena|C4:7C:8D:66:16:30|read|0x35
2018.03.30 23:07:33 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:16:30 --char-read -a 0x35 2>&1 /dev/null and loop 0
2018.03.30 23:07:33 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool loop result connect,No route to host (113)

2018.03.30 23:07:33 4: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool result connect,No route to host (113)

2018.03.30 23:07:33 5: XiaomiBTLESens (Drakena) - ExecGatttool_Done: gatttool return string: Drakena|C4:7C:8D:66:16:30|error|read|0x35|{"gtResult":"No route to host (113)"}
2018.03.30 23:07:33 4: XiaomiBTLESens (Drakena) - ProcessingErrors
2018.03.30 23:07:33 4: XiaomiBTLESens (Drakena) - WriteReadings: Readings were written
2018.03.30 23:11:28 4: XiaomiBTLESens (Gummibaum) - Run CreateParamGatttool with mod: read
2018.03.30 23:11:28 5: XiaomiBTLESens (Gummibaum) - Read XiaomiBTLESens_ExecGatttool_Run Gummibaum|C4:7C:8D:62:42:6F|read|0x38
2018.03.30 23:11:28 4: XiaomiBTLESens (Gummibaum) - stateRequestTimer: Call Request Timer
2018.03.30 23:11:28 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.03.30 23:11:28 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool loop result connect,No route to host (113)

2018.03.30 23:11:28 4: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool result connect,No route to host (113)

2018.03.30 23:11:28 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Done: gatttool return string: Gummibaum|C4:7C:8D:62:42:6F|error|read|0x38|{"gtResult":"No route to host (113)"}
2018.03.30 23:11:28 4: XiaomiBTLESens (Gummibaum) - ProcessingErrors
2018.03.30 23:11:28 4: XiaomiBTLESens (Gummibaum) - WriteReadings: Readings were written



leider alles ohne Erfolg...
der Hauptfehler scheint
"ExecGatttool_Run: gatttool result connect,No route to host (113)"
zu sein.

CoolTux

Lösche erstmal wieder den crontab Eintrag und mache es erstmal von Hand.
Also in der Linuxkonsole eingeben

sudo hciconfig hci0  down


Und danach

sudo hciconfig hci0  up


Und dann testen.
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

Loki

Also der eine Sensor bringt nur noch ab und zu einen Fehler.

Aber der zweite will immer noch nicht.

Ich habe dann den ersten mal in FHEM abgeschaltet und den zweiten gelöscht und neu angelegt. Aber leider ohne Veränderung:
2018.03.31 16:21:47 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 1
2018.03.31 16:22:27 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)

2018.03.31 16:22:27 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 2
2018.03.31 16:22:36 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 3455
2018.03.31 16:22:36 4: XiaomiBTLESens (Gummibaum_neu) - WriteReadings: Readings were written
2018.03.31 16:22:36 4: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Aborted: The BlockingCall Process terminated unexpectedly. Timedout
2018.03.31 16:26:13 4: XiaomiBTLESens (Gummibaum_neu) - Run CreateParamGatttool with mod: read
2018.03.31 16:26:13 5: XiaomiBTLESens (Gummibaum_neu) - Read XiaomiBTLESens_ExecGatttool_Run Gummibaum_neu|C4:7C:8D:62:42:6F|read|0x38
2018.03.31 16:26:13 4: XiaomiBTLESens (Gummibaum_neu) - stateRequestTimer: Call Request Timer
2018.03.31 16:26:13 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.03.31 16:26:31 4: XiaomiBTLESens (Gummibaum_neu) - Run CreateParamGatttool with mod: read
2018.03.31 16:26:31 5: XiaomiBTLESens (Gummibaum_neu) - Read XiaomiBTLESens_ExecGatttool_Run Gummibaum_neu|C4:7C:8D:62:42:6F|read|0x38
2018.03.31 16:26:31 4: XiaomiBTLESens (Gummibaum_neu) - stateRequestTimer: Call Request Timer
2018.03.31 16:26:54 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)

2018.03.31 16:26:54 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 1
2018.03.31 16:27:19 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: gatttool loop result connect error,Software caused connection abort (103)

2018.03.31 16:27:19 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 2
2018.03.31 16:27:19 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: gatttool loop result connect,No route to host (113)

2018.03.31 16:27:19 4: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: gatttool result connect,No route to host (113)

2018.03.31 16:27:19 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Done: gatttool return string: Gummibaum_neu|C4:7C:8D:62:42:6F|error|read|0x38|{"gtResult":"No route to host (113)"}
2018.03.31 16:27:19 4: XiaomiBTLESens (Gummibaum_neu) - ProcessingErrors
2018.03.31 16:27:19 4: XiaomiBTLESens (Gummibaum_neu) - WriteReadings: Readings were written
2018.03.31 16:27:56 1: Waschmaschine: Fertig - 0.37€
2018.03.31 16:28:01 1: Waschmaschine: Ausgeschaltet - 0.83 W
2018.03.31 16:31:47 4: XiaomiBTLESens (Gummibaum_neu) - Run CreateParamGatttool with mod: read
2018.03.31 16:31:47 5: XiaomiBTLESens (Gummibaum_neu) - Read XiaomiBTLESens_ExecGatttool_Run Gummibaum_neu|C4:7C:8D:62:42:6F|read|0x38
2018.03.31 16:31:47 4: XiaomiBTLESens (Gummibaum_neu) - stateRequestTimer: Call Request Timer
2018.03.31 16:31:47 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.03.31 16:32:18 4: XiaomiBTLESens (Gummibaum_neu) - Run CreateParamGatttool with mod: read
2018.03.31 16:32:18 5: XiaomiBTLESens (Gummibaum_neu) - Read XiaomiBTLESens_ExecGatttool_Run Gummibaum_neu|C4:7C:8D:62:42:6F|read|0x38
2018.03.31 16:32:18 4: XiaomiBTLESens (Gummibaum_neu) - stateRequestTimer: Call Request Timer
2018.03.31 16:32:27 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)

2018.03.31 16:32:27 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 1
2018.03.31 16:33:08 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)

2018.03.31 16:33:08 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 2
2018.03.31 16:33:17 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 4032
2018.03.31 16:33:17 4: XiaomiBTLESens (Gummibaum_neu) - WriteReadings: Readings were written
2018.03.31 16:33:17 4: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Aborted: The BlockingCall Process terminated unexpectedly. Timedout
2018.03.31 16:35:10 1: Waschmaschine: Eingeschaltet - 0 W
2018.03.31 16:35:22 1: Trockner: Eingeschaltet - 0 W
2018.03.31 16:35:25 1: Trockner: Startet - 221.69 W
2018.03.31 16:35:25 1: Waschmaschine: Ausgeschaltet - 0.6 W
2018.03.31 16:35:33 1: Trockner: Läuft - 163.64 W
2018.03.31 16:37:27 4: XiaomiBTLESens (Gummibaum_neu) - Run CreateParamGatttool with mod: read
2018.03.31 16:37:27 5: XiaomiBTLESens (Gummibaum_neu) - Read XiaomiBTLESens_ExecGatttool_Run Gummibaum_neu|C4:7C:8D:62:42:6F|read|0x38
2018.03.31 16:37:27 4: XiaomiBTLESens (Gummibaum_neu) - stateRequestTimer: Call Request Timer
2018.03.31 16:37:27 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.03.31 16:38:05 4: XiaomiBTLESens (Gummibaum_neu) - Run CreateParamGatttool with mod: read
2018.03.31 16:38:05 5: XiaomiBTLESens (Gummibaum_neu) - Read XiaomiBTLESens_ExecGatttool_Run Gummibaum_neu|C4:7C:8D:62:42:6F|read|0x38
2018.03.31 16:38:05 4: XiaomiBTLESens (Gummibaum_neu) - stateRequestTimer: Call Request Timer
2018.03.31 16:38:07 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)

2018.03.31 16:38:07 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 1
2018.03.31 16:38:48 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)

2018.03.31 16:38:48 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 2
2018.03.31 16:38:57 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 4222
2018.03.31 16:38:57 4: XiaomiBTLESens (Gummibaum_neu) - WriteReadings: Readings were written
2018.03.31 16:38:57 4: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Aborted: The BlockingCall Process terminated unexpectedly. Timedout
2018.03.31 16:43:18 4: XiaomiBTLESens (Gummibaum_neu) - Run CreateParamGatttool with mod: read
2018.03.31 16:43:18 5: XiaomiBTLESens (Gummibaum_neu) - Read XiaomiBTLESens_ExecGatttool_Run Gummibaum_neu|C4:7C:8D:62:42:6F|read|0x38
2018.03.31 16:43:18 4: XiaomiBTLESens (Gummibaum_neu) - stateRequestTimer: Call Request Timer
2018.03.31 16:43:18 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.03.31 16:43:42 4: XiaomiBTLESens (Gummibaum_neu) - Run CreateParamGatttool with mod: read
2018.03.31 16:43:42 5: XiaomiBTLESens (Gummibaum_neu) - Read XiaomiBTLESens_ExecGatttool_Run Gummibaum_neu|C4:7C:8D:62:42:6F|read|0x38
2018.03.31 16:43:42 4: XiaomiBTLESens (Gummibaum_neu) - stateRequestTimer: Call Request Timer
2018.03.31 16:43:59 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)

2018.03.31 16:43:59 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 1
2018.03.31 16:44:39 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)

2018.03.31 16:44:39 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 2
2018.03.31 16:44:48 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 4440
2018.03.31 16:44:48 4: XiaomiBTLESens (Gummibaum_neu) - WriteReadings: Readings were written
2018.03.31 16:44:48 4: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Aborted: The BlockingCall Process terminated unexpectedly. Timedout


Hat eigentlich überhaupt jemand mehr als einen gleichzeitig laufen?

PS: In der App funktionieren beide ohne Probleme.

CoolTux

Hast du den Sensor wieder vom Handy entkoppelt. Sonst bleibt die App mit dem Sensor verbunden und blockiert.
Ich habe 4 im Einsatz.
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

Loki

Jetzt verwirrst du mich. Mit dem Handy ist keiner der Sensoren gekoppelt. Die App baut nur immer eine AdHoc Verdinung zu den Sensoren auf. Wenn ich sie "hart" beende sollte auch die Verbindung weg sein.

Zumindest habe ich auch mal Bluetooth am Handy deaktiviert, aber ändern tut sich nichts.

Ich gebe langsam aber sicher auf...

CoolTux

Wenn du die App beendest sollte die Verbindung getrennt sein, ja. Aber das hast Du ja nicht geschrieben. Am besten Mal BT ausschalten.

Was passiert wenn Du das

gatttool -i hci0 -b C4:7C:8D:66:16:30 --char-read -a 0x35

In der Konsole ein gibst?
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

Loki

Das kommt dann raus:

Characteristic value/descriptor: aa bb cc dd ee ff 99 88 77 66 00 00 00 00 00 00

CoolTux

Und wenn du statt 35 38 nimmst?
Und probiere auch Mal hintereinander
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

Loki

Bei read -a 0x38 kommt:

Characteristic value/descriptor: 63 27 33 2e 31 2e 38



Mal nebenbei finde ich deine Geduld bemerkenswert...   ;)

CoolTux

Und selbst wenn du das hintereinander ausführst bekommst immer Daten?
Gib Mal bitte ein list vom Device jetzt.
Führe set resetBatteryTimestamp aus und mach noch mal ein get sensorData
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