Boas,
Estou a tentar por a funcionar um GSM module SIM 900 com um arduino.
Segui o seguinte tutorial para as ligações: SIM900 GSM Shield con Arduino UNO GPRS SD 2G
E para testar estava a user o codigo de teste do SoftwareSerial :
#include <SoftwareSerial.h>
SoftwareSerial mySerial(8, 7); // RX, TX
void setup()
{
// Open serial communications and wait for port to open:
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for Leonardo only
}Serial.println("Goodnight moon!");
// set the data rate for the SoftwareSerial port
mySerial.begin(9600);
mySerial.println("Hello, world?");
}void loop() // run over and over
{
if (mySerial.available())
Serial.write(mySerial.read());
if (Serial.available())
mySerial.write(Serial.read());
}
O cartão SIM não tem PIN e faz a sincronização com a rede.
Mas quando tento fazer comandos de teste não tenho nenhuma resposta por parte do GSM.
Alguem tem alguma ideia do que possa ser?
Se for preciso alguma informação adicional é só dizer.