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.

RTOS/SIMPLELINK-WIFI-CC3120-SDK-PLUGIN: Getting Started Issues with SIMPLELINK-WIFI-CC3120-SDK-PLUGIN with MSP432E401Y LaunchPad

Part Number: SIMPLELINK-WIFI-CC3120-SDK-PLUGIN
Other Parts Discussed in Thread: MSP432E401Y, CC3120, CC3100, UNIFLASH, CC31XXEMUBOOST

Tool/software: TI-RTOS

I'm using CC3120 Wi-Fi booster plugin and MSP432E401Y LaunchPad and need help in resolving the following "Getting Started' issues with some of the WiFi plugin demo examples. They could all be related to a single trivial or hardware issue.

The Hardware & Software and UiFlash updates are listed below. All examples were attempted in CCS (both freertos and tirtos exhibit same behavior).

Issues

Issue 1 - The nHIB LED 6 is continuously off (indicating the CC3120 is in hibernate mode); it has never been ON (Green) since receiving the plugin.

  • Tested with all power modes via power_measurement example (always connected, Intermittently Connected, LPDS, ...)
  • The nHIB switch (SW3) was pressed (it is intended for sending device to bootloader mode), with no effect
  • The Factory Default button (SW1) with pressed (along with toggling Reset SW2; attempting to restore factor image) with no effect (see UniFlashing service pack and user files below
  • Tried to run the 'trigger_mode' example (possible cause for initial hibernate)

Issue 2 - Never been able to provision device via app (SimpleLink SDK Starter Pro), "There is no SimpleLink devices around you" and "No Initial network to conect to"

  • mySimpleLink with MAC address is included in the scan list (as an AP) on other devices (e.g., mobile phone)

Issue 3 - Never been able to provision device via 'provisioning' example

  • The example attempt to start provision mode 2, but never return to ask for wirless network SSID, password, ...
  • Can connect to WiFi AP through wlanconnect cmd of another example 'network_terminal' and access its HTTP page (which is not headless provisioning)

Issue 4 - Running network_terminal example

  • On startup the application fail to display the banner with list of commands since it is looping in the uDMA error interrupt (dmaErrorFxn in MSP_EXP432E401Y.c), possibly a transient issue with SPI interface with MCU.
  • The banner is displayed after commenting the infinite loop n the uDMA interrupt.
  • Commands 'wlanconnect', 'ping' and 'recv -s' and 'recv -c' seem to be working fine (connecting with socket tester apps)
  • Command 'send -s' and 'send -c' fail connecting to socket tester apps (sl_Send() with g_pCB->SocketTXFailure>0 in ti\simplelink_sdk_wifi_plugin_1_60_00_07\source\ti\drivers\net\wifi\source\driver.c)


Hardware and Software

  • MSP-EXP432E401Y-SimpleLink™ Ethernet MSP432E401Y MCU LaunchPad™ Development Kit
  • CC3120BOOST-SimpleLink™ Wi-Fi® CC3120 Wireless Network Processor BoosterPack™ Plug-In Module
  • CC31XXEMUBOOST-Advanced Emulation BoosterPack for SimpleLink Wi-Fi CC3100 BoosterPack plug-in module
  • uniflash_4.3.1.1835
  • simplelink_msp432e4_sdk_2_20_00_20
  • simplelink_sdk_wifi_plugin_1_60_00_07
  • Code Composer Studio 8.1.0
  • FreeRTOSv10.0.1
  • Simple TCP Socket Tester on Android (and SocketTest on PC) - connected to Wifi AP (192.168.x.x)


Configuration Setup

  • The CC3120 Wi-Fi booster plugin is connected to MSP432E401Y LaunchPadwith J5 through J8 (with SPI and uDMA interface via SSI3_BASE)
  • Updated BoosterPack CC3120 to service pack sp_3.7.0.1_2.0.0.0_2.2.0.6 using CC31XXEMUBOOST and UniFlash (with only failsafe option checked)
  • Added user files dummy-root-ca-cert and dummy-root-ca-cert-key at root of CC3120 file system (with only failsafe option checked)
  • The MCU launchpad is interfacing with ADC/DAC Eval board via SPI using SSI2 (in a separate CCS workspace, never been running at same time as the Wifi plugin examples)

Thank you for your help.

  • Hi Lasto,

    Thank you for the detailed explanation of your issues and setup! I will start looking into the issues you are having. I just also would like to know:
    1) What phone and OS are you using?
    2) What version of SimpleLink SDK Starter Pro are you running?

    Best regards,
    Kristen
  • Thank you for taking the time to look into the issues.

    1) Motorola E (2nd Generation) with Android 6.0 - I'll try to reproduce using other models.
    2) SimpleLink SDK Starter Pro - Build 2.2.22 SC lib 1.0.2. (I tried to use provisioning in the SimpleLink SDK Explorer 1.1.0 App; I managed to select and load '3x20 WIFI SDKs', but it seems that provisioning is limited to BLE only under Android)

    Please let me know if you'd need further information.
  • Issue 1:

    I'm unable to reproduce this issue - is LED 6 off for all examples you are running? Or just the trigger_mode example? 

    Issue 2/3:

    It seems like you are running the provisioning example separately from running the SimpleLink SDK Starter Pro app. Are you running the provisioning example while attempting to provision the device via Starter Pro? While the provisioning example is running on the device, your phone should be able to detect your device, and then you will be able to enter your AP's SSID and password. If your phone is still having trouble detecting the device, ensure that your phone's Mobile Data is turned off. 

    Issue 4:

    This seems to be related to a bug that was found in the plugin after v1.60.00.07 was released. In MSP_EXP432E401Y.c of your example, please update the size of the dmaControlTable from 32 to 64:

    static tDMAControlTable dmaControlTable[64];

    Best regards,

    Kristen

  • Thanks for your reply and helpful suggestions.

    Issue 1

    LED 6 has been off for all examples (never been ON). I tested with power from MCU and from USB to booster plugin (through J8 position). Could that be related to the nHIB interface to the MCU?

    Issue 2/3

    • I made sure to have the provisioning example running while attempting to provision via the Starter Pro App. The example configures the device for mode 2 (AP + SC)
    • On one (original - Android 6.0) test phone it failed to provision as described earlier
    • On another phone (Android 8, a newer model with more CPU and memory resources) it failed to provision the device but with a different behavior:
      • If the Starter Pro app is configured to "Enable Smart Config":
        • It attempted to send network configuration to the device (a red progress bar comes on and completes to 100% (60 items), then
        • It displayed the message "No device found in <name of WiFi router AP>. You can try to configure the device manually"
        • I can reporduce the prgress bar behavior by disconnecting and reconnect the Wi-Fi AP (router network) on the phone.
      • If I disable the Smart Config in the Starter Pro settings (AP setting only):
        • It connects to the device (instead of router AP) then it correctly connects to the router AP
        • It lists the device correctly in the device to configure drop down list, but
        • When I try to select the router via "Select your Wi-Fi router" from the list it displays same message"

    "Application cannot configure the selected device. Either you selected a non-SimpleLink device or a SimpleLink device which supports only legacy provisioning sequence. Please choose another SimpleLink device."

    Let me know if it is necessary for me to debug this on my end to get additional information (e.g., stepping through device code and app code in Android Studio).

    Issue 4

    • I updated the dmaControlTable size as suggested. The example does not fail on startup, but
    • 'send -s' and 'send -c' commands of network_terminal example still do not exchange packets with the socket test app (as reported earlier).

    Please let me know if need further information.

  • Issue 1

    Have you made any changes to the GPIO configurations in the examples? Or made any hardware changes to the boards? Is it possible for you to try with a different CC3120 board? Also, could you post a picture of your boards so I can see if there is possibly something with your setup that is causing LED6 to not turn on?

    Issue 2/3

    Are you perhaps trying to connect to an enterprise/company AP that is behind a firewall? What is the security type of your AP? Could you try connecting to an Open AP?

    When Smart Config is disabled:

    • What do you mean when you say:
      Lasto Roma said:
      It connects to the device (instead of router AP) then it correctly connects to the router AP

      And then you get an error when you try to select the router via "Select your Wi-Fi Router"? It's unclear to me if you're saying the app is connecting to the router or not.
      To be clear, before you select "Start Configuration", your Configuration Page should be something like:
        • Device to Configure: mysimplelink-xxxxxx (the last six characters are the device's MAC address)
        • Name your device: <You can leave this blank>
        • WiFi network: <AP name you are trying to connect to>
          Also, your phone's WiFi network should also be connected to the simplelink device. 


    Issue 4

    I am currently still looking into this. 

    Best regards,

    Kristen

     


  • Thanks for your help and clarifications.

    Issue 1

    No changes were made to the GPIO in the examples. No changes to the hardware. (As I mentioned earlier MCU's PD0-PD4 are configured for SSI2 in a separate CCS workspace and wires are disconnected while running the WiFi plugin examples.)  Pictures.

    Issue 2/3

    • The provisioning example and Starter Pro work fine when I ran the example in non-debug mode with the Starter Pro app running on Android 7 or Android 8 (fails on a test phone running Android 6).
    • I followed recommendations and the steps in the academy module for MSP432 SDK 1.15 and CC3220SF_LAUNCHXL  to run the provisioning example in a standalone mode (also skipping MCU imaging, certificate chains and the GUI which is slightly different).
    • After proviioning, the device occasionally disconnects from the router AP with Reason Code = 6 (see below), where can we find that code? 

    Reply from 192.168.1.1: SUCCESS, Time=115ms, Overall Stat Success (232/232)
    Reply from 192.168.1.1: SUCCESS, Time=114ms, Overall Stat Success (233/233)
    [Event] STA disconnected from AP (Reason Code = 6)
    [Event] STA connected to AP - BSSID:xx:yy:81:f2:30:zz, SSID:<router AP SSID>

    Issue 4

    I assume that you were able to reproduce the issue with the 'send' command.

  • Issue 1

    It looks like you have jumpers in the correct places on the boards. Have you tried using another CC3120?

    Issue 2/3

    You can find the Reason Codes in wlan.h (<plugin_install_dir>/source/ti/drivers/net/wifi/wlan.h).

    Issue 4

    Have you tried following our other SimpleLink Academy labs that use sockets? We have two labs that demonstrate the send command:

    Project Zero

    Wi-Fi Secure Sockets

  • Thanks for your feedback.

    Issue 1

    I ordered new boards (MSP432E401Y and CC3120) and will keep you posted once received.

    Issue 4

    My understanding is that these projects require two pairs of MSP432E401Y and CC3120. I'll first try to re-test network_terminal example after receiving new boards.

  • Hi Lasto,

    If you have any more questions after receiving the new boards, please feel free to post here or open up a new thread if this one is locked.

    Best regards,
    Kristen
  • Sure. I'm still waiting for the new boards. Thanks.
  • I haven't received the boards yet, but I'm assuming that the remaining issues (1 & 4) are related to defective board. I'll open up another issue if necessary after receiving the new boards.

    Thanks very much for your help on all 4 issues.