Hi
I am prgramming the arduino in my project.
What i want to do is to to use a device called sim7600ce which is a 4G module and i am
required to sent some AT command for receive 4G signal and use a micro SD card for storing the data.
This is my AT command program
The response is this.
#include <SoftwareSerial.h>
SoftwareSerial mySerial(5, 6); // RX, TX
int t = 100;
void setup() {
// Open serial communications and wait for port to open:
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only
}
Serial.println(“iiiiiii”);
Serial.println(“delay time t is”);
Serial.println(t);
mySerial.begin(115200);
mySerial.println(“AT”);
while (mySerial.available())
Serial.write(mySerial.read());
mySerial.println(“AT+CSQ”);
while (mySerial.available())
Serial.write(mySerial.read());
delay(1000);
mySerial.println(“AT+CPSI?”);
while (mySerial.available())
Serial.write(mySerial.read());
delay(8000);
mySerial.println(“AT+AUTOCSQ?”);
while (mySerial.available())
Serial.write(mySerial.read());
delay(1000);
mySerial.println(“AT+AUTOCSQ=1,0”);
while (mySerial.available())
Serial.write(mySerial.read());
}
void loop() {
// run over and over
if (mySerial.available()) {
Serial.write(mySerial.read());
}
if (Serial.available()) {
mySerial.write(Serial.read());
}
}
However, from the serial monitor i receive some garbage response(please refer to theattachment) and i want to know how to solve it?
At the CPSI which is use to know the received signal freqeuncy which is important form my project.
Also i can place it in the void loop since it also get somegarbage response. Why?
Please help? Thanks.