{"action":"created","issue":{"url":"https://api.github.com/repos/espressif/esp-idf/issues/1764","repository_url":"https://api.github.com/repos/espressif/esp-idf","labels_url":"https://api.github.com/repos/espressif/esp-idf/issues/1764/labels{/name}","comments_url":"https://api.github.com/repos/espressif/esp-idf/issues/1764/comments","events_url":"https://api.github.com/repos/espressif/esp-idf/issues/1764/events","html_url":"https://github.com/espressif/esp-idf/issues/1764","id":307711363,"number":1764,"title":"BLE Advertising rate is incorrect (too fast)","user":{"login":"mws-rmain","id":30533684,"avatar_url":"https://avatars1.githubusercontent.com/u/30533684?v=4","gravatar_id":"","url":"https://api.github.com/users/mws-rmain","html_url":"https://github.com/mws-rmain","followers_url":"https://api.github.com/users/mws-rmain/followers","following_url":"https://api.github.com/users/mws-rmain/following{/other_user}","gists_url":"https://api.github.com/users/mws-rmain/gists{/gist_id}","starred_url":"https://api.github.com/users/mws-rmain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mws-rmain/subscriptions","organizations_url":"https://api.github.com/users/mws-rmain/orgs","repos_url":"https://api.github.com/users/mws-rmain/repos","events_url":"https://api.github.com/users/mws-rmain/events{/privacy}","received_events_url":"https://api.github.com/users/mws-rmain/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-22T16:09:52Z","updated_at":"2018-03-29T09:16:21Z","closed_at":null,"author_association":"NONE","body":"From GATT_SERVER example:\r\nIn gatts_demo.c, line 104, min advertising interval is set to 0x20. This should set minimum advertising interval to 20ms (per BLE specification, 0.625ms x 32 = 20ms).\r\n\r\nHowever, the screen capture below (from wireshark) shows advertising packets occuring at 2ms rate (first at t=29.168, next at t=29.170). The rate appears to be 10x too fast (?)\r\n\r\nEach line reflects an advertising packet, on sequential channels (37,38,39,37,38,...), so even if the specification was interpreted as meaning minimum interval for a packet on the same channel, the capture shows the first packet at t=29.168, and the next packet on this channel (3 lines down) at t=29.174 (6ms later).\r\n\r\n[](<a href=\"http://tinypic.com?ref=2z59i14\" target=\"_blank\"><img src=\"http://i67.tinypic.com/2z59i14.jpg\" border=\"0\" alt=\"Image and video hosting by TinyPic\"></a>)"},"comment":{"url":"https://api.github.com/repos/espressif/esp-idf/issues/comments/377174964","html_url":"https://github.com/espressif/esp-idf/issues/1764#issuecomment-377174964","issue_url":"https://api.github.com/repos/espressif/esp-idf/issues/1764","id":377174964,"user":{"login":"Weijian-Espressif","id":16891442,"avatar_url":"https://avatars0.githubusercontent.com/u/16891442?v=4","gravatar_id":"","url":"https://api.github.com/users/Weijian-Espressif","html_url":"https://github.com/Weijian-Espressif","followers_url":"https://api.github.com/users/Weijian-Espressif/followers","following_url":"https://api.github.com/users/Weijian-Espressif/following{/other_user}","gists_url":"https://api.github.com/users/Weijian-Espressif/gists{/gist_id}","starred_url":"https://api.github.com/users/Weijian-Espressif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Weijian-Espressif/subscriptions","organizations_url":"https://api.github.com/users/Weijian-Espressif/orgs","repos_url":"https://api.github.com/users/Weijian-Espressif/repos","events_url":"https://api.github.com/users/Weijian-Espressif/events{/privacy}","received_events_url":"https://api.github.com/users/Weijian-Espressif/received_events","type":"User","site_admin":false},"created_at":"2018-03-29T09:16:21Z","updated_at":"2018-03-29T09:16:21Z","author_association":"COLLABORATOR","body":"I set adv params with\r\n static esp_ble_adv_params_t adv_params = {\r\n    .adv_int_min         = 0x20,\r\n    .adv_int_max         = 0x20,\r\n    .adv_type            = ADV_TYPE_IND,\r\n    .own_addr_type       = BLE_ADDR_TYPE_PUBLIC,\r\n    .channel_map         = ADV_CHNL_ALL,\r\n    .adv_filter_policy   = ADV_FILTER_ALLOW_SCAN_ANY_CON_ANY,\r\n};\r\n\r\nthis is the result:\r\n捕获.PNG"}}
{"actor":{"display_login":"Weijian-Espressif"}}