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.

CC2640R2F: Use labview to read MAC address

Part Number: CC2640R2F
Other Parts Discussed in Thread: CC2652R

Hi,

My customer is using labview to read Bluetooth MAC address.

May I know is there any training document  or sample code about it?

Also, they have success read MAC actually, but it is really slow that need around 15 seconds to read it.

Any idea how to debug it?

Thanks a lot for your support.

  • I would suggest you to use BLE sniffer to check where is the latency from.

  • Aichi,

    Thanks for your inquiry. I will assign an expert.

    Can you please clarify what SDK version and what example project your customer is using?

    Thank you,

    Luis

  • Hi,

    In addition to the questions raised by Yikai and Luis, how exactly is Labview connected to the device itself to read the MAC address? Is this via a serial interface or over the air?

    (I am not very familiar with Labview)

    Regards,

    Rafael

  • Thanks all you reply.

    They are using Labview to control srfprog inside SmartRF_Flash_Programmer_2 package.

    The reason why they cost around 15 seconds just because connect to devices need 10~12 seconnds and read MAC just 2-3 seconds.

    So if we can auto connect to device once plug like this in command line, it will be helpful.

    The command is this? srfprog -ls auto

    And i use this to read mac from multiple devices? srfprog -r addr(0x%address1%,%length%) -r addr(0x%address2%,%length%) ...-r addr(0x%addressN%,%length%)

  • Aichi Chen said:
    They are using Labview to control srfprog inside SmartRF_Flash_Programmer_2 package.

    At my previous work, we also use Labview GUI to do this, specifically for production programming. There should be some documentation at SmartRF Flash Programmer 2 regarding Command Line Interface.

    Aichi Chen said:
    The reason why they cost around 15 seconds just because connect to devices need 10~12 seconnds and read MAC just 2-3 second

    Can you clarify this further? Is your goal a faster way to read the MAC address? I just use SmartRF Flash Programmer 2 to read the MAC Address.

    -kel

  • Thanks for your reply.

    Yes, my goal is "a faster way to read the MAC address".

    I know SmartRF Flash Programmer 2 GUI can do this. But I would like to do this in SmartRF Flash Programmer 2 CLI and read MAC from multiple devices at the same time.

    Do you have any suggestion for it?

  • I just use ".\srfprog.exe -ls all"

    PS C:\Program Files (x86)\Texas Instruments\SmartRF Tools\Flash Programmer 2\bin> .\srfprog.exe -ls all

    Texas Instruments SmartRF Flash Programmer 2 v1.8.2-windows
    -------------------------------------------------------------------------------


    -------------------------------------------------------------------------------

     Connected devices:

     ------------------

     0 Device: XDS110, ID:XDS-L4100AUQ

               Chip: Unknown

     1 Device: XDS110, ID:XDS-L12002NP

               Chip: Unknown

     2 Device: XDS110 Class Application/User UART (COM11), ID:COM11

               Chip: Unknown

     3 Device: XDS110 Class Application/User UART (COM4), ID:COM4

               Chip: Unknown

    Then I input ".\srfprog -t lsidx(0) -r macsec" then get this result,

    PS C:\Program Files (x86)\Texas Instruments\SmartRF Tools\Flash Programmer 2\bin> .\srfprog -t lsidx(0) -r macsec

    Texas Instruments SmartRF Flash Programmer 2 v1.8.2-windows
    -------------------------------------------------------------------------------

    ERROR: Not able to read device index from argument: lsidx 0

    Anyone know whats going on?

  • Aichi,

    I lost track of this thread. Is your customer still having issue?

    The method you are using is sound and should work, unless there is a problem on the connection between the Debug Probe and the device. 

    One way to identify if this is the core issue is to issue the -ls command with the auto parameter, which indicates if the devices themselves are readable.

    command line said:

    C:\Program Files (x86)\Texas Instruments\SmartRF Tools\Flash Programmer 2\bin>srfprog -ls auto

    Texas Instruments SmartRF Flash Programmer 2 v1.8.2-windows
    -------------------------------------------------------------------------------


    -------------------------------------------------------------------------------

     Connected devices:

     ------------------

     0 Device: XDS110, ID:XDS-L1100H6E

               Chip: CC2652R

      Chip Revision: E (2.1)

     1 Device: XDS110, ID:XDS-L1100H6L

               Chip: CC2652R

      Chip Revision: E (2.1)

     2 Device: XDS110 Class Application/User UART (COM15), ID:COM15

               Chip: Unknown

     3 Device: Intel(R) Active Management Technology - SOL (COM3), ID:COM3

               Chip: Unknown

     4 Device: XDS110 Class Application/User UART (COM7), ID:COM7

               Chip: Unknown

    -------------------------------------------------------------------------------

    If the devices are unable to be properly identified, I would try some of the troubleshooting suggestions on this other thread.

    https://e2e.ti.com/support/wireless-connectivity/bluetooth/f/538/p/972778/3602221#3602221

    Hope this helps,

    Rafael