Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to connect to Mi Kettle - Software caused connection abort #19

Open
carbolymer opened this issue Mar 24, 2021 · 2 comments
Open

Comments

@carbolymer
Copy link

I've cloned the repo, done npm install, added dbus config, configured cybele as follows, using token obtained via https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor:

% cat config.json 
{
  "mqtt": {
    "url": "mqtt://localhost"
  },
  "dongles": [
    {
      "hciDevice": "hci0",
      "mode": "le",
      "services": [],
      "devices": [
        {
          "type": "MiKettleDevice",
          "friendlyName": "Mi Kettle",
          "mac": "kettle mac",
          "productId": 1116,
          "token": [255,255 ... - token ]
        }
      ]
    }
  ]
}

And I'm getting the following errors:

% node app.js
Connected to MQTT Broker
Startup complete
Mi Kettle {
  message: 'Failed to connect to Mi Kettle',
  error: 'Software caused connection abort'
} while connecting
Disconnected from Mi Kettle
Mi Kettle {
  message: 'Failed to connect to Mi Kettle',
  error: 'Software caused connection abort'
} while connecting
Disconnected from Mi Kettle
Mi Kettle {
  message: 'Failed to connect to Mi Kettle',
  error: 'Software caused connection abort'
} while connecting
Disconnected from Mi Kettle

from bluetoothd:

bluetoothd[416]: src/device.c:load_gatt_db() No cache for kettle:mac
bluetoothd[416]: src/device.c:load_gatt_db() No cache for kettle:mac

btmgmt says:

hci0 kettle:mac type LE Public connected eir_len 21
hci0 kettle:mac type LE Public disconnected with reason 0

Any ideas what's wrong?

@Hypfer
Copy link
Owner

Hypfer commented Apr 21, 2021

Try reducing the distance to the kettle

@RestOp
Copy link

RestOp commented Jun 28, 2021

The same problem.
It is 30 cm near the NUC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants