I'm using Arduino uno and simcom A7672s 4g lte module ...but I have question about serial communication with Arduino and module..
Please help me with this..
Tell us your question.
Hello sir, I am sending text msg using serial communication but no response .
Show us your code.
Better yet, show us the UART documentation for the device. They expect us to signup first, so I presume you have done that and have the documentation.
Yes.. i will send you.
#include <SoftwareSerial.h>
//Create a software serial object to communicate with SIM800L
SoftwareSerial mySerial(3, 2); //SIm Tx & Rx is connected to Arduino #3 & #2
void setup()
{
Serial.begin(115200);
mySerial.begin(115200);
Serial.println("Initializing...");
delay(1000);
mySerial.println("AT"); //Once the handshake test is successful, it will back to OK
updateSerial();
mySerial.println("AT+CMGF=1"); // Configuring TEXT mode
updateSerial();
mySerial.println("AT+CMGS="+919881656175"");//change ZZ with country code and xxxxxxxxxxx with phone number to sms
updateSerial();
mySerial.print("helloooooo"); //text content
updateSerial();
mySerial.write(26);
}
void loop()
{
}
void updateSerial()
{
delay(500);
while (Serial.available())
{
mySerial.write(Serial.read());//Forward what Serial received to Software Serial Port
}
while(mySerial.available())
{
Serial.write(mySerial.read());//Forward what Software Serial received to Serial Port
}
}
Software Serial will not handle this speed.
Suggest changing all baud rates to 19200, and trying again.
Do you know the baud rate that the modem is currently set to? This will also need to match, and can be tricky to set if you don't know what speed it is currently at.
Looking closer at your code (which would be a lot easier if you had posted it properly).. this will never work.
Serial.available() and Serial.read() accept input keyed into the Serial Monitor... they do NOT get their input from a Serial.println() statement.
Get rid of everything in setup, except the 2 begin statements.
Move this code into loop().
while (Serial.available())
{
mySerial.write(Serial.read());
}
while (mySerial.available())
{
Serial.write(mySerial.read());
}
You cannot send a CTL-Z character from the monitor. You have to send something else (like *) and replace it before sending to the modem. But get the basic communication working first before you worry about that.
Thanks it works..
Are you using the "wake-up" connections between the device and your Arduino? Looks like they need to be handled properly for communications to work reliably.
Sorry, an unrelated question on A7672s beyond the thread context, are there A77672s based modules/dev boards available in India? Googling did not help. Any pointers appreciated
Yes..I'm using A7672S BASED LTE module ...
Hi, i am also trying to Interface SimcomA7672 with esp8266.This sim module is new for me.It would be really helpful of u could post the connection diagram and a basic text msg code program.
Thank you.
Yes, Available from Valetron Systems.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.