{"action":"created","issue":{"url":"https://api.github.com/repos/paypal/gatt/issues/77","repository_url":"https://api.github.com/repos/paypal/gatt","labels_url":"https://api.github.com/repos/paypal/gatt/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/paypal/gatt/issues/77/comments","events_url":"https://api.github.com/repos/paypal/gatt/issues/77/events","html_url":"https://github.com/paypal/gatt/issues/77","id":163749494,"number":77,"title":"Linux: Failed to discover services, err: invalid length","user":{"login":"deadprogram","id":5520,"avatar_url":"https://avatars.githubusercontent.com/u/5520?v=3","gravatar_id":"","url":"https://api.github.com/users/deadprogram","html_url":"https://github.com/deadprogram","followers_url":"https://api.github.com/users/deadprogram/followers","following_url":"https://api.github.com/users/deadprogram/following{/other_user}","gists_url":"https://api.github.com/users/deadprogram/gists{/gist_id}","starred_url":"https://api.github.com/users/deadprogram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deadprogram/subscriptions","organizations_url":"https://api.github.com/users/deadprogram/orgs","repos_url":"https://api.github.com/users/deadprogram/repos","events_url":"https://api.github.com/users/deadprogram/events{/privacy}","received_events_url":"https://api.github.com/users/deadprogram/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-07-04T22:53:51Z","updated_at":"2016-07-07T18:07:03Z","closed_at":null,"body":"When trying to connect to a specific peripheral under Linux, I get the error `Failed to discover services, err: invalid length`.\r\n\r\nFirst I receive these messages:\r\n\r\n```\r\n2016/07/05 00:42:51 Request 0x02 got a mismatched response: 0x08\r\n2016/07/05 00:42:51 ignore l2cap signal:[ 0C 00 05 00 12 01 08 00 06 00 06 00 00 00 F4 01 ]\r\n2016/07/05 00:42:51 Request 0x10 got a mismatched response: 0x03\r\n```\r\n\r\nAnd then the main error:\r\n\r\n```\r\nFailed to discover services, err: invalid length\r\n```\r\n\r\nI am able to connect using Noble, so I know it is not a hardware issue per se. Also, the same gatt code works on OSX, just not Linux. Anyone else run into anything like this?"},"comment":{"url":"https://api.github.com/repos/paypal/gatt/issues/comments/231160191","html_url":"https://github.com/paypal/gatt/issues/77#issuecomment-231160191","issue_url":"https://api.github.com/repos/paypal/gatt/issues/77","id":231160191,"user":{"login":"deadprogram","id":5520,"avatar_url":"https://avatars.githubusercontent.com/u/5520?v=3","gravatar_id":"","url":"https://api.github.com/users/deadprogram","html_url":"https://github.com/deadprogram","followers_url":"https://api.github.com/users/deadprogram/followers","following_url":"https://api.github.com/users/deadprogram/following{/other_user}","gists_url":"https://api.github.com/users/deadprogram/gists{/gist_id}","starred_url":"https://api.github.com/users/deadprogram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deadprogram/subscriptions","organizations_url":"https://api.github.com/users/deadprogram/orgs","repos_url":"https://api.github.com/users/deadprogram/repos","events_url":"https://api.github.com/users/deadprogram/events{/privacy}","received_events_url":"https://api.github.com/users/deadprogram/received_events","type":"User","site_admin":false},"created_at":"2016-07-07T18:07:03Z","updated_at":"2016-07-07T18:07:03Z","body":"Here is the output log, and HCIDUMP.\r\n\r\n```\r\n$ sudo LOGXI=* ./explorer E0:14:05:A4:3D:A9 > mini-log.txt\r\n2016/07/07 20:03:09 dev: hci0 up\r\n2016/07/07 20:03:09 dev: hci0 reset\r\n2016/07/07 20:03:09 dev: hci0 down\r\n2016/07/07 20:03:09 dev: hci0 opened\r\n2016/07/07 20:03:10 Request 0x02 got a mismatched response: 0x08\r\n2016/07/07 20:03:10 l2conn: short/corrupt packet, &{3585 1 3 [250 102 154]} [FA 66 9A]\r\n```\r\n\r\n[mini-dump.txt](https://github.com/paypal/gatt/files/352792/mini-dump.txt)\r\n[mini-log.txt](https://github.com/paypal/gatt/files/352799/mini-log.txt)\r\n"}}
{"actor":{"display_login":"deadprogram"}}