This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] CC2540:系统 ID

Guru**** 2551110 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/573164/cc2540-system-id

器件型号:CC2540

我的系统 ID 为84;EB:18:77:07:3C。

使用以下命令获取 ID。

uint8 primaryMac[B_ADDR_LEN];
uint8 volatile * externalMemory =(uint8 volatile *) 0x780E;
osal_memcpy (primaryMac、(void*) externalMemory、B_ADDR_LEN);

以及

uint8 primaryMac[B_ADDR_LEN];
GAPRole_GetParameter (GAPROLE_BD_ADDR、primaryMac); 

这两种方法只返回两个字节编号、其中我希望返回六个字节。 此外、数字会发生变化(尽管不经常发生)。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    我的错误是、数据位于字节数组中、但我将其视为48位数字。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    是的、没错、它是一个字节数组。 很高兴它能正常工作。

    祝你一切顺利