oyooyo / keyble

Command line tools and library for controlling eqiva eQ-3 Bluetooth smart locks
90 stars 28 forks source link

Keine Registrierung möglich #11

Closed CKMartens closed 5 years ago

CKMartens commented 5 years ago

Server: Ubuntu 18.04 LTS Nodejs: 8.15.0

Nach Eingabe von keyble-registeruser -n PC -q xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

kommt

Press and hold "Unlock" button until the yellow light flashes in order to enter pairing mode
Registering user on Smart Lock with address "xx:xx:xx:xx:xx:xx", card key "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" and serial "xxxxxxxxxxxx"...

das Pairing-Signal am Schloss ist hört nach ca. 45 Sekunden auf, aber weiter passiert nichts. Nach ein paar Minuten beende ich dann mit Strg-C am HomeServer den Pairingversuch. Es kommt kein Timeout oder dergleichen. Der HomeServer ist frisch mit Ubuntu aufgesetzt, kein Docker oder VM.

CKMartens commented 5 years ago

In der VM (siehe Issue #9), die bisher funktionierte, geht nun auch nichts mehr.

oyooyo commented 5 years ago

Schalte bitte mal die Debug-Ausgaben ein, indem Du DEBUG=* vor das Kommando schreibst. Eventuell kann man daran irgendwas erkennen.

CKMartens commented 5 years ago
root@iobroker:~# DEBUG=* keyble-registeruser -n PC -q xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Press and hold "Unlock" button until the yellow light flashes in order to enter pairing mode
Registering user on Smart Lock with address "00:1a:22:0a:17:64", card key "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" and serial "xxxxxxxxxxxx"...
  hci setting filter to: 1600000020c10000000000400000 +0ms
  hci set event mask - writing: 01010c08fffffbff07f8bf3d +2ms
  hci set le event mask - writing: 010120081f00000000000000 +1ms
  hci read local version - writing: 01011000 +0ms
  hci write LE host supported - writing: 016d0c020100 +1ms
  hci read LE host supported - writing: 016c0c00 +0ms
  hci read bd addr - writing: 01091000 +1ms
  hci onSocketData: 040e0401010c00 +1ms
  hci   event type = 4 +1ms
  hci   sub event type = 14 +0ms
  hci           cmd = 3073 +0ms
  hci           status = 0 +1ms
  hci           result =  +0ms
  hci onSocketData: 040e0401012000 +0ms
  hci   event type = 4 +2ms
  hci   sub event type = 14 +0ms
  hci           cmd = 8193 +0ms
  hci           status = 0 +0ms
  hci           result =  +0ms
  hci onSocketData: 040e0c010110000800100802000010 +0ms
  hci   event type = 4 +0ms
  hci   sub event type = 14 +0ms
  hci           cmd = 4097 +0ms
  hci           status = 0 +0ms
  hci           result = 0800100802000010 +0ms
  hci set scan enabled - writing: 010c20020001 +1ms
  hci set scan parameters - writing: 010b200701100010000000 +0ms
  hci onSocketData: 040e04016d0c00 +1ms
  hci   event type = 4 +0ms
  hci   sub event type = 14 +0ms
  hci           cmd = 3181 +0ms
  hci           status = 0 +0ms
  hci           result =  +0ms
  hci onSocketData: 040e06016c0c000100 +0ms
  hci   event type = 4 +0ms
  hci   sub event type = 14 +0ms
  hci           cmd = 3180 +0ms
  hci           status = 0 +0ms
  hci           result = 0100 +0ms
  hci                   le = 1 +0ms
  hci                   simul = 0 +1ms
  hci onSocketData: 040e0a010910005a4cd58b25d4 +0ms
  hci   event type = 4 +0ms
  hci   sub event type = 14 +0ms
  hci           cmd = 4105 +0ms
  hci           status = 0 +0ms
  hci           result = 5a4cd58b25d4 +0ms
  hci address = d4:25:8b:d5:4c:5a +0ms
  noble addressChange d4:25:8b:d5:4c:5a +1ms
  hci onSocketData: 040e04010c200c +0ms
  hci   event type = 4 +0ms
  hci   sub event type = 14 +0ms
  hci           cmd = 8204 +0ms
  hci           status = 12 +0ms
  hci           result =  +0ms
  hci onSocketData: 040e04010b2000 +1ms
  hci   event type = 4 +0ms
  hci   sub event type = 14 +0ms
  hci           cmd = 8203 +0ms
  hci           status = 0 +0ms
  hci           result =  +0ms
  noble stateChange poweredOn +0ms
  simble:info Starting to scan for peripheral... +0ms
  hci set scan enabled - writing: 010c20020001 +2ms
  hci set scan parameters - writing: 010b200701100010000000 +1ms
  hci set scan enabled - writing: 010c20020101 +0ms
  hci onSocketData: 040e04010c200c +1ms
  hci   event type = 4 +0ms
  hci   sub event type = 14 +0ms
  hci           cmd = 8204 +0ms
  hci           status = 12 +0ms
  hci           result =  +0ms
  hci onSocketData: 040e04010b2000 +1ms
  hci   event type = 4 +0ms
  hci   sub event type = 14 +0ms
  hci           cmd = 8203 +0ms
  hci           status = 0 +0ms
  hci           result =  +0ms
  hci onSocketData: 040e04020c2000 +1ms
  hci   event type = 4 +0ms
  hci   sub event type = 14 +0ms
  hci           cmd = 8204 +0ms
  hci           status = 0 +0ms
  hci           result =  +0ms
  noble scanStart +0ms
  hci onSocketData: 043e2b02010000fdb9c4a46ecc1f02011a1bff7500420401207e18070002010000000000000000000000000000ab +128ms
  hci   event type = 4 +0ms
  hci   sub event type = 62 +0ms
  hci           LE meta event type = 2 +0ms
  hci           LE meta event status = 1 +0ms
  hci           LE meta event data = 0000fdb9c4a46ecc1f02011a1bff7500420401207e18070002010000000000000000000000000000ab +0ms
  hci                   type = 0 +1ms
  hci                   address = cc:6e:a4:c4:b9:fd +0ms
  hci                   address type = public +0ms
  hci                   eir = 02011a1bff7500420401207e18070002010000000000000000000000000000 +0ms
  hci                   rssi = -85 +0ms
  gap advertisement = {"manufacturerData":{"type":"Buffer","data":[117,0,66,4,1,32,126,24,7,0,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},"serviceData":[],"serviceUuids":[],"solicitationServiceUuids":[],"serviceSolicitationUuids":[]} +2ms
  hci onSocketData: 043e2b02010301dab54c6312051f1eff06000109200217fe53f644c2fb06d9d6b57c5bba87e7ce9eea8fa81292b2 +26ms
  hci   event type = 4 +0ms
  hci   sub event type = 62 +0ms
  hci           LE meta event type = 2 +0ms
  hci           LE meta event status = 1 +0ms
  hci           LE meta event data = 0301dab54c6312051f1eff06000109200217fe53f644c2fb06d9d6b57c5bba87e7ce9eea8fa81292b2 +0ms
  hci                   type = 3 +1ms
  hci                   address = 05:12:63:4c:b5:da +0ms
  hci                   address type = random +0ms
  hci                   eir = 1eff06000109200217fe53f644c2fb06d9d6b57c5bba87e7ce9eea8fa81292 +0ms
  hci                   rssi = -78 +0ms
  gap advertisement = {"manufacturerData":{"type":"Buffer","data":[6,0,1,9,32,2,23,254,83,246,68,194,251,6,217,214,181,124,91,186,135,231,206,158,234,143,168,18,146]},"serviceData":[],"serviceUuids":[],"solicitationServiceUuids":[],"serviceSolicitationUuids":[]} +0ms
  simble:info   Scanned peripheral 05:12:63:4c:b5:da (Name:"undefined", advertised services:[]) +165ms
  hci onSocketData: 043e2b02010301e9b82f3722361f1eff060001092002c2459b7420e12464eef934db582f6557fdf643ca3aec2ac7 +46ms
  hci   event type = 4 +0ms
  hci   sub event type = 62 +0ms
  hci           LE meta event type = 2 +0ms
  hci           LE meta event status = 1 +0ms
  hci           LE meta event data = 0301e9b82f3722361f1eff060001092002c2459b7420e12464eef934db582f6557fdf643ca3aec2ac7 +0ms
  hci                   type = 3 +0ms
  hci                   address = 36:22:37:2f:b8:e9 +0ms
  hci                   address type = random +0ms
  hci                   eir = 1eff060001092002c2459b7420e12464eef934db582f6557fdf643ca3aec2a +1ms
  hci                   rssi = -57 +0ms
  gap advertisement = {"manufacturerData":{"type":"Buffer","data":[6,0,1,9,32,2,194,69,155,116,32,225,36,100,238,249,52,219,88,47,101,87,253,246,67,202,58,236,42]},"serviceData":[],"serviceUuids":[],"solicitationServiceUuids":[],"serviceSolicitationUuids":[]} +0ms
  simble:info   Scanned peripheral 36:22:37:2f:b8:e9 (Name:"undefined", advertised services:[]) +45ms
  hci onSocketData: 043e2b020100014c9a189045d71f0201061bff5701007f44269e1904fa19837acb39108cefd902d74590189a4cad +127ms
  hci   event type = 4 +1ms
  hci   sub event type = 62 +0ms
  hci           LE meta event type = 2 +0ms
  hci           LE meta event status = 1 +0ms
  hci           LE meta event data = 00014c9a189045d71f0201061bff5701007f44269e1904fa19837acb39108cefd902d74590189a4cad +0ms
  hci                   type = 0 +0ms
  hci                   address = d7:45:90:18:9a:4c +0ms
  hci                   address type = random +0ms
  hci                   eir = 0201061bff5701007f44269e1904fa19837acb39108cefd902d74590189a4c +0ms
  hci                   rssi = -83 +0ms
  gap advertisement = {"manufacturerData":{"type":"Buffer","data":[87,1,0,127,68,38,158,25,4,250,25,131,122,203,57,16,140,239,217,2,215,69,144,24,154,76]},"serviceData":[],"serviceUuids":[],"solicitationServiceUuids":[],"serviceSolicitationUuids":[]} +0ms
  hci onSocketData: 043e280201000096ad668d7cc41c020106030295fe141695fe712098008896ad668d7cc40d091002f002ad +5s
  hci   event type = 4 +1ms
  hci   sub event type = 62 +0ms
  hci           LE meta event type = 2 +0ms
  hci           LE meta event status = 1 +0ms
  hci           LE meta event data = 000096ad668d7cc41c020106030295fe141695fe712098008896ad668d7cc40d091002f002ad +0ms
  hci                   type = 0 +0ms
  hci                   address = c4:7c:8d:66:ad:96 +1ms
  hci                   address type = public +0ms
  hci                   eir = 020106030295fe141695fe712098008896ad668d7cc40d091002f002 +0ms
  hci                   rssi = -83 +0ms
  gap advertisement = {"serviceData":[{"uuid":"fe95","data":{"type":"Buffer","data":[113,32,152,0,136,150,173,102,141,124,196,13,9,16,2,240,2]}}],"serviceUuids":["fe95"],"solicitationServiceUuids":[],"serviceSolicitationUuids":[]} +1ms
  hci onSocketData: 043e2a0201000064170a221a001e02010511071bc5d5a5020037b7e611d8150069e05808094b45592d424c45ac +422ms
  hci   event type = 4 +1ms
  hci   sub event type = 62 +0ms
  hci           LE meta event type = 2 +0ms
  hci           LE meta event status = 1 +0ms
  hci           LE meta event data = 000064170a221a001e02010511071bc5d5a5020037b7e611d8150069e05808094b45592d424c45ac +0ms
  hci                   type = 0 +1ms
  hci                   address = 00:1a:22:0a:17:64 +0ms
  hci                   address type = public +0ms
  hci                   eir = 02010511071bc5d5a5020037b7e611d8150069e05808094b45592d424c45 +0ms
  hci                   rssi = -84 +0ms
  gap advertisement = {"localName":"KEY-BLE","serviceData":[],"serviceUuids":["58e0690015d811e6b7370002a5d5c51b"],"solicitationServiceUuids":[],"serviceSolicitationUuids":[]} +1ms
CKMartens commented 5 years ago

Auf einem neu eingerichtetet Raspi funktioniert es ohne Probleme. Scheint also mit der Bluetooth-Weiterleitung vom Hot zur VM zu liegen