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/LAUNCHXL-CC3235SF: cc3235 uses AT commands to send UDP data

Part Number: LAUNCHXL-CC3235SF
Other Parts Discussed in Thread: CC3220S, CC3235S

Tool/software: Code Composer Studio

Hi,

I want to use AT commands to send UDP socket data,and I have used the at_commands project in the SDK.

The AT commands is as follows:

AT+WlanConnect="TP-LINK_6034",,WPA_WPA2,123456789,,, (connected successfully)
AT+Socket=INET, DGRAM, UDP (socket handle number 0 has been returned)
AT+SendTo=0,INET,1000,192.168.43.229,0,1,1 (return to OK)
But the server did not receive the data,Why is it?

Regards,

Kevin

  • Hey Kevin,

    I ran a test using the same commands you mentioned and I can confirm that the AT commands example, in the latest CC32xx SDK (v4.10.00.07), correctly sends UDP packets to my server.

    It seems like you're able to successfully connect to the AP and create the UDP socket. But just to rule out any issues with addressing, could you double check that the IPv4 address in your SendTo command correlates to your server?

    On the server side, how are you capturing network data?

    Regards,

    Paul

  • Hi,Paul

    Thank you for your reply.

    I  add a command AT+Connect=+Socket,INET,1000,192.168.43.299  before AT+SendTo=0,INET,1000,192.168.43.229,0,1,1 ,

    Then  the service can receive the data.

    Regards,

    Kevin

  • Hi Kevin,

    1. Did you use at_command sample code of CC3220S? I don't see any code of CC3235S in SDK, it only has UART function. Can we use same code for CC3220 & CC3235?

    2. You mentioned commands: AT+WlanConnect... Do we just type those commands in terminal window such as Teraterm? 

    3. If we want to send/recv data between 2 modules CC3235, how do you send/recv continuously? Because each time I execute a command in Teraterm (not AT commands), I only see Teraterm shows 1 data packet then stopped.

    4. Do you use 1 module as AP, another as STA? As I see here, you installed 1 module as an AP, then you used AT command for the 2nd module connect to AP as a STA, right? How did you install AP without terminal command? I've done AP & STA communication by commands in Teraterm but I want to let devices communicate with each other only by code.

  • Hey Hector,

    Could you hit "Ask a related question" at the top right and post your questions in a new thread.

    That would make it easier for us to track feedback to your questions and hopefully get your issue resolved faster!

    Thanks,

    Paul