Peripherals with same BLE firmware.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
StSc_1311791
Level 3
Level 3
10 replies posted 5 replies posted 5 questions asked

I have created a peripheral board using the BLE module.  If I have two of my peripheral boards with the same firmware, how can the Central determine which board to connect to?  Since it is my understanding that each board would have the same BLE address and the Central connects by specifying the BLE address.

0 Likes
1 Solution

Hello Stan,

During mass production, the 48 bit bluetooth device address is assigned to the BLE chip which is the Silicon generated "company assigned" part of device address. But the user can also write the BLE address in the SFLASH (Supervisory flash) where the first 6 bytes of Row 0 are reserved for the BLE device address.

Please go through this KBA - Setting Bluetooth Device Address - KBA211407 . This gives the details regarding setting the Bluetooth Device Address.

-Sayani.

View solution in original post

0 Likes
3 Replies
SayaniS_66
Moderator
Moderator
Moderator
10 likes received First like received

Hello,

In the BLE component customizer, there is an option to use the company assigned device address. Here , the silicon address which is generated is different for different devices. So even if two or more peripherals have the same firmware, the address will be different and the central can easily identify the peripheral devices.

To enable this, go to the BLE component customizer -> go to GAP settings tab -> select general option -> check the box Silicon generated "company assigned" part of device address.

If you program two peripherals with same firmware having same device name and scan from your central device using CySmart, you can see the same device name being shown for the two peripheral devices but the bluetooth address will be different.

-Sayani.

0 Likes

Sayani,

Thank you for the quick response.  I did have the Silicon generated "company assigned" part of address checked.  I only have one hardware peripheral device so I can't verify your answer using CySmart as you suggested.  What surprised me was that even after regenerating the project and re-building, the device still had the same address.  So what I suspect is that the hardware BLE chip has something inside it that will cause a unique address to be generated but it will always be the same address for same physical BLE chip.

Stan

0 Likes

Hello Stan,

During mass production, the 48 bit bluetooth device address is assigned to the BLE chip which is the Silicon generated "company assigned" part of device address. But the user can also write the BLE address in the SFLASH (Supervisory flash) where the first 6 bytes of Row 0 are reserved for the BLE device address.

Please go through this KBA - Setting Bluetooth Device Address - KBA211407 . This gives the details regarding setting the Bluetooth Device Address.

-Sayani.

0 Likes