{"action":"created","issue":{"url":"https://api.github.com/repos/sandeepmistry/bleno/issues/185","repository_url":"https://api.github.com/repos/sandeepmistry/bleno","labels_url":"https://api.github.com/repos/sandeepmistry/bleno/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/sandeepmistry/bleno/issues/185/comments","events_url":"https://api.github.com/repos/sandeepmistry/bleno/issues/185/events","html_url":"https://github.com/sandeepmistry/bleno/issues/185","id":147622332,"number":185,"title":"addLongTermKey failing","user":{"login":"robotastic","id":113116,"avatar_url":"https://avatars.githubusercontent.com/u/113116?v=3","gravatar_id":"","url":"https://api.github.com/users/robotastic","html_url":"https://github.com/robotastic","followers_url":"https://api.github.com/users/robotastic/followers","following_url":"https://api.github.com/users/robotastic/following{/other_user}","gists_url":"https://api.github.com/users/robotastic/gists{/gist_id}","starred_url":"https://api.github.com/users/robotastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robotastic/subscriptions","organizations_url":"https://api.github.com/users/robotastic/orgs","repos_url":"https://api.github.com/users/robotastic/repos","events_url":"https://api.github.com/users/robotastic/events{/privacy}","received_events_url":"https://api.github.com/users/robotastic/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-12T03:32:46Z","updated_at":"2016-04-24T22:01:21Z","closed_at":"2016-04-24T22:01:21Z","body":"When I do a Random Pairing, the addLongTermKey is failing. When loadLongTermKeys writes the keys, I get an invalid parameter back. I did a sanity check of the possible branches that could be creating it here:\r\nhttps://github.com/torvalds/linux/blob/c05c2ec96bb8b7310da1055c7b9d786a3ec6dc0c/net/bluetooth/mgmt.c#L4576\r\nBut I didn't see anything obvious. I confirm using /sys/kernel/debug/hci1/long_term_keys and nothing is loaded. Have you been able to get Long Term Keys to successfully load as part of a pairing?\r\n\r\nFrom debug:\r\n````\r\n  mgmt writing -> 1300000026000100428fe8c5b6470200100000000000000000000025ca78999b3b3beed475554ebc42406700 Length: 38 +1ms\r\n  mgmt on data ->02000000030013000d +1ms\r\n````\r\nhttps://github.com/pauloborges/bluez/blob/master/doc/mgmt-api.txt\r\n\r\nAs a work around I have been leaving  systemctl bluetooth enabled and just stopping the services. I then comment out the smp function from writing any ACL data. That seems to allow bluetoothd to handle all of the pairing but not get in the way."},"comment":{"url":"https://api.github.com/repos/sandeepmistry/bleno/issues/comments/214045505","html_url":"https://github.com/sandeepmistry/bleno/issues/185#issuecomment-214045505","issue_url":"https://api.github.com/repos/sandeepmistry/bleno/issues/185","id":214045505,"user":{"login":"sandeepmistry","id":1163840,"avatar_url":"https://avatars.githubusercontent.com/u/1163840?v=3","gravatar_id":"","url":"https://api.github.com/users/sandeepmistry","html_url":"https://github.com/sandeepmistry","followers_url":"https://api.github.com/users/sandeepmistry/followers","following_url":"https://api.github.com/users/sandeepmistry/following{/other_user}","gists_url":"https://api.github.com/users/sandeepmistry/gists{/gist_id}","starred_url":"https://api.github.com/users/sandeepmistry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandeepmistry/subscriptions","organizations_url":"https://api.github.com/users/sandeepmistry/orgs","repos_url":"https://api.github.com/users/sandeepmistry/repos","events_url":"https://api.github.com/users/sandeepmistry/events{/privacy}","received_events_url":"https://api.github.com/users/sandeepmistry/received_events","type":"User","site_admin":false},"created_at":"2016-04-24T22:01:21Z","updated_at":"2016-04-24T22:01:21Z","body":"I'm marking this as a duplicate of #187. (There's more discussion there)."}}