I have some problems with this GPRS module to connect it to the network and get an webpage. I succeed in opening a socket but when i want to receive the data it just close it after some time, it just stalls. I am using arduino as a serial communicator for the OSX, everything that goes in the arduino it passes to the SM5100B shield. These are my commands that i pass to the shield
AT+CGATT=1 AT+CGDCONT=1,"IP","wnw" AT+CGPCO=0,"wnw","wnw", 1 AT+CGACT=1,1 AT+SDATACONF=1,"TCP","www.google.com",80 AT+SDATASTART=1,1 AT+SDATASTATUS=1 AT+SSTRSEND=1,"GET /search?q=arduino HTTP/1.0" AT+SDATAREAD=1
I get all ok`s for all the commands but i do not get +STCPD?1 which tells me that i have data to read. Instead i get +STCPC?1 that tells me the connection has been closed by the remote host. I have put it to access my local webserver but it does not log anything, how does it close the connection. Any ideas ?