Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868-A2 V2.4 +SIM7600E-L1C
#1
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

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
  }
}
Reply
#2
you should exchange RXD, TXD pin define: RX=13 Tx= 5
Reply
#3
I did exchange.. but no hope... Please check the file I sent on WhatsApp
Reply
#4
because your KC868-A2 PCB is newest verison: V2.4
so the GSM:
GSM:
RXD:13
TXD:5
I have test with simple code by AT command, it's OK. here is photo:
   
   
Reply
#5
Code:
void setup() {
  Serial.begin(115200);
  Serial2.begin(115200,SERIAL_8N1,13,5);
  //KinCony KC868-A2 PCB v2.4  RXD:GPIO13   TXD:GPIO5
}

void loop() {
  while (Serial.available()) {
    //  delay(1);
      Serial2.write(Serial.read());
  }
  while (Serial2.available()) {
       Serial.write(Serial2.read());
  }
}
Reply
#6
Thank you very much... I used this code, when I call it's Ok but when send AT command no reply... Am I missing something?
   
Reply
#7
At the end of each AT command, should add "end symbol".
Reply


Forum Jump:


Users browsing this thread: