{"action":"closed","issue":{"url":"https://api.github.com/repos/dlenski/ttblue/issues/10","repository_url":"https://api.github.com/repos/dlenski/ttblue","labels_url":"https://api.github.com/repos/dlenski/ttblue/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/dlenski/ttblue/issues/10/comments","events_url":"https://api.github.com/repos/dlenski/ttblue/issues/10/events","html_url":"https://github.com/dlenski/ttblue/issues/10","id":340122635,"node_id":"MDU6SXNzdWUzNDAxMjI2MzU=","number":10,"title":"tt_reboot doesn't work anymore","user":{"login":"Grimler91","id":18900601,"node_id":"MDQ6VXNlcjE4OTAwNjAx","avatar_url":"https://avatars2.githubusercontent.com/u/18900601?v=4","gravatar_id":"","url":"https://api.github.com/users/Grimler91","html_url":"https://github.com/Grimler91","followers_url":"https://api.github.com/users/Grimler91/followers","following_url":"https://api.github.com/users/Grimler91/following{/other_user}","gists_url":"https://api.github.com/users/Grimler91/gists{/gist_id}","starred_url":"https://api.github.com/users/Grimler91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Grimler91/subscriptions","organizations_url":"https://api.github.com/users/Grimler91/orgs","repos_url":"https://api.github.com/users/Grimler91/repos","events_url":"https://api.github.com/users/Grimler91/events{/privacy}","received_events_url":"https://api.github.com/users/Grimler91/received_events","type":"User","site_admin":false},"labels":[{"id":242640542,"node_id":"MDU6TGFiZWwyNDI2NDA1NDI=","url":"https://api.github.com/repos/dlenski/ttblue/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-07-11T07:26:47Z","updated_at":"2018-12-30T12:57:45Z","closed_at":"2018-12-30T12:57:45Z","author_association":"CONTRIBUTOR","body":"tt_reboot currently doesn't work for either watch version. \r\nHow did it work before? Sending lots of zeros causes device to freeze and reboot?\r\n\r\nFirst error is \r\n```\r\nRebooting watch...\r\nExpected ATT WRITE response opcode (0x13) but received 0x1b\r\n```\r\nLooking at the bluetooth traffic I can see that this happens because the watch sends both a 0x13 and a 0x1b, i.e. traffic is something like \r\n```\r\n25 <-- 00 00 00 00 (write req)\r\n25 ->  00 13           (write response)\r\n25 ->  00 00 00 00 (value notification handle (0x1b))\r\n```\r\nAnd when we flood the device the order is messed up which causes this error:\r\n```\r\n25 <-- 00 00 00 00 (write req)\r\n25 ->  00 13           (write response)\r\n25 <-- 00 00 00 00 (write req)\r\n25 ->  00 00 00 00 (0x1b)\r\n```\r\n\r\nI tried fixing this by using write instead of wrreq and to change so that wrreq allows 0x1b as response but I haven't been able to cause a reboot, it doesn't seem to be possible in the same way anymore."}}
{"actor":{"display_login":"Grimler91"}}