- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I want to use the UniqueId as the bluetooth mac address.
The function -- CyGetUniqueId() :
void CyGetUniqueId(uint32* uniqueId)
{
#if(CY_PSOC4)
uniqueId[0u] = (uint32)(* (reg8 *) CYREG_SFLASH_DIE_LOT0 );
uniqueId[0u] |= ((uint32)(* (reg8 *) CYREG_SFLASH_DIE_LOT1 ) << 8u);
uniqueId[0u] |= ((uint32)(* (reg8 *) CYREG_SFLASH_DIE_LOT2 ) << 16u);
uniqueId[0u] |= ((uint32)(* (reg8 *) CYREG_SFLASH_DIE_WAFER ) << 24u);
uniqueId[1u] = (uint32)(* (reg8 *) CYREG_SFLASH_DIE_X );
uniqueId[1u] |= ((uint32)(* (reg8 *) CYREG_SFLASH_DIE_Y ) << 8u);
uniqueId[1u] |= ((uint32)(* (reg8 *) CYREG_SFLASH_DIE_SORT ) << 16u);
uniqueId[1u] |= ((uint32)(* (reg8 *) CYREG_SFLASH_DIE_MINOR ) << 24u);
#else
}
I can divide 2 numbers into 8 numbers, 4 numbers from the uniqueId[0], and 4 numbers from the uniqueId[1].
I want to know which numbers can be used to as mac address.
What do they mean:
CYREG_SFLASH_DIE_LOT0
CYREG_SFLASH_DIE_LOT1
CYREG_SFLASH_DIE_LOT2
CYREG_SFLASH_DIE_WAFER
CYREG_SFLASH_DIE_X
CYREG_SFLASH_DIE_Y
CYREG_SFLASH_DIE_SORT
CYREG_SFLASH_DIE_MINOR
THANK YOU!
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You will need all 64 bits as the unique ID. The Lots, wafer and x-y positions identify each single chip.
DIE_SORT and MINOR characterize the device and the revision afaik. When needing a 48 bit mac address you might shorten those, but I would suggest to use all 64 bits.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thank you.I want to use six numbers(the Lots, wafer and x-y) as the Bluetooth mac address, could I? Can it be the Unique ID of my BT module?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your ID could be repeated between PSoC BLE and PRoC BLE as far as I understand.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oh my GOD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not too much, just call me "Bob"
:-))
Bob