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.

CC3100: Radiotool source code questions

Part Number: CC3100
Other Parts Discussed in Thread: CC3200

Hello Expert,

I received 2 questions regarding CC3100 Radiotool source file from my customer.

1)
C:\ti\CC3100_CC3200_RadioTool_1.2\RadioToolApplication_Source\CC3100Lib_Share_Core\simplelink\source\device.c, line 283.

We found it takes much time to call sl_IfRegIntHdlr() funciton.
Can TI improve not taking so much  time to call this function?

2)
C:\ti\CC3100_CC3200_RadioTool_1.2\RadioToolApplication_Source\CC3100Lib\Source\RadioTool.c , line78

We found the sequence sl_Start, sl_Stop, sl_Start, then sl_Start again.
Why sl_Start funciton being called 2times?

Regards,
A.Fujinaka

  • Hi Akihiko,

    1. This is the interrupt handler for the NWP. The number of interrupts you get are dependent on the NWP activity and when it must communicate with the host. There is nothing that can be done here however I am not aware if some improvements have been made to gen 2 regarding performance.

    2. The NWP is typically reset to apply changes to the NWP that were commanded by the host.

    Jesu

  • Hello Jesu,

    1. It seem sl_Stop() function is called at both Radiotool start and end timing, taking about 1 second for each. This will cause the measurement time loss for the mass production. The customers request here is to reduce the process time of sl_Stop() function.

    2. The customer thinks these function calls are  because, after sending the bellow command sequence.

    retVal = sl_WlanSetMode(ROLE_STA); /* Set as STA */

    retVal = sl_WlanPolicySet(SL_POLICY_CONNECTION, SL_CONNECTION_POLICY(0,0,0,0,0), &policyVal, 1); /* set a non auto mode */

    Because CC3100 will reboot, the 2nd call is required for the re-connection. However, they don't think the above sequecne might not be required if these setting will be valid after once set. They want to delete the process after the first sl_Start()

    Regards, A.Fujinaka

  • I see in the main.c file there is the ConfigureSimpleLinkToDefaultState function that does the initial setup for the device. There is the first sl_Start then sl_Stop sequence that is for setting the device to station mode. This only happens if the device is not in station when the program starts.

    All the other calls for the next sl_Stop is because the NWP needs to be reset so that all the changes can be applied to the NWP (e.g. sl_WlanPolicySet, sl_WlanProfileDel, sl_WlanDisconnect, sl_WlanSet, etc...). 

    Please keep in mind, this radio tool example is something we provide to facilitate certification. This does not have to be used for production and ultimately the customer could take whatever approach they want to test the RF portion of their device during production.

    Jesu