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

GPRS/SMS shield help please


  • Please log in to reply
12 replies to this topic

#1 thenecroscope

thenecroscope

    Member

  • Members
  • PipPip
  • 13 posts

Posted 17 December 2011 - 11:27 PM

Hi, I'm still fairly new to Netduino and I would like to try and experiment with GPRS/SMS/GSM. Could anyone recommend a good shield to purchase and perhaps some sample code to get me going. I would to be able to send and receive text messages using the Netduino. These are the 2 devices that I'm thinking of going for: http://www.sparkfun.com/products/9607 or http://www.hwkitchen...gsm-playground/ Alternatively if I phone the Netduino then some form of event is triggered. Many thanks!!!!

#2 dcypher

dcypher

    Member

  • Members
  • PipPip
  • 17 posts

Posted 06 January 2012 - 07:49 PM


Could anyone recommend a good shield to purchase and perhaps some sample code to get me going. I would to be able to send and receive text messages using the Netduino. These are the 2 devices that I'm thinking of going for:

Alternatively if I phone the Netduino then some form of event is triggered.

Many thanks!!!!


I'm dooing a netduino library for the seed studio gprs. I have partial SMS functionality and are able to place calls. I think recieving calls also would be easy..

http://netduino2seedgsm.codeplex.com/

#3 thenecroscope

thenecroscope

    Member

  • Members
  • PipPip
  • 13 posts

Posted 06 January 2012 - 08:16 PM

I'm dooing a netduino library for the seed studio gprs. I have partial SMS functionality and are able to place calls. I think recieving calls also would be easy..

http://netduino2seedgsm.codeplex.com/

:D

Hey, that's fantastic! I will have a play with this and let you know how I get on at the weekend.
Nice one :D

#4 thenecroscope

thenecroscope

    Member

  • Members
  • PipPip
  • 13 posts

Posted 06 January 2012 - 10:38 PM

I'm dooing a netduino library for the seed studio gprs. I have partial SMS functionality and are able to place calls. I think recieving calls also would be easy..

http://netduino2seedgsm.codeplex.com/


Making a bit more progress, I've imported your library and added this to my test program:

public static void Main()
{
seeduinoGSM.seeduionoGSM test = new seeduinoGSM.seeduionoGSM();
test.placeCall("a mobile number here");
}

When I run the program I get no errors but no phone call. Do I need to power the SM5100B shield via another means instead of trying to power it from the netduino? I've plugged the netduino into GRD and the VIN pin, is that correct?

Thanks!!!

#5 samjones

samjones

    Advanced Member

  • Members
  • PipPipPip
  • 105 posts

Posted 09 January 2012 - 01:36 AM

>> I'm dooing a netduino library for the seed studio gprs Great! Will you add how to do an http GET ? That is what I need.... Thanks a ton!

#6 dcypher

dcypher

    Member

  • Members
  • PipPip
  • 17 posts

Posted 19 January 2012 - 01:30 PM


When I run the program I get no errors but no phone call. Do I need to power the SM5100B shield via another means instead of trying to power it from the netduino? I've plugged the netduino into GRD and the VIN pin, is that correct?

Thanks!!!

You have the same board? I just power it with the USB cable, so far no need to give it any more.

I dont know if this is important, but what are your switch setting? Both of mine are in Xduino.

#7 dcypher

dcypher

    Member

  • Members
  • PipPip
  • 17 posts

Posted 22 January 2012 - 01:39 PM

>> I'm dooing a netduino library for the seed studio gprs

Great!

Will you add how to do an http GET ?

That is what I need....

Thanks a ton!


I've actually managed to make a http request, by porting the code from seeduiono wiki. I am not really good at low level http. So all i get is an http error from the server. But there is definetly a hole through.

#8 dcypher

dcypher

    Member

  • Members
  • PipPip
  • 17 posts

Posted 22 January 2012 - 01:40 PM

You have the same board? I just power it with the USB cable, so far no need to give it any more.

I dont know if this is important, but what are your switch setting? Both of mine are in Xduino.

BTW have you disabled the pin code on your simcard?

#9 samjones

samjones

    Advanced Member

  • Members
  • PipPipPip
  • 105 posts

Posted 30 January 2012 - 12:22 AM

@dcypher: Any more progress on HTTP GET via cellular?

This is the grail I am looking for....

Basically, from the "getting started with the internet of things" the ability to do the "SimpleGetRequest" via cellular.


Via wired ethernet, we do this:

public static string ProcessRequest(string requestUri)
        {
            using (var request = (System.Net.HttpWebRequest)System.Net.WebRequest.Create(requestUri))
            {
                request.Method = "GET";

                // send request and receive response
                using (var response = (System.Net.HttpWebResponse)request.GetResponse())
                {
                    Debug.Print("have a response, consuming....");
                    // consume response
                    return HandleResponse(response);
                }
            }
        }

        public static string HandleResponse(System.Net.HttpWebResponse response)
        {
         etc...

Please do keep us posted!

#10 dcypher

dcypher

    Member

  • Members
  • PipPip
  • 17 posts

Posted 12 March 2012 - 07:47 PM

@dcypher: Any more progress on HTTP GET via cellular?


I've been a bit away from this project but the shield does post fine. I've had some http errors when i do GET, so i've just changed my server to accept post instead.

Check out the update and feel free to contribute to the GET part.

http://netduino2seedgsm.codeplex.com/

#11 Paul Ebert

Paul Ebert

    New Member

  • Members
  • Pip
  • 6 posts

Posted 28 March 2012 - 04:37 PM

- Deleted -

#12 tknman0700

tknman0700

    Member

  • Members
  • PipPip
  • 26 posts

Posted 17 May 2012 - 11:44 AM

Hi group I am trying to use netduino and the seeed studio board an having problems. It seems that there is a comment about disabling the pin code on the sim card. Can anyone tell me why that means? I have a t Mobile prepaid card with text message capability assigned. Can anyone help me with the basic idea here of wht I need to do to make this work? I have tried to run the library but get exceptions on serial port initializer step.

#13 Arbiter

Arbiter

    Advanced Member

  • Members
  • PipPipPip
  • 132 posts
  • LocationBrisbane, Australia

Posted 11 July 2012 - 05:59 AM

A sim can be configured so that it challenges the host device for a PIN. Put your sim in a phone that isn't network locked, and if it the sim wants a PIN the phone will ask you for this number. Supply it and then (depending on your phone) you can probably use the phone to reconfigure the sim not to require a pin. If you make three failed attempts to use a sim that wants a PIN then it will lock up and you will need a PUK (phone unlock code) to unlock it, after which you can proceed to supply the PIN and turn off the challenge.Instructions on how to use the PUK will be in the manual supplied with your phone. You can also use a network locked phone provided the sim in question uses the network to which the phoneis locked.
One day, all this too shall parse.




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.