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.

CCS/CC3220SF-LAUNCHXL: AT Command Interface, SWRU534-October 2017

Part Number: CC3220SF-LAUNCHXL
Other Parts Discussed in Thread: CC3220MOD

Tool/software: Code Composer Studio

I have just received by CC3220SF-LAUNCHXL, and have done a test with the Network Terminal example in the SDK. no problems.

Now I want to try using the AT command interface.

But when I run the example AT Command demo, The "AT+Test" returns OK, but none of the other commands work, I always get "ERROR:process command,-2012"

I'm sure I must be doing something wrong. The AT command document gives no real examples apps, is there a sequence of command required in the correct order.

Also, there are 2 demo projects, AT Command and Serial WiFi, and both reference the AT Command document, what's the difference between the 2 applications?

The plan is to control the CC3220MOD with a MSP430 microcontroller.

Regards

Nick

  • Hi Nick,

    If you'll go to Simplelink/errors.h you'll find that -2012 means "SL_RET_CODE_DEV_ALREADY_STARTED".
    It means that sl_Start was already called.
    All the other commands (excpet of sl_Start) should be enabled in this state (and you can call "AT+Stop=200" to turn the device off and start again).

    The AT Command example provides control over the local device, so the AT commands replaces for example the NetworkTerminal's CLI commands.

    The SerialWifi example can be used to connect 2 devices (both connected to the same local network and using mdns to discover each other). Once the devices connect they open a secure connection between them. Now you can issue AT command to the local or the remote device (according to a prefix which is added to the commands in this example).

    Br,
    Kobi
  •  Thanks for the reply, and the errors.h info.

    I have tried to do command, AT+WlanScan=0,30  and get error 2073

    #define  SL_ERROR_WLAN_GET_NETWORK_LIST_EAGAIN (-2073L)

    What does EAGAIN mean?

    Is there not good examples on using the AT Commands.

  • It means that you should try again.
    The command may be ok but the system is busy with other tasks that temporarily prevents the command from executing.
    If you call the same command again - it should work.

    Br,
    Kobi
  • Hi Kobi.

    Yes, you were correct, you have to keep polling it, until it responds correctly.