Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
IComSat SIM900 POWER ON code #11
I'm using the "IComSat v1.1 -SIM900 GSM/GPRS shield" and, as you can see on the datasheet (ftp://imall.iteadstudio.com/IM120417009_IComSat/DS_IM120417009_IComSat.pdf, page 6), "the pin 9 of Arduino interface is connecting to PWRKEY, and a high pulse with 400us wide can power on/off it."
So, to my sim900 module works I have to put this in the code, before calling "gsm.begin":
Without that lines the module responds as follows:
The problem is not why my code is working with these lines. The problem is: why YOUR CODE is working without that? :?
Note: in GSM.h there are two lines that I think don't do nothing:
43 // pins definition
The powerup procedure is the same of the poweroff.
2014-11-14 17:29 GMT+01:00 Maurício Pena email@example.com:
Ok @MarcoMartines but the code only works here with these lines (powerup procedure) before begin():
i have no shield and i have one sim900 module with rx and tx pins only.i have connected my sim900 module tx, rx pins only to arduino mega2560. now i have connected the sim900 module to serial port 1 of mega and i have changed all the pin as mentioned in your instructions file. but always i get only
//// help me its sim900A , im not work
ERROR= SIM900 doesn't answer. Chek power and serial pins in GSM.cpp
i have ICOMSAT 1.1
#define GSM_ON 9
and now my irs turn off automatically and meanwhile the same error has indicating
ERROR: SIM900 doesn't answer. Check power and serial pins in GSM.cpp
Please Help me to sort this.
If you are using Arduino Mega 2560, follow these steps.
 How to switch between the old shield (that uses 4 and 5 pins for
Connect the RX pin of your sim module to pin 18 of your arduino mega and the TX pin to pin 19 of the arduino mega. This is because the library uses Hardware serial for mega. Connect VIO pin of your sim module to IOREF pin of your arduino mega and the connect the GND of your sim module to GND of your arduino mega. That's all.
I have an issue where the library works with the Mega using the sendsms() method. I can see all the debug commands which work and the sms is received.
So Ive tried to use the nano with the library and directly with AT commands, this is what Ive found:
But I have made it work before. I dont know how, but I think switching to the mega/library sketch must have done something and i managed to receive a couple of sms from the nano/at sketch. That only worked for that session and when I tried to repeat it it stopped working.
Ive' posted about the issue here:http://forum.arduino.cc/index.php?topic=428200.msg2952179#msg2952179