Merhabalar ben yeni GSM shield aldım SM5100 markası. #include <softwareserial.h>
char incoming_char=0; //Will hold the incoming character from the Serial Port.
SoftwareSerial cell(2,3); //Create a ‘fake’ serial port. Pin 2 is the Rx pin, pin 3 is the Tx pin.
void setup()
{
//Initialize serial ports for communication.
Serial.begin(9600);
cell.begin(9600);
Serial.println(“Starting SM5100B Communication…”);
}
void loop()
{
//If a character comes in from the cellular module…
if(cell.available() >0)
{
incoming_char=cell.read(); //Get the character from the cellular serial port.
Serial.print(incoming_char); //Print the incoming character to the terminal.
}
//If a character is coming from the terminal to the Arduino…
if(Serial.available() >0)
{
incoming_char=Serial.read(); //Get the character coming from the terminal
cell.print(incoming_char); //Send the character to the cellular module.
}
}
şu kodları çalıştırdığımda
+SIND: 1 means the SIM card has been inserted;
+SIND: 10 line shows the status of the in-module phone book. Nothing to worry about there for us at the moment;
+SIND: 11 means the module has registered with the cellular network
+SIND: 3 means the module is partially ready to communicate
and +SIND: 4 means the module is registered on the network, and ready to communicate
bu SIND mesjalarından sadece 1 ve10 geliyor 11,3,4 gelmiyor. Gsm modülü aldığım yere deneme için gönderdiğimde msj göndermeyi başardıklarını söylediler kodları da verdiler aynı şekilde denememe rağmen atamıyorum mesaj. Ben onlara verdiğimde BTK daha yoksa cihazı engellememişmiydi acaba. Lütfen yardım edin acil.</softwareserial.h>