SIM800c GSM


i have problem sim800c gsm module cannot send @ commands here setup code:
#include <softwareserial.h>
 
//sim800 tx connected arduino d8
#define sim800_tx_pin 8
 
//sim800 rx connected arduino d7
#define sim800_rx_pin 7
 
//create software serial object communicate sim800
softwareserial serialsim800(sim800_tx_pin,sim800_rx_pin);
 
void setup() {
  //begin serial comunication arduino , arduino ide (serial monitor)
  serial.begin(9600);
  while(!serial);
   
  //being serial communication witj arduino , sim800
  serialsim800.begin(9600);
  delay(1000);
   
  serial.println("setup complete!");
  serial.println("sending sms...");
   
  //set sms format ascii
  serialsim800.write("at+cmgf=1\r\n");
  delay(1000);
 
  //send new sms command , message number
  serialsim800.write("at+cmgs=\"+6390xxxxxxxx\"\r\n");
  delay(1000);
   
  //send sms content
  serialsim800.write("test");
  delay(1000);
   
  //send ctrl+z / esc denote sms message complete
  serialsim800.write((char)26);
  delay(1000);
     
  serial.println("sms sent!");
}
 
void loop() {
}

i'm pretty sure device sends response every @ command. why ignoring responses?


Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > SIM800c GSM


arduino

Comments

Popular posts from this blog

Flip address is out of range arduino uno r3

Arduino Uno not uploading

Indesign and MathType fonts