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.

CC3220SF: CC3220sf-Wifi door lock demo test

Part Number: CC3220SF

Hello everyone,

I have been working on CC3220SF for a whiile now using the cc3220sf launhpad.

Now i am building my application on the reference design (TI Designs: TIDC-01005 Battery-Powered, Smart-Lock Reference Design With Cloud Connectivity Using SimpleLink™ Wi-Fi) which is built on CC3220S.

i have downloaded the code and imported to my workspace  and I have changed the device to CC3220SF from CC3220S in properties and have added the required .cmd file(CC3220SF_LAUNCHXL_TIRTOS.cmd)  and have built it successfully after adding the required SDK and other plugins without errors and i am able to debug the code in CCS.

Right now my application needs two major things AP provisioning from mobile application and MQTT,so i have disabled bluetooth,motor,ota and sensor parts in "wifidoorlock.h"file.

Issue:

 i am not able to AP provision the device using start up pro application in mobile also according to the flow it can be provisioned using switch3  but button interrupt is also disabled somehow.

The device is not advertising in mobile as AP mode

I am getting following message in my serial port 

**** Starting control thread loop ****<\r><\n><\r>

[MQTT Thread] MQTT Client library initialized successfully<\r><\n><\r>

[Network Interface] Device came up in Station mode<\r><\n><\r>

[Network Thread] Getting device UDID!<\r><\n>

 

What might be the issue here?

Regards,

Sanath Rai

  • Hi Sanath,

    Can you check if your application is reaching the provisioning step? Please place a breakpoint at line 1394 of network_if.c and step through the code.

    Best regards,

    Sarah

  • Hi Sarah,

    Sorry for the delayed response,i was on leave.

    I will work on the point you have suggested and let you know.

    Regards,

    Sanath

  • Hi Sarah,

    its not hitting the breakpoint at 1394 line of network_if.c.

    its getting stuck at SetTopicNames()

    sprintf(topic[1], SUBSCRIPTION_TOPIC1, App_CB.lockUDID[0],
    App_CB.lockUDID[1], App_CB.lockUDID[2], App_CB.lockUDID[3],
    App_CB.lockUDID[4], App_CB.lockUDID[5], App_CB.lockUDID[6],
    App_CB.lockUDID[7], App_CB.lockUDID[8], App_CB.lockUDID[9],
    App_CB.lockUDID[10], App_CB.lockUDID[11], App_CB.lockUDID[12],
    App_CB.lockUDID[13], App_CB.lockUDID[14], App_CB.lockUDID[15]);

    after i commented the SetTopicNames() the code started running.

    what might be the issue there?

    according to my observation the device id which i'm getting is not been able to write into the subscription topic here thats why its getting lost.

    Regards

    Sanath Rai