Get UID and use it in BLE Local Name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-23 6:47 AM
Hi,
I am using the STM32WB55 and would like to use part of the chip's unique ID as part of the local name in my BLE application.
I was hoping someone could easily show me how I could do this, or at a minimum, get the UID?
Thanks for any help.
- Labels:
-
STM32WB series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-23 7:55 AM
The reference manual lists the location of the 96-bit UID and the UID64, which is probably what you want.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-23 10:47 AM
How would I access this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-23 10:56 AM
uint32_t uid64_1 = *((uint32_t *) 0x1FFF7580);
uint32_t uid64_2 = *((uint32_t *) 0x1FFF7584);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-23 11:07 AM
You might want something like they're doing here:
I'm unfamiliar with the details of BLE.
