Title: Device disconnected error in example_ble_1.py · Issue #20 · STMicroelectronics/BlueSTSDK_Python · GitHub
Open Graph Title: Device disconnected error in example_ble_1.py · Issue #20 · STMicroelectronics/BlueSTSDK_Python
X Title: Device disconnected error in example_ble_1.py · Issue #20 · STMicroelectronics/BlueSTSDK_Python
Description: Hello, I was trying to run the first example using Python 3.5.2 on a Linux Mint system to communicate with the ST-WB55 and X-NUCLEO-IKS01A3 running the FP-SNS-MOTENVWB1 function pack. The only modification I did to the code of the exampl...
Open Graph Description: Hello, I was trying to run the first example using Python 3.5.2 on a Linux Mint system to communicate with the ST-WB55 and X-NUCLEO-IKS01A3 running the FP-SNS-MOTENVWB1 function pack. The only modi...
X Description: Hello, I was trying to run the first example using Python 3.5.2 on a Linux Mint system to communicate with the ST-WB55 and X-NUCLEO-IKS01A3 running the FP-SNS-MOTENVWB1 function pack. The only modi...
Opengraph URL: https://github.com/STMicroelectronics/BlueSTSDK_Python/issues/20
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Device disconnected error in example_ble_1.py","articleBody":"Hello,\r\n\r\nI was trying to run the first example using Python 3.5.2 on a Linux Mint system to communicate with the ST-WB55 and X-NUCLEO-IKS01A3 running the FP-SNS-MOTENVWB1 function pack.\r\n\r\nThe only modification I did to the code of the example was incrementing the discovery time from 5 to 20 seconds.\r\n\r\nHere's the execution:\r\n\r\n```\r\n$ sudo python3 example_ble_1.py \r\n\r\n##################\r\n# BlueST Example #\r\n##################\r\n\r\nScanning Bluetooth devices...\r\n\r\nDiscovery started.\r\nNew device discovered: WBMEMS.\r\nTraceback (most recent call last):\r\n File \"/usr/local/lib/python3.5/dist-packages/blue_st_sdk/manager.py\", line 313, in discover\r\n self._scanner.scan(timeout_s)\r\n File \"/usr/local/lib/python3.5/dist-packages/bluepy/btle.py\", line 854, in scan\r\n self.stop()\r\n File \"/usr/local/lib/python3.5/dist-packages/bluepy/btle.py\", line 803, in stop\r\n self._mgmtCmd(self._cmd()+\"end\")\r\n File \"/usr/local/lib/python3.5/dist-packages/bluepy/btle.py\", line 309, in _mgmtCmd\r\n rsp = self._waitResp('mgmt')\r\n File \"/usr/local/lib/python3.5/dist-packages/bluepy/btle.py\", line 362, in _waitResp\r\n raise BTLEDisconnectError(\"Device disconnected\", resp)\r\nbluepy.btle.BTLEDisconnectError: Device disconnected\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"example_ble_1.py\", line 312, in \u003cmodule>\r\n main(sys.argv[1:])\r\n File \"example_ble_1.py\", line 189, in main\r\n manager.discover(SCANNING_TIME_s)\r\n File \"/usr/local/lib/python3.5/dist-packages/blue_st_sdk/manager.py\", line 325, in discover\r\n raise BlueSTInvalidOperationException(msg)\r\nblue_st_sdk.utils.blue_st_exceptions.BlueSTInvalidOperationException: \r\nBluetooth scanning requires root privilege, so please run the script with \"sudo\".\r\n```\r\n\r\nThe same happens also with the second example.\r\n\r\nDo you know what causes the device to disconnect?\r\n\r\nThanks,\r\nNoah","author":{"url":"https://github.com/NoahRosa","@type":"Person","name":"NoahRosa"},"datePublished":"2020-03-10T13:36:49Z","url":"https://github.com/STMicroelectronics/BlueSTSDK_Python/issues/20"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d4f33855-5755-77e6-7b0e-be749ce52579 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A654:2EA7B6:209FC7A:2ADD4ED:6B054149 |
| html-safe-nonce | 798f113796219e17d1e1b2d8bd8ce4b315e1f6e84bee2d5b3826534d53474e4d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjU0OjJFQTdCNjoyMDlGQzdBOjJBREQ0RUQ6NkIwNTQxNDkiLCJ2aXNpdG9yX2lkIjoiNzk1OTM4NTEzNjQ5MDE2ODY0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 45c44148c13012c80193d9fd72195124b35bccf3136875e62b6734ffd6d764c2 |
| hovercard-subject-tag | issue:578584441 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/STMicroelectronics/BlueSTSDK_Python/20/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e57418b06079148722f0afab7f7c405f0f1b340bda64aa11333908cf77205eaf/STMicroelectronics/BlueSTSDK_Python/issues/20 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e57418b06079148722f0afab7f7c405f0f1b340bda64aa11333908cf77205eaf/STMicroelectronics/BlueSTSDK_Python/issues/20 |
| og:image:alt | Hello, I was trying to run the first example using Python 3.5.2 on a Linux Mint system to communicate with the ST-WB55 and X-NUCLEO-IKS01A3 running the FP-SNS-MOTENVWB1 function pack. The only modi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | NoahRosa |
| hostname | github.com |
| expected-hostname | github.com |
| None | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| turbo-cache-control | no-preview |
| go-import | github.com/STMicroelectronics/BlueSTSDK_Python git https://github.com/STMicroelectronics/BlueSTSDK_Python.git |
| octolytics-dimension-user_id | 10744877 |
| octolytics-dimension-user_login | STMicroelectronics |
| octolytics-dimension-repository_id | 125541395 |
| octolytics-dimension-repository_nwo | STMicroelectronics/BlueSTSDK_Python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 125541395 |
| octolytics-dimension-repository_network_root_nwo | STMicroelectronics/BlueSTSDK_Python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width