How to generate different mac address in programmed

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

cross mob
Anonymous
Not applicable

We produce products with CYBL10161,but all products have the same Bluetooth mac address。we must set the mac address by uart to send commond after programmed 。but it  is too complicated。i want to ask Is there a more convenient way to automatically generate the mac address at the time of programmed 。thanks for help。

0 Likes
1 Reply
Anonymous
Not applicable

Hi,

   

You can use the CyBle_SetDeviceAddress API to change the Mac Address in the firmware. You can derive the mac address from th Silicon ID of the chip so that each chip has its unique MAC Address.

   

To get the silicon ID, you can use the API:

   

CyGetUniqueID is used to get the 64 Bit unique ID:
CyGetUniqueID(&ID);
//where ID is declared as uint32 ID[2];

0 Likes