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.

CC3235MODSF: CC3135MOD

Part Number: CC3235MODSF

Hi,

I need guidance. I am working with CC3235MODSF. Using AT Commands via UART. I just want to know how to send data using socket repeatedly. I am trying commands

AT+Stop=200
OK


AT+Start
OK


+eventwlan:disconnect,BCIL_IOT,0xfc:0xa:0x81:0x3d:0xdf:0x80,202
+eventwlan:connect,BCIL_IOT,0xfc:0xa:0x81:0x3d:0xdf:0x80
+eventnetapp:ipv4_acquired,192.168.1.229,192.168.1.1,103.8.45.5
AT+NetAPPPing = INET,52.66.69.124,32,200,10000,5,1
OK


+netappping:1,0,0
+netappping:2,1,47
+netappping:3,2,49
+netappping:4,3,49
+netappping:5,4,54
AT+Socket = INET,STREAM,TCP
+socket:0
OK


AT+Connect =0,INET,5151,192.168.1.109
OK


+connect:5151,192.168.1.109
OK
AT+Send=0,0,7,SUDEEP$
OK


AT+Send=0,0,7,SUDEEP$
OK


AT+Send=0,0,7,SUDEEP$
OK


AT+Send=0,0,7,SUDEEP$
OK


AT+Send=0,0,7,SUDEEP$
OK


AT+Send=0,0,7,SUDEEP$
OK

  But after socket close or timeout

AT+Send=0,0,7,SUDEEP$
OK
+eventsock:tx_failed,0,-107

this error is getting. I trying again from command 

AT+Socket = INET,STREAM,TCP
+socket:1
OK

this time getting descriptor 1 and need to modify all commands with that descriptor. then data will send. I just want to know how is right method to send data repeatedly. Is any command sequence?

  • You should call AT+Close=0 to free the (socket) resource.

    You can also try also to reconnect with socket 0 (AT+Connect =0,INET,5151,192.168.1.109) before you close and create the new socket. I'm not sure if this will work since it depends on the server status.

    br,

    Kobi