system
March 22, 2012, 8:30am
1
Hi All!
I have a problem with the hardware Serial.print. I'm using the example sketch GSM_GPRSLibrary_AT.ino from gsm-shield-arduino:
http://code.google.com/p/gsm-shield-arduino/source/browse/branches/SIM900IDE100/examples/GSM_GPRSLibrary_AT/GSM_GPRSLibrary_AT.ino
Serial.print prints just fine from inside the SIM900 class but it doesn't print anything from the main loop / setup function.
Am I missing something?
I'm using the following configuration:
MacOS X
Arduino IDE 1.0
Seeeduino Stalker 2.1
Seeeduino GPRS Shield
Thanks!
The device works by serial commands, unless you have more than one serial (one for the GSM, another for debug) it will turn out to a mess if you use the same serial port for two things.
system
March 22, 2012, 11:44am
3
Hi fuh, thanks for your reply, i'm not using the same serial port, the communication with the GPRS shield uses softwareSerial ( pins 7 and 8 )
Thanks!
The link you posted is the code that doesn't work ? Or is it the example were you're using as a base for your code ?
system
March 22, 2012, 12:27pm
5
i'm not using the same serial port, the communication with the GPRS shield uses softwareSerial ( pins 7 and 8 )
That's not what you indicated earlier:
Serial.print prints just fine from inside the SIM900 class but it doesn't print anything from the main loop / setup function.
You need to post your code
system
March 22, 2012, 12:29pm
6
I'm using exactly that code, the Serial.println in line 28,32,33 doesn't print anything, Serial.println in line 67 works fine
Maybe because in Arduino 1.0 the Serial is asynchronous? So maybe the SIM900 library is doing something, but all seem fine.
Thanks