尊敬的 TI:
我需要有关使用 python 串行模块从任何端口获取 MAC ID 的帮助、您能帮助我如何实现这一点吗?
谢谢、
Chetan Patil
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.
您好、Chetan、
编写您自己的 python 模块以从某些串行端口读取 IEEE MAC 主地址(或 BLE MAC 地址)是一项艰巨的任务。
我建议使用 闪存编程器2、它具有 CLI、您可以从终端读取主要和次要 IEEE 或 BLE MAC 地址。
CLI 位于下 /bin/srfprog.exe. 以下是使用示例:
$ cd "C:\ti\SmartRF Tools\Flash Programmer 2\bin" # for help menu $ srfprog --help # to read out the primary IEEE MAC address $ srfprog -t lsidx (0)-r macpri # or the secondary IEEE MAC address $ srfprog -t lsidx (0)-r MACsec
Severin、您好!
我尝试了上述代码,但无法获取 Mac ID。
我尝试了 srfprog -t soc (COM5、CC1312R)-r macpri、 使用此命令可以读取 Mac id。
但在这里、为了获得结果、我特别提到 Comport 5。 我不想这么做。
如何使用您发送的命令执行此操作,是否缺少任何内容。
注意:srfprog -ls all 将枚举作为第0 个器件连接的器件。但 srfprog -ls 将显示未连接的器件。
我如何使用此命令执行它
首先、确保 LaunchPad 上的 XDS 调试器具有正确版本的固件。 这可以通过打开闪存编程器2 GUI 并尝试连接到器件来检查。 如果调试器 FW 过时、它将提示您更新。
验证后,您可以尝试以下 CLI 命令:
$ srfprog.exe -t lsidx (0)-r macpri Texas Instruments SmartRF Flash Programmer 2 v1.8.1-windows ------------------------------------------------------- 通过2引脚 cJTAG 进行连接。 IEEE 802.15.4 MAC 主地址: 00 12 4B 00 1C AB 7C 6D