Good morning to all,I write because I am going crazy looking for a solution,and a week that i feel...
I connected my gsm module in the following way, pin 3 to U_TXD and pin 2 to U_RXD, so I can send and read SMS.
The only problem is when i receive a message, strange symbols appear.
How is it possible that I send the message correctly but I can't read it?
In link i leave you the site where i buy my card, the code and the message that appears,
Am I wrong? I thank anyone who wants to help me
Card Link: https://www.wish.com/product/5808201bad3e5d19630168d0
Initializing...
AT
OK
AT+CMGF=1
OK
AT+CNMI=1,2,0,0,0
OK
⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮
+CIEV: "MESS⸮⸮,⸮⸮HCMTZ???ls?i?bb??z??z??bbbbbb
#include <SoftwareSerial.h>
//Create software serial object to communicate with A6
SoftwareSerial mySerial(3, 2); //A6 Tx & Rx is connected to Arduino #3 & #2
void setup()
{
//Begin serial communication with Arduino and Arduino IDE (Serial Monitor)
Serial.begin(9600);
//Begin serial communication with Arduino and A6
mySerial.begin(9600);
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+CNMI=1,2,0,0,0");// Decides how newly arrived SMS messages should be handled
//delay(1000);
updateSerial();
}
void loop()
{
updateSerial();
}
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
}
}