dhruv_electro
Advanced Member level 4
Hi there,
I have used sim300 for GSM SMS application for one or two time successfully. Now this time I want to use sim300 as TCP-IP client and send some text or data to a remote TCP-IP server. So I have connected my GSM Modem (sim300) to my PC and communicate it with "terminal.exe".(Very simple but powerful app for Com port debugging). I have already used it for many times successfully. And I have used "socket test" for TCP IP server on another PC which is connected with internet. But when I have used following commands finally I got nothing: ('>>' for transmition and '<<' for reception)
my service provider says my SIM card is activated with gprs data plan and i have tested it on gprs supported mobile. I just want to use it with SIM300 and want to send "Hellow there" to a remote PC and want to receive "Fine Here". There is no IP and Port problem because i have used two PC and socket test soft on both PC and successfully communicated with one client and one server
I have used sim300 for GSM SMS application for one or two time successfully. Now this time I want to use sim300 as TCP-IP client and send some text or data to a remote TCP-IP server. So I have connected my GSM Modem (sim300) to my PC and communicate it with "terminal.exe".(Very simple but powerful app for Com port debugging). I have already used it for many times successfully. And I have used "socket test" for TCP IP server on another PC which is connected with internet. But when I have used following commands finally I got nothing: ('>>' for transmition and '<<' for reception)
Code:
>>AT+CIPSHUT $0D //Disconnect wireless connection
<<SHUT OK
>>AT+CIPSTATUS $0D //Query current connection status
<<OK
<<STATE: IP INITIAL
>>AT+CIPSPRT=1 $0D //Set echo ‘>’ prompt and show ‘send ok’
<<OK
>>AT+CDNSORIP=0 $0D //Connect with IP address
<<OK
>>AT+CIPSRIP=1 $0D //Set whether display ‘IP’ add and ‘port’ of sender when receive data
<<OK
>>AT+CIPHEAD=1 $0D //Add IP Header when receiving data
<<OK
>>AT+CGDCONT=1,"IP","rcomnet" $0D //Set IP and APN
<<OK
>>AT+CSTT="rcomnet","","" $0D //Set APN, User Name, Password
<<OK
>>AT+CIICR $0D //Bring up wireless connection with GPRS
<<OK
>>AT+CIPSTATUS $0D //Query current connection status
<<OK
<<STATE: IP GPRSACT
>>AT+CIFSR $0D //Get local IP address
<<115.246.168.26
>>AT+CIPSTATUS $0D //Query current connection status
<<OK
<<STATE: IP STATUS
>>AT+CIPSTART="TCP","192.168.1.9","21" $0D //Star up TCP connection
<<OK
<<STATE: IP CLOSE
<<CONNECT FAIL
my service provider says my SIM card is activated with gprs data plan and i have tested it on gprs supported mobile. I just want to use it with SIM300 and want to send "Hellow there" to a remote PC and want to receive "Fine Here". There is no IP and Port problem because i have used two PC and socket test soft on both PC and successfully communicated with one client and one server