Setup simple TCP connection with server. Unable to send data. | Telit Cinterion IoT Developer Community
November 20, 2014 - 1:09pm, 5398 views
Im currently working with the BGS2-W. Im trying to setup a TCP connection with my server but when Im at the point to send data, its not going through. I use the following AT commands:
AT+CREG? To see if Im registered with the network
AT^SCFG="Tcp/WithURCs",on Enable URC mode
AT^SICS=0,conType,GPRS0 Select connection type GPRS0
AT^SICS=0,APN,"apn_url_here" APN to access the GPRS services
AT^SISS=0,SRVTYPE,TRANSPARENT Select service type "Transparent".
AT^SISS=0,ADDRESS,"ip:port" Specify server address
AT^SISO=0 The host opens service profile 0.
wait for response ^SISW: 0,1 Socket service is ready for upload.
AT^SICI? Check the state of the Internet connection profile
wait for response ^SICI: 0,2.. Up
AT^SISI? Check service state of service profile 0
wait for response ^SISI: 0,4.. Up
Untill here, everything seems fine. When I try to send data with AT^SIWS, I always receive ^SISW: 0, 0, 0. I have tried several versions of AT^SIWS but none of them seem to give the right answer.
AT^SISW=0,10 gives ^SISW: 0, 0, 0
I have also tried using the interactive write mode but I dont understand which parameters to use.
I hope anyone can help me understand what Im doing wrong.