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

Seeduino GPRS / GSM shield


  • Please log in to reply
19 replies to this topic

#1 dcypher

dcypher

    Member

  • Members
  • PipPip
  • 17 posts

Posted 05 January 2012 - 01:13 PM

Hi everyone, Just got my very first netduino+ and a Seeduino GPRS Shield. http://www.seeedstud...9b#Introduction Seems there are no definite guides to this particular setup, but i managed to get them up running together. I am creating a library, and besides from execption galore, it can place calls and send SMS'es so far. NOTE: The code only works with the jumpers in xDuino position not SWserial. NOTE2: I'm using Seeduino GPRS Shield v1.2 Improvements are welcome! UPDATE : The attachment is outdatet. Go to the project codeplexpage here instead: http://netduino2seedgsm.codeplex.com/ The driver has lots of new functionality like HTTP POST and other improvements.

#2 Bloemhof

Bloemhof

    New Member

  • Members
  • Pip
  • 5 posts

Posted 06 January 2012 - 01:18 PM

Hi dcypher Nice work. I have a few questions, if you don't mind. How is the shield powered (external 9V)? Have you tried to command the shield from a PC with something like Hyper Terminal as well (do you know if it is possible)? Did you look at other GPRS shields as well (why did you decide on this shield)? Regards Albert

#3 dcypher

dcypher

    Member

  • Members
  • PipPip
  • 17 posts

Posted 22 January 2012 - 01:36 PM

How is the shield powered (external 9V)?


It is powered from USB only. Havent had any problems so far

Have you tried to command the shield from a PC with something like Hyper Terminal as well (do you know if it is possible)?

Nope but it should be possible

Did you look at other GPRS shields as well (why did you decide on this shield)?

I looked around a bit, but couldnt find any that had been tested with Netduino. This was the cheapest alternative.

dcypher

#4 remotewizard

remotewizard

    Advanced Member

  • Members
  • PipPipPip
  • 96 posts

Posted 27 January 2012 - 10:07 PM

Thank you! By uncommenting the code in serialPort_DataReceived, I was able to parse out both CallerID (enabled via sending AT+CLIP=1 at boot) and incoming SMS messages (via "AT+CMGL=" + "\"" + "ALL" + "\""). Cool! I'm not sure why I'm throwing buffer overflow errors when receiving data (even after increasing the buffer to 4096); I guess I'll have to poke around a bit. Thanks again!

#5 dcypher

dcypher

    Member

  • Members
  • PipPip
  • 17 posts

Posted 01 February 2012 - 07:14 PM

I've had some more time to play with the GPRS shield. I've removed the SerialHelper library from my datarecieved listener. It kinda screwed up everything. I got missing bytes all the time ;-(. I've written a new handler using stringBuilder so the l The new big thing is GPRS support (almost). I've ported the code from seedStudio wiki. I'm having a some issues here. I can make a get request, but I keep getting http 400 errors (bad headers). But it is the correct server etc. so there is definetly a hole through. Do anyone know of an echo server where i can see the my request. I have a feeling that it is somehow messy.

#6 dcypher

dcypher

    Member

  • Members
  • PipPip
  • 17 posts

Posted 01 February 2012 - 07:43 PM

.. and here's the file UPDATE : The attachment is outdatet. Go to the project codeplexpage here instead: http://netduino2seedgsm.codeplex.com/ The driver has lots of new functionality like HTTP POST and other improvements.

#7 ghini76

ghini76

    New Member

  • Members
  • Pip
  • 3 posts

Posted 23 March 2012 - 09:43 AM

.. and here's the file

UPDATE : The attachment is outdatet. Go to the project codeplexpage here instead:

http://netduino2seedgsm.codeplex.com/

The driver has lots of new functionality like HTTP POST and other improvements.



Hi dcypher,
I use your library but I've an issue...
When I open seedStudioGSM.cs, VS2010 don't find "RegularExpressions;" in "using System.Text.RegularExpressions;"

Why?

Thanks!

Attached Files



#8 maeishoj

maeishoj

    New Member

  • Members
  • Pip
  • 4 posts

Posted 09 April 2012 - 10:13 AM

Hi dcypher,
I use your library but I've an issue...
When I open seedStudioGSM.cs, VS2010 don't find "RegularExpressions;" in "using System.Text.RegularExpressions;"

Why?

Thanks!


Hello everyone. Can someone suggest me where to buy this other than seedstudio since they have none in stock?
Is it possible to integrate an ultrasonic sensor (say this: http://www.sparkfun.com/products/8501) with the netduino and send sms when the sensors reads a specified threshold??

Could someone help me out? I need to be sure this can be done before buying stuff!

#9 tknman0700

tknman0700

    Member

  • Members
  • PipPip
  • 26 posts

Posted 24 April 2012 - 02:37 PM

I am having the same problem with serialport and regularexpression references as seen above. How can I make this library work with my Seeedstudio gprs card and netduino? Thank you

#10 tknman0700

tknman0700

    Member

  • Members
  • PipPip
  • 26 posts

Posted 24 April 2012 - 03:08 PM

well I made progress... I figured out you need to follow the links here to update to 4.2 http://forums.netdui...?showtopic=2768 I am now still getting errors in the helper library. The type or namespace name 'SMS' could not be found (are you missing a using directive or an assembly reference?) Any ideas are appreciated.

#11 nhale

nhale

    Advanced Member

  • Members
  • PipPipPip
  • 64 posts
  • LocationHeidelberg, Germany

Posted 27 May 2012 - 03:44 AM

Hi,

I tried to get the GPRS shield (v1.2) working, and for calling someone I was successfull, but sending a text message does not work.

  • With the request/response (see below) it ends up with "+CS EROR: PSbusy"
  • Additionally what I think is confusing as you can see with the number of the sms/text central in the response the '7' is missing. Same happens with the receiver number...always the 6th number is missing in the response - Why?
  • As you also can see in the message, following characters in the response are missing: B, E, I, O, W, 7 - Why?

The source code I used is this one, with the respective commands called.

//Switch to sms mode
Input: AT+CMGF=1
Response: AT+CMGF=1
Response: OK

//Set message for sms central of provider
Input: AT+CSCA="+491710760000"
Response: A+CCA=+49170760000"

//Set phone number of receiver
Input: AT+CMGS="  +49160123456789"
Response: OKA+CGS=+4916123456789"

//Set text from the sms
Input: ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
Response: >ACDFGHJKLMNPQRSTUVXYZ012345689

----No for about 5 seconds nothing happens---

Response: >
Response: +CS EROR: PSbusy


#12 nhale

nhale

    Advanced Member

  • Members
  • PipPipPip
  • 64 posts
  • LocationHeidelberg, Germany

Posted 27 May 2012 - 08:45 PM

Hi,

ok, the lost characters problem is now fixed...was a bug in my program ;-(
But still when trying to send text messages I get the response "+CMS ERROR: PS busy"
Anyone had the same problem?

Thanks

Hi,

I tried to get the GPRS shield (v1.2) working, and for calling someone I was successfull, but sending a text message does not work.

  • With the request/response (see below) it ends up with "+CS EROR: PSbusy"
  • Additionally what I think is confusing as you can see with the number of the sms/text central in the response the '7' is missing. Same happens with the receiver number...always the 6th number is missing in the response - Why?
  • As you also can see in the message, following characters in the response are missing: B, E, I, O, W, 7 - Why?

The source code I used is this one, with the respective commands called.

//Switch to sms mode
Input: AT+CMGF=1
Response: AT+CMGF=1
Response: OK

//Set message for sms central of provider
Input: AT+CSCA="+491710760000"
Response: A+CCA=+49170760000"

//Set phone number of receiver
Input: AT+CMGS="  +49160123456789"
Response: OKA+CGS=+4916123456789"

//Set text from the sms
Input: ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
Response: >ACDFGHJKLMNPQRSTUVXYZ012345689

----No for about 5 seconds nothing happens---

Response: >
Response: +CS EROR: PSbusy



#13 Raed Al Nuaimi

Raed Al Nuaimi

    New Member

  • Members
  • Pip
  • 1 posts

Posted 14 September 2012 - 10:15 PM

Hi dcypher, I have a Seeduino GPRS Shield v1.2 and I need to use it to connect to the internet through GPRS, I downloaded your library, nice work it works like charm, but I did not find anything about GPRS. Please advice. Raed

#14 Mattster

Mattster

    Advanced Member

  • Members
  • PipPipPip
  • 46 posts
  • Locationusually South Florida

Posted 20 November 2012 - 09:21 PM

So I'm messing around with the Seeed GPRS shield and I'm curious what insights anyone can give on network access - whose SIM are you using and what do they charge you for it? I got no joy when I called AT&T and asked about a data plan for GPRS devices. After a while they found a "supervisor" that wanted to sell me a $50/month data plan. T-Mobile also wants $30-50/month for GPRS service. Isn't there some way to get maybe like $10/month? Or better yet, how about a prepay SIM with a finite amount of kbytes in it. This thing uses less bandwidth than an old Motorola pager ...

#15 Mattster

Mattster

    Advanced Member

  • Members
  • PipPipPip
  • 46 posts
  • Locationusually South Florida

Posted 20 November 2012 - 09:23 PM

So I'm messing around with the Seeed GPRS shield and I'm curious what insights anyone can give on network access - whose SIM are you using and what do they charge you for it? I got no joy when I called AT&T and asked about a data plan for GPRS devices. After a while they found a "supervisor" that wanted to sell me a $50/month data plan. T-Mobile also wants $30-50/month for GPRS service. Isn't there some way to get maybe like $10/month? Or better yet, how about a prepay SIM with a finite amount of kbytes in it. This thing uses less bandwidth than an old Motorola pager ...

#16 kentuch

kentuch

    New Member

  • Members
  • Pip
  • 2 posts

Posted 09 May 2013 - 07:19 PM

hi friends , I have a big problem..

I'm a french student, I have a project that will be noted in the tray, I want to control a servo motor for sending an sms.

So I have a shield gprs SeeedStudio V1.2 R3 and Arduino board. I use the Arduino 1.0 software and I instaled the GoGprs library as I've heard on forums .. But here the LED still flashes 800ms which means that the card can not find the network, so I'm stuck. Outside this a power problem, should I need to install a CR1220 battery, I feed the card industry? I do not know and the exam date is fast approaching ..
I took you help me


#17 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 10 May 2013 - 05:58 AM

Hi Kentuch,

 

> I use the Arduino 1.0 software

You know you're on the Netduino forums, right? That's a completely different piece of hardware. If you need the arduino forums, you can find them here:http://arduino.cc/forum/


"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#18 kentuch

kentuch

    New Member

  • Members
  • Pip
  • 2 posts

Posted 11 May 2013 - 04:29 PM

oh sorry , I thought that the problem wera the same.  I already posted on arduino without success ..



#19 fritzE

fritzE

    Member

  • Members
  • PipPip
  • 11 posts

Posted 18 June 2013 - 12:36 AM

Hi.

I've been working with Seeduino GSM shield also, and have been getting +CMS ERROR: PS busy error as well.  I have a TMobile sim card and just refilled it, but it had run out.  TMobile says it is active.  Can anyone shed some light on the meaning of PS busy?  I'd love to get this shield working.

 

code is from seedStudioGSM class:

 

 

public void SendSMS(string msisdn, string message)

{

PrintLine("");

PrintLine("AT+CSCS="GSM"");

Thread.Sleep(1000);

PrintLine("AT+CMGF=1");

Thread.Sleep(500);

PrintLine("AT+CMGS="" + msisdn + "",145");

PrintLine(message,

true, 10000);

Thread.Sleep(500);

PrintEnd();

}

 

 

 

 



#20 dino4net

dino4net

    Advanced Member

  • Members
  • PipPipPip
  • 40 posts

Posted 28 August 2013 - 02:42 PM

This code worked for me with the GPRS Shield V2.0:

 

public void SendSMS(string msisdn, string message)

{

PrintLine("AT+CMGF=1r", true);

Thread.Sleep(100);

PrintLine("AT+CMGS="" + msisdn + ""r", false);

Thread.Sleep(100);

PrintLine(message + (char)(26));

Thread.Sleep(100);

PrintLine("");

Thread.Sleep(500);

}

 

You also have to remove the r in the PrintLine function with this version:

//Print(line + "r");

Print(line);

 

 






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.