joanneee616 / gsm-shield-arduino

Automatically exported from code.google.com/p/gsm-shield-arduino
0 stars 0 forks source link

communication between the iconsat V1.0 module with Arduino Mega2560 #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I think my problem is with the configuration of the jumps in the iconsat and 
the gsm.cpp file.

What is the expected output? What do you see instead?
Expecte SMS SEND OK. 

I see 

AT+CMGS="2299664351"

> AT+CMGL="REC UNREAD",1

What version of the product are you using? On what operating system?
Arduino Mega 2560 with IcomSat V1.0, Win7 PRO

Please provide any additional information below.
I'm new to arduino and have the following questions:

In the library as the file must be GSM.cpp?
Sets TX PIN 4 and RX 5?
How should I put in jummpers iconsat?
D0 to D7, which jumping?
Need to jump anything in arduino?

For my project, I need just that when a sensor is triggered the module send a 
sms.
I can call and send sms to module, but the module does not send sms.

And only works when I use Serial1.begin(9600) and D1 TX pin and D2 RX pin in 
iconsat and does not work when I put Serial.begin?

Thanks for helping

Original issue reported on code.google.com by rapha.ba...@gmail.com on 22 Mar 2012 at 6:16

GoogleCodeExporter commented 8 years ago
I try to help you but the main problem is that you're using a different shield. 
This library is built for GSM GPRS Shield of Futura Elettronica / Open 
Electronics. Is not impossible to adapt it, but if you're new to Arduino's 
world, this can be harder and I suggest you to buy the Open Electronics' shield.
However seems that you can communicate with the module, so the pins should be 
ok.
The problem is that you're using a command to "LIST SMS MESSAGES FROM PREFERRED 
STORE" as written on SIM900's datasheet. 
http://robokits.co.in/datasheets/SIM900_ATC_V1_00.pdf Check this.
This library is developed for make the thinks more easy. Try to use the SMS 
sketch in the example folder in this lib and you will find a simple command to 
send SMS, like sms.SendSMS(number,message) and that's all!
Marco

Original comment by martines...@gmail.com on 22 Mar 2012 at 9:27

GoogleCodeExporter commented 8 years ago
I use this library SIM900IDE100!!!!

How much does this shield?
in Brazil this shield is very costly!!!

Original comment by rapha.ba...@gmail.com on 22 Mar 2012 at 10:06

GoogleCodeExporter commented 8 years ago
Yes.. you're using the library but not all functions. There is the specified 
function for sending SMS. 
http://store.open-electronics.org/Arduino_GSM_GPRS_shield 

Original comment by martines...@gmail.com on 22 Mar 2012 at 10:10

GoogleCodeExporter commented 8 years ago
Why when I switch Serial.begin to Serial1.begin

even putting Serial1.println ("test"); nothing appears?

Only appears when I use Serial.begin and Serial.println

void setup() 
{
  //Serial connection.
  Serial1.begin(9600);  
  Serial1.println("GSM Shield testing.");
  //Start configuration of shield with baudrate.
  //For http uses is raccomanded to use 4800 or slower.
  if (gsm.begin(9600)){
    Serial.println("\nstatus=READY");
    started=true;  
  }
  else Serial.println("\nstatus=IDLE");

  if(started){
    //Enable this two lines if you want to send an SMS.
    //if (sms.SendSMS("xxxxxxxxxx", "Arduino SMS"))
      //Serial.println("\nSMS sent OK");
  }

};

void loop() 

Original comment by rapha.ba...@gmail.com on 22 Mar 2012 at 11:53

GoogleCodeExporter commented 8 years ago
Hello Marco.
If I buy the Arduino module GSM / GPRS shield of Futura Elettronica
are you sure it will work with the arduino mega2560 to send sms?
And would you help me do this?
With great urgency to finish my project to completion of course.
And will they send to Brazil?
thank you 

Original comment by rapha.ba...@gmail.com on 26 Mar 2012 at 1:05

GoogleCodeExporter commented 8 years ago
Yes I'm sure that this will work.
Of course I can help you.
For the shipping I don't know, you can ask to Boris (a member of this project).
Marco

Original comment by martines...@gmail.com on 26 Mar 2012 at 3:11

GoogleCodeExporter commented 8 years ago
Marco, I take one more question please.
How do I send the command ctrl-z at the end of msg to send sms via AT command 
in the serial monitor arduino 1.0?
I could do call the module to my phone via AT and just not getting to send sms 
because they do not know how to send the ctrl-z to terminate the message.
Grateful.

Original comment by rapha.ba...@gmail.com on 27 Mar 2012 at 3:30

GoogleCodeExporter commented 8 years ago
If you're using the library with the first example for AT commands,
just send

/END

to send the ctrl+z

Marco

Original comment by martines...@gmail.com on 27 Mar 2012 at 4:55

GoogleCodeExporter commented 8 years ago
Don't use example. Use string.h only and send direct at command
 Em 27/03/2012 13:56, <gsm-shield-arduino@googlecode.com> escreveu:

Original comment by rapha.ba...@gmail.com on 27 Mar 2012 at 6:46

GoogleCodeExporter commented 8 years ago
Ot if you're using the library with the first example for AT commands,
just send 

/END

to send the ctrl+z

Original comment by martines...@gmail.com on 27 Mar 2012 at 7:01

GoogleCodeExporter commented 8 years ago
If I use de first example for At in serial monitor:

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

Original comment by rapha.ba...@gmail.com on 28 Mar 2012 at 5:12

GoogleCodeExporter commented 8 years ago
Hi Raphael i answer your email a few minutes ago but in case that you read this 
first, here's an entry in the SoftwareSerial library reference about known 
limitations in the Mega2560:

Limitations

The library has the following known limitations: 

If using multiple software serial ports, only one can receive data at a time. 
Not all pins on the Mega and Mega 2560 support change interrupts, so only the 
following can be used for RX: 10, 11, 12, 13, 50, 51, 52, 53, 62, 63, 64, 65, 
66, 67, 68, 69

Here's the link, check it: http://www.arduino.cc/en/Reference/SoftwareSerial

Original comment by oincabo...@gmail.com on 17 Apr 2012 at 8:55

GoogleCodeExporter commented 8 years ago
And in the definition of the Arduino Uno board i find this:

External Interrupts: 2 and 3. These pins can be configured to trigger an 
interrupt on a low value, a rising or falling edge, or a change in value. See 
the attachInterrupt() function for details. 

So...for what i understand, the Uno board can use the pins 2 and 3...but the 
Mega2560 cant make it due to interruption management.

problem? :P

Original comment by oincabo...@gmail.com on 17 Apr 2012 at 9:11

GoogleCodeExporter commented 8 years ago
I have purchased the Arduino GSM/GPRS & GPS shield and the shield works great 
with the Arduino Uno, but I cannot get the shield to respond to the Arduino 
Mega 256.  I would appreciate any assistance.  The Arduino Uno is communicating 
using pins 2 and 3.  Which pins from the Sheild should be connected to which 
pins on the Mega 256 and which pins need to be defined in the GSM.cpp file?
//De-comment this two lines below if you have the
//second version og GSM GPRS Shield
#define _GSM_TXPIN_ 2
#define _GSM_RXPIN_ 3   
Arduino GSM/GPRS & GPS shield
Brand: Futura Elettronica
Product Code: 8190-GSMGPRSSHIELDv2

Original comment by ed_ra...@yahoo.com on 13 May 2012 at 4:09

GoogleCodeExporter commented 8 years ago
Hi :)

For Arduino Mega:
Download 3.10 Beta version and check the instructions file in doc folder.

Original comment by martines...@gmail.com on 13 May 2012 at 4:16

GoogleCodeExporter commented 8 years ago
Hi
I downloaded the 3.10 Beta version.
I connected the Mega 2560.
On first load the ELSE comes up then NO BR cycles through all baud rates.
All subsequent tries, I get NO RESP

The power supply is 12Vdc 2.5A
Any suggestions...

Original comment by ed_ra...@yahoo.com on 14 May 2012 at 5:27

GoogleCodeExporter commented 8 years ago
Mhhh seems there is a problem during the auto baudrate.
You're not the first that says me this. 
Try to do this, if you have an Arduino Uno:
load a sketch with gsm.begin(9600), so the SIM90x will be configured with this 
baudrate, then retry with Mega.
If doesn't work retry with 4800.
In caso of problem, post here the output.
Marco

Original comment by martines...@gmail.com on 14 May 2012 at 5:38

GoogleCodeExporter commented 8 years ago
Hi Marco,
I have tried the UNO & Meage 2560
both at baud rates 2400 4800 9600 115200
I have switched the Tx and Rx jumpers from SW to HW (Please let me know what 
the jumpers are used for and how to set them.  The documentation was in 
Italian.  SW HW BAT/EXT CHRG)

NOW all tests are sending the same response:
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

Original comment by ed_ra...@yahoo.com on 15 May 2012 at 5:44

GoogleCodeExporter commented 8 years ago
You have to connect with a jumper the central pins to RX1 19 and TX1 18 of 
Mega, and than modify following the English file /doc/Instructions.txt

Pin configuration, frontal view:

|  |___| 19 |___|  |              |   |___| 18 |___|   |

Original comment by martines...@gmail.com on 15 May 2012 at 6:42

GoogleCodeExporter commented 8 years ago
Hi Marco,
#define _GSM_TXPIN_ 2
#define _GSM_RXPIN_ 3   
I connect the Pin2 D2 from the GSM Shield to the Mega Pin18 TX1.
I connect the Pin3 D3 from the GSM Shield to the Mega Pin19 RX1.
I set the GSM jumpers RX1 & TX1 to SW.
The software is set as follows:
  Serial.begin(9600);
  Serial.println("GSM Shield testing.");
  //Start configuration of shield with baudrate.
  //For http uses is raccomanded to use 4800 or slower.
  if (gsm.begin(2400)){
The output in the Serial Monitor is as follows:
GSM Shield testing.
ATT: 
OKRIC: AT

ATT: 
OKRIC: AT

ATT: 
OKRIC: 
ATT: 
OKRIC: AT

DB:ELSE
ATT: 
OKRIC: AT

ATT: 
OKRIC: 
ATT: 
OKRIC: 
ATT: 
OKRIC: 
ATT: 
OKRIC: 
DB:ELSE
ATT: 
OKRIC: 
ATT: 
OKRIC: 
ATT: 
OKRIC: 
ATT: 
OKRIC: AT

ATT: 
OKRIC: AT

DB:ELSE
ATT: 
OKRIC: AT

ATT: 
OKRIC: 
ATT: 
OKRIC: 
ATT: 
OKRIC: AT

ATT: 
OKRIC: 
ATT: 
OKRIC: AT

ATT: 
OKRIC: 
ATT: 
OKRIC: 
ATT: 
OKRIC: 

status=IDLE

Original comment by ed_ra...@yahoo.com on 15 May 2012 at 4:50

GoogleCodeExporter commented 8 years ago
The configuration hardware it's ok.
Did you try with UNO to set another baudrate like 9600?
Pay attention to this: the baudrate of module is defined in gsm.begin fucntion.
Now you have gsm.begin(2400), try gsm.begin(9600) with Mega and Uno.
Marco

Original comment by martines...@gmail.com on 15 May 2012 at 9:33

GoogleCodeExporter commented 8 years ago
Hi Marco,

Thank you for your help.  I do not have time to test further right now.  I will 
contact you again later for assistance.

Sincerely,
Ed

Original comment by ed_ra...@yahoo.com on 17 May 2012 at 2:46

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I am frustrated through my skull right now.

I have a Mega 2560 R3
I have a icomsat 1.1 box says V1.0
I am using 3.10 BETA Code of WIM900IDE100MEGA
My Jumpers are between TXD and Pin 2 and RXD and Pin 3 as per the picture.
My GMS.CPP is editted as follows:
#define _GSM_TXPIN_ 2
#define _GSM_RXPIN_ 3

My power supply tells me that only 0.1a is being drawn by the board at 12v.  So 
yes, I have a external power source connected to it.

I am about ready to take an axe to it.

What am I doing wrong?

All I am getting back is:

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

I have received spurious feedback on occasion but the board does not sync nor 
come back to tell me that the Boardrate is correct.  I have switched between 
all the board rates from 300 up to 115200 but same response.

I dont know if it is relevant but when I connect the US plug to the board, 
every second plug in, Arduino recognised the com port on my machine.

Original comment by dwaterfo...@gmail.com on 1 Jul 2012 at 10:06

Attachments:

GoogleCodeExporter commented 8 years ago
This can be a problem in communication/Power supply problem. The restart of 
Arduino sounds strange, usually the USB is able to supply the required current 
in normal conditions. 
Did you change the file HWSerial.cpp/h to select Mega board? It's described in 
the file in "doc" folder.

Original comment by martines...@gmail.com on 1 Jul 2012 at 10:07

GoogleCodeExporter commented 8 years ago
Hi,

Thanks for answering.

From what I see, HWSerial has the MEGA included as standard.  I dont need to 
uncomment it.  Or did I miss something?

On the restarting - the device doesn't restart.  All it does is when I plug it 
into the usb, the pc finds the com port.  If I unplug, it doesn't find it 
again.  If I then unplug and replug it in, it is back.  And so it goes on...

Original comment by dwaterfo...@gmail.com on 2 Jul 2012 at 5:04

GoogleCodeExporter commented 8 years ago
Herewith my relevant files:

Original comment by dwaterfo...@gmail.com on 2 Jul 2012 at 5:10

Attachments:

GoogleCodeExporter commented 8 years ago
No help ... no one out there with any suggestions?

Original comment by jdsloot...@gmail.com on 5 Jul 2012 at 5:22

GoogleCodeExporter commented 8 years ago
The Mega version of the lib is developed ONLY for serial hardware 
communications. So you can't use SoftwareSerial on pin 2 and 3, but you should 
use pins 18 TX and 19 RX.
Are you using pins 18 and 19?

Original comment by martines...@gmail.com on 5 Jul 2012 at 6:16

GoogleCodeExporter commented 8 years ago
Hi,

I tried using the hardware pins 18 and 19 but go no response back either.  Not 
sure if I was doing the hardware bit right though.  I am farmiliar with the AT 
commands, just not sure if I am moving the responses back to my computer serial 
port though.

Original comment by jdsloot...@gmail.com on 5 Jul 2012 at 7:30

GoogleCodeExporter commented 8 years ago
Is there not a published working set of code for either a mega or uno out there 
that I can try?

Not trying to be lazy, just trying to eliminate my error margins.

Original comment by jdsloot...@gmail.com on 5 Jul 2012 at 7:31

GoogleCodeExporter commented 8 years ago
OK.

I am trying the hardware serial way.  Basically taking all input from serial 
and sending it down serial1 and visa versa.

When I type at(enter) I get numerics back 240 120 0

Any ideas?  Its like the GSM module is sending me stuff in an incorrect format.

Original comment by jdsloot...@gmail.com on 8 Jul 2012 at 4:28

GoogleCodeExporter commented 8 years ago
???

Original comment by jdsloot...@gmail.com on 11 Jul 2012 at 4:13

GoogleCodeExporter commented 8 years ago
Hi sorry for late, yes there are in the example folder sketch to try the shield.
Did you set the correct baudrate in serial communication?

Original comment by martines...@gmail.com on 30 Jul 2012 at 9:06

GoogleCodeExporter commented 8 years ago
Thank you for the response.� I used the gsm-shield code designed for another 
shield and modified it the use Serial3 instead of Serial commands.

Original comment by ed_ra...@yahoo.com on 31 Jul 2012 at 4:22

GoogleCodeExporter commented 8 years ago
If you are using the itead v1.1 board, use the TXD and RXD 'holes' at the far 
left side of the board. At least I couldn't get the 'three row multiplexer' 
thing to work.

Original comment by Tommi.Ja...@gmail.com on 24 Aug 2012 at 12:21

GoogleCodeExporter commented 8 years ago
Hello all. I am having the problem to connect the gsm shield iconsat in my 
arduino mega. Did you have an instruction to make it works?
I all tries I did, the serial monitor shows:

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

I am using the pins 2 and 3 to tx and rx respectively. I am using the pins 18 
and 19 of Mega to communication. Follow attached the demo code I am compiling 
(sms send.

Thank you a lot!

Original comment by fabrici...@gmail.com on 7 Sep 2012 at 2:55

Attachments:

GoogleCodeExporter commented 8 years ago
Hi, unfortunately I never used the icomsat, so i can't help you.
I suggest to you to use the GSM GPRS GPS Shield of Futura/OpenElectronics
http://store.open-electronics.org/

Marco

Original comment by martines...@gmail.com on 12 Sep 2012 at 1:32

GoogleCodeExporter commented 8 years ago

Original comment by martines...@gmail.com on 11 Dec 2012 at 5:01

GoogleCodeExporter commented 8 years ago
hi, i am a beginner, how do you connect 18 and 19 with TX and RX? I have also 
Icomsat and Mega 2560.
Thanks for informations.

Original comment by kamillo1...@gmail.com on 28 Dec 2012 at 1:46

GoogleCodeExporter commented 8 years ago
Hi!
Check the photo.
the blu-white cable is the end of the green one.

Marco

Original comment by martines...@gmail.com on 29 Dec 2012 at 11:47

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
hai,
i have using the arduino GPS/GSM with sim548c and arduino mega 2560 for my 
people racking system.

however, the supplier can't provide me the schematic circuit or testing coding 
for this shield. Anyone has the coding that can be used to test this product?

Original comment by sy...@hotmail.com on 8 Mar 2013 at 3:08

Attachments:

GoogleCodeExporter commented 8 years ago
Try on Arduino Forum:
www.arduino.cc
this space is provided only for bugs and problem reporting.
Marco

Original comment by martines...@gmail.com on 8 Mar 2013 at 3:26

GoogleCodeExporter commented 8 years ago
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