Title: P-NUCLEO-WB55 - update firmware via BLE and read characteristic · Issue #21 · STMicroelectronics/BlueSTSDK_Python · GitHub
Open Graph Title: P-NUCLEO-WB55 - update firmware via BLE and read characteristic · Issue #21 · STMicroelectronics/BlueSTSDK_Python
X Title: P-NUCLEO-WB55 - update firmware via BLE and read characteristic · Issue #21 · STMicroelectronics/BlueSTSDK_Python
Description: Hi all I have nucleo board with STM32WB55 chip with original bootloader from ST - STM_OTA. I can update program via bla using STM32CubeMonitor-RF and it's work fine for me. Now I would like to use Your script to load firmware via BLE and...
Open Graph Description: Hi all I have nucleo board with STM32WB55 chip with original bootloader from ST - STM_OTA. I can update program via bla using STM32CubeMonitor-RF and it's work fine for me. Now I would like to use ...
X Description: Hi all I have nucleo board with STM32WB55 chip with original bootloader from ST - STM_OTA. I can update program via bla using STM32CubeMonitor-RF and it's work fine for me. Now I would like to ...
Opengraph URL: https://github.com/STMicroelectronics/BlueSTSDK_Python/issues/21
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"P-NUCLEO-WB55 - update firmware via BLE and read characteristic","articleBody":"Hi all\r\n\r\nI have nucleo board with STM32WB55 chip with original bootloader from ST - STM_OTA. I can update program via bla using STM32CubeMonitor-RF and it's work fine for me. Now I would like to use Your script to load firmware via BLE and STM_OTA bootloader, but I have got some trouble.\r\n\r\nIn advertaising mode my device have name STM_OTA (the default ST bootlader) so I changed name of device :\r\n\r\n`IOT_DEVICE_NAME = 'TAI_110' -> IOT_DEVICE_NAME = 'STM_OTA'`\r\n\r\nafter that I changed name of my bin file with new firmware:\r\n```\r\nFIRMWARE_FOLDER = '/home/ppawel/download/STM_OTA/'\r\nFIRMWARE_EXTENSION = '.bin'\r\nFIRMWARE_FILENAMES = ['test1'\r\n]\r\n```\r\n\r\nAfter run script \"example_ble_x.py\" I used \"user interfeis - terminal\" to choose what I need - update firmware and which bin file, and after that the script crash:\r\n\r\n```\r\n~/Downloads/BlueSTSDK_Python/blue_st_examples $ sudo python3 example_ble_6.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: STM_OTA.\r\nDiscovery stopped.\r\n\r\nConnecting to STM_OTA...\r\nDevice STM_OTA connected.\r\nConnection done.\r\n\r\nFeatures:\r\nNo features found.\r\n1) Firmware upgrade\r\n\r\nSelect an action ('0' to quit): 1 \r\n1)node-stm32wb55\r\n\r\nSelect a firmware ('0' to cancel): 1\r\n\r\nUpgrading firmware...\r\n1\r\n\u003cbound method Node.get_debug of \u003cblue_st_sdk.node.Node object at 0x7647b490>>\r\nnone\r\n2\r\nTraceback (most recent call last):\r\n File \"example_ble_6.py\", line 327, in main\r\n upgrade_console.add_listener(upgrade_console_listener)\r\nAttributeError: 'NoneType' object has no attribute 'add_listener'\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_6.py\", line 391, in \u003cmodule>\r\n main(sys.argv[1:])\r\n File \"example_ble_6.py\", line 346, in main\r\n upgrade_console.remove_listener(upgrade_console_listener)\r\nAttributeError: 'NoneType' object has no attribute 'remove_listener'\r\nDevice STM_OTA disconnected.\r\nException ignored in: \u003cfunction Peripheral.__del__ at 0x76572108>\r\nTraceback (most recent call last):\r\n File \"/usr/local/lib/python3.7/dist-packages/bluepy/btle.py\", line 630, in __del__\r\n File \"/usr/local/lib/python3.7/dist-packages/blue_st_sdk/node.py\", line 555, in disconnect\r\n File \"/usr/local/lib/python3.7/dist-packages/blue_st_sdk/node.py\", line 398, in _update_node_status\r\n File \"/usr/lib/python3.7/concurrent/futures/thread.py\", line 151, in submit\r\nRuntimeError: cannot schedule new futures after shutdown\r\n```\r\n\r\nI have some question:\r\n\r\n1. This script work/is compatible with this board (STM32WB55 and STM OTA bootloader) ??\r\n\r\n2. How I can access to ble characteristic via scripts ??\r\n\r\nThanks for help for everyone","author":{"url":"https://github.com/pawelm87","@type":"Person","name":"pawelm87"},"datePublished":"2020-05-24T10:12:25Z","url":"https://github.com/STMicroelectronics/BlueSTSDK_Python/issues/21"}
| 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:12914caf-90b9-c819-1463-3f27c261e1f1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B594:1F13:DE161A:12B3868:6B054150 |
| html-safe-nonce | 366d3d13e1976f94eaa9a76300e4adc3a35d6a6cedb0a91cd910adcc14896868 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTk0OjFGMTM6REUxNjFBOjEyQjM4Njg6NkIwNTQxNTAiLCJ2aXNpdG9yX2lkIjoiMjgxNDY3NTI2NDEwNDM4MjgwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 045949a7c94ec231d902d00d9e1367369b2789fea70aef7d6620cfd0b96ab935 |
| hovercard-subject-tag | issue:623834389 |
| 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/21/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ca0d3e829b27ab6988246d79432e8f686ca61eafe49b9907ef051d1345f955b0/STMicroelectronics/BlueSTSDK_Python/issues/21 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ca0d3e829b27ab6988246d79432e8f686ca61eafe49b9907ef051d1345f955b0/STMicroelectronics/BlueSTSDK_Python/issues/21 |
| og:image:alt | Hi all I have nucleo board with STM32WB55 chip with original bootloader from ST - STM_OTA. I can update program via bla using STM32CubeMonitor-RF and it's work fine for me. Now I would like to use ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pawelm87 |
| 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