07-25-2024, 02:43 PM
Hello,
I used the KC868-A2 AT debug code to test the connection with the SIM7600E-L1C module. However, I did not get any response... The serial monitor keeps showing " Initializing... " only. Code as below. I would appreciate it if you could help solve this issue.
Thank you
I used the KC868-A2 AT debug code to test the connection with the SIM7600E-L1C module. However, I did not get any response... The serial monitor keeps showing " Initializing... " only. Code as below. I would appreciate it if you could help solve this issue.
Thank you
Code:
#include <SoftwareSerial.h>
#include <Arduino.h>
SoftwareSerial gsmSerial(5, 13); ////Rx, Tx for SMS Modem
void setup() {
Serial.begin(115200);
gsmSerial.begin(9600);
}
void loop() {
Serial.println("Initializing...");
delay(1000);
gsmSerial.println("AT");
updateSerial();
delay(3000);
}
void updateSerial()
{
delay(1000);
while (Serial.available())
{
gsmSerial.write(Serial.read());//Forward what Serial received to Software Serial Port
}
while(gsmSerial.available())
{
Serial.write(gsmSerial.read());//Forward what Software Serial received to Serial Port
}
}