Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to connect gprs module of the future elettronica with the arduino mega2560? #17

Closed
GoogleCodeExporter opened this issue Mar 20, 2015 · 35 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
GSM Shield testing.
DB:NO RESP
DB:NO RESP
DB:NO RESP
ERROR: SIM900 doesn't answer. Check power and serial pins in GSM.cpp

status=IDLE

use:  GSM_Shield_GPRS_Ver_3_08_(IDE100)

Original issue reported on code.google.com by rapha.ba...@gmail.com on 4 Apr 2012 at 1:58

@GoogleCodeExporter
Copy link
Author

Well, you should create a jumper between the pin 4 and 5 of shield and 2 and 3 
of Mega. You have to be sure the pin 4 and 5 of shield are connected only with 
2 and 3 of Mega (for example by cutting the metallic part of these pins). Then 
you modify the library in gsm.cpp and set the pin 2 and 3. Then it should work.

Original comment by martines...@gmail.com on 5 Apr 2012 at 3:02

@GoogleCodeExporter
Copy link
Author

did not work.

Original comment by rapha.ba...@gmail.com on 10 Apr 2012 at 6:55

@GoogleCodeExporter
Copy link
Author

Can you write STEP by STEP what did you do? So we can find the error. Marco

Original comment by martines...@gmail.com on 10 Apr 2012 at 9:41

@GoogleCodeExporter
Copy link
Author

I've isolated the pins 4 and 5 do not connect the shield for Arduino.
Then I put two jumps to pins 2 and 3 of the shield for the Arduino.
My gsm.cpp is as follows:
/ / De-comment this two lines below if you have the
/ / second version og GSM GPRS Shield
# define _GSM_TXPIN_ 2
# define _GSM_RXPIN_ 3

get:
DB No response

I'm very preoccupied failing to. because I have little time to complete the 
project.

Original comment by rapha.ba...@gmail.com on 10 Apr 2012 at 9:53

@GoogleCodeExporter
Copy link
Author

Original comment by rapha.ba...@gmail.com on 10 Apr 2012 at 10:20

Attachments:

@GoogleCodeExporter
Copy link
Author

Ok man :)... The pin 2 and 3 are of Arduino Mega :P

Original comment by martines...@gmail.com on 11 Apr 2012 at 8:44

@GoogleCodeExporter
Copy link
Author

The connections are right?
What can I do?

Original comment by rapha.ba...@gmail.com on 11 Apr 2012 at 1:34

@GoogleCodeExporter
Copy link
Author

Sorry I did a mistake, SoftwareSerial doesn't work on pin 2 and ...
"on the Mega and Mega 2560, NewSoftSerial will only be able to receive on pins

10, 11, 12, 13,
50, 51, 52, 53,
and 62, 63, 64, 65, 66, 67, 68, 69"

So try with 10,11 (rember to try also 11,10 with the opposite order if you 
aren't sure about RX and TX, it's easy to do mistakes)
or other pairs in the list above...
Otherwise we can use the hardware serial...

Original comment by martines...@gmail.com on 11 Apr 2012 at 3:42

@GoogleCodeExporter
Copy link
Author

I use SoftwareSerial.
NewSoftSerial does not work in arudino mega2560

gsm.cpp:

# define _GSM_TXPIN_ 10
# define _GSM_RXPIN_ 11

pin 4 of the shield connected to pin 10 of Arduino pin 5 of the shield 
connected to pin 11 of Arduino, but not works:

DB NO RESPONSE ...

how to use the hardware serial?
I put the key to HW, but still does not work

Original comment by rapha.ba...@gmail.com on 11 Apr 2012 at 4:01

@GoogleCodeExporter
Copy link
Author

Try this, in GSM.h line 183

  protected:
    //SoftwareSerial _cell;
    Serial1.begin(9600);

and do a "Find & Replace" in all documents (use Notepad++) to substitute _cell 
with Serial1 and connect cables to Serial1 on pins 19 (RX) and 18 (TX)


Original comment by martines...@gmail.com on 11 Apr 2012 at 4:38

@GoogleCodeExporter
Copy link
Author

\arduino-1.0\libraries\SIM900IDE100/GSM.h:185: error: expected ';' before '.' 
token...

Original comment by rapha.ba...@gmail.com on 11 Apr 2012 at 5:27

@GoogleCodeExporter
Copy link
Author


  protected:
    //SoftwareSerial _cell;
    Serial1.begin(9600);
    int isIP(const char* cadena);

  public:

Original comment by rapha.ba...@gmail.com on 11 Apr 2012 at 5:37

@GoogleCodeExporter
Copy link
Author

I'm going to check it on the weekend ;)

Original comment by martines...@gmail.com on 11 Apr 2012 at 9:59

@GoogleCodeExporter
Copy link
Author

Arduino Duemilanove is compatible with this shield ?

Original comment by rapha.ba...@gmail.com on 11 Apr 2012 at 10:03

@GoogleCodeExporter
Copy link
Author

Yes

Original comment by martines...@gmail.com on 11 Apr 2012 at 10:06

@GoogleCodeExporter
Copy link
Author

It is easier to use the Arduino Duemilanove than mega?
And buying arduino uno? Just connect it work?

Original comment by rapha.ba...@gmail.com on 12 Apr 2012 at 11:06

@GoogleCodeExporter
Copy link
Author

Yes just connecting

Original comment by martines...@gmail.com on 14 Apr 2012 at 3:57

@GoogleCodeExporter
Copy link
Author

Hi,
I'm having the same problem as reported here:
GSM Shield testing.
DB:NO RESP
DB:NO RESP
DB:NO RESP
ERROR: SIM900 doesn't answer. Check power and serial pins in GSM.cpp

status=IDLE

The only difference is I'm using an Arduino Uno board with iComSat SIM900 with 
GSM/GPRS. The library I'm using is GSM_GPRS_IDE100_v309


Based on the email thread here, I'm not able to figure out what exactly should 
I try to resolve this problem. Can you please help?

Greatly appreciate you'll providing this library and the help!

Thanks,
RS

Original comment by RSutaria on 27 Apr 2012 at 7:20

@GoogleCodeExporter
Copy link
Author

This library is developed for GSM Shield of Futura. I never used IComSat so I 
don't know how it works. 
However you should connect the Serial of SIM900 to the pins 4 and 5...

Original comment by martines...@gmail.com on 27 Apr 2012 at 9:52

@GoogleCodeExporter
Copy link
Author

Thanks for your prompt reply. When you say "connect the Serial of SIM900 to the 
pins 4 and 5" - can you please elaborate a bit? Sorry, I'm not from an 
electronics background but from a computer science background. Hence, I'm not 
fully aware how to connect the serial of SIM900 to pins 4 and 5. 
Do you mean, I should change GSM.cpp as follows?
# define _GSM_TXPIN_ 4
# define _GSM_RXPIN_ 5

Thanks

Original comment by RSutaria on 27 Apr 2012 at 10:18

@GoogleCodeExporter
Copy link
Author

I mean the physical connection (with the cables). I don't know which pins 
IComSat uses for communicate, but that pins have to be connected to the 4 and 5 
of Arduino Uno.

Original comment by martines...@gmail.com on 27 Apr 2012 at 10:26

@GoogleCodeExporter
Copy link
Author

I see what you mean. The IComSat spec sheet is here:
http://iteadstudio.com/store/images/produce/Shield/IComSat/icomsat_DS1.2.pdf
on page 5 they same to be giving some pin options for Tx and Rx. In Fig 6 they 
have said pins 4 and 6 are for software-serial connection.

The IComSat has some jumpers to change the UART connection settings. Can I not 
just change the jumper settings or do I have to actually do some cable 
soldering, etc to make this library work for sending an SMS?

Original comment by RSutaria on 27 Apr 2012 at 10:32

@GoogleCodeExporter
Copy link
Author

Perfect, configure it to use TX with pin number 4 and RX with pin number 5 (or 
vice versa).

Original comment by martines...@gmail.com on 27 Apr 2012 at 10:36

@GoogleCodeExporter
Copy link
Author

Thanks. I set the two jumpers such that Tx is on 4 and Rx on 5. The GSM.cpp 
code also now has
# define _GSM_TXPIN_ 4
# define _GSM_RXPIN_ 5

But I still get DB:NO RESP. Anything else that I can try?

Original comment by RSutaria on 27 Apr 2012 at 11:09

@GoogleCodeExporter
Copy link
Author

Did you try to change Tx on 5 and Rx on 4?

Original comment by martines...@gmail.com on 27 Apr 2012 at 11:11

@GoogleCodeExporter
Copy link
Author

Yes. That also didn't work. I just realized that I'm running the Arduino+SIM900 
shield on the USB connected to a laptop. I just read over here:
http://arduino.cc/forum/index.php?action=printpage;topic=102239.0
that the current needed can be upto 2A which the USB cannot provide. 

Can that be the reason that the code is not working? I'm trying to find a DC 
power adapter which gives 9V - 2A power supply (don't have one handy right 
now). Will try out the code again after connecting to an external power supply 
too.

Original comment by RSutaria on 27 Apr 2012 at 11:55

@GoogleCodeExporter
Copy link
Author

Oh yes, It can be! Without external source it doesn't work.

Original comment by martines...@gmail.com on 27 Apr 2012 at 12:00

@GoogleCodeExporter
Copy link
Author

A quick update on this- this library (v GSM_GPRS_IDE100_v309) is working fine 
with the IComSat SIM 900. It was a naive mistake on my part as I had not 
connected the correct power supply for the shield. I got a 9V/2A DC power 
supply and now the library is working perfectly well. Thanks martines... for 
all your timely assistance!
It seems someone else on the arduino.cc forum was also facing a similar problem:
http://arduino.cc/forum/index.php/topic,102785.0.html

Have replied there too with a few more details.

Original comment by RSutaria on 29 Apr 2012 at 7:26

@GoogleCodeExporter
Copy link
Author

Thank you! For update e for good feedback :)
Great job for Arduino's forum. It's important the help of yours :)
For other problems, I'm here.

Original comment by martines...@gmail.com on 30 Apr 2012 at 2:22

@GoogleCodeExporter
Copy link
Author

The change for this is done now.

Original comment by martines...@gmail.com on 5 May 2012 at 7:20

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

hi am using Arduino duemolenove and SIM900, but i still have problem , i 
followed some of the posts such as:"A quick update on this- this library (v 
GSM_GPRS_IDE100_v309) is working fine with the IComSat SIM 900. It was a naive 
mistake on my part as I had not connected the correct power supply for the 
shield. I got a 9V/2A DC power supply and now the library is working perfectly 
well." i am using arduino1.0 version. but when i appload GSM.cpp, i cant 
compile it gives me ERROR "class GSM does not have any feild named"_cell" so 
pls help. and i am running out of time. thanks

Original comment by husee...@hotmail.com on 25 May 2012 at 8:04

@GoogleCodeExporter
Copy link
Author

I need more information. Please open a new issue and follow the step to report 
a problem, so I can hekp you.
Marco

Original comment by martines...@gmail.com on 25 May 2012 at 9:13

@GoogleCodeExporter
Copy link
Author

ok,first i am using arduino duemolenovo and SIM900 GSM sheil with 
arduino_0023,and library (GSM_GPRS_IDE100_v309)my aim is to send sms from 
cellphone and controll stepper motor and give a feedback response. to do that i 
am testing some of the library code such as GSM.cpp , i give the baord 9v 
DC,follwing some of these installation 
http://iteadstudio.com/store/images/produce/Shield/IComSat/icomsat_DS1.2.pdf
so the prblem is when ever i run the code it gives me an error which says 
"class GSM does not have any feild named"_cell" so how to solve this.thanks

Original comment by husee...@hotmail.com on 27 May 2012 at 3:12

@GoogleCodeExporter
Copy link
Author

Please open a new issue. It's important to keep in order.

Original comment by martines...@gmail.com on 27 May 2012 at 11:51

@GoogleCodeExporter
Copy link
Author

This issue section is not longer supported.
Please check the support page www.gsmlib.org 

Original comment by martines...@gmail.com on 6 Jul 2013 at 11:27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant