Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

SM5100B GPRS


  • Please log in to reply
No replies to this topic

#1 VladVictor

VladVictor

    New Member

  • Members
  • Pip
  • 5 posts

Posted 26 January 2012 - 07:44 AM

Hello,
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 ?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.