1

Am using SIM7600X 4G HAT module (GSM) and Arduino Uno
after I start the module and Arduino, I receive data from Gsm module but I can't send any command to it.
On my Arduino board when I get data RX led flashing, and when I send command TX led flashing.

#include <SoftwareSerial.h>
SoftwareSerial myserial(3, 4); // gsm_TX, gsm_RX
void setup(){
 myserial.begin(9600); //Initialize GSM serial port
 Serial.begin(9600); //Initialize Arduino default serial port
}
void loop(){
 while(1){
 while (myserial.available()) {
 //Serial received data, output via mySerial.
 Serial.write(myserial.read());
 }
 while(Serial.available()) {
 //myserial received data, output it via Serial.
 myserial.write(Serial.read());
 }
 }
}

As the picture I send "AT" command or any command it no response. it show only module start up command. enter image description here

My circuit

enter image description here

asked Mar 27, 2021 at 12:02

1 Answer 1

0

I solved my problem, On my circuit GSM module use an external source and my Arduino Uno use serial port source, So it cant communicate via pin because both ground of them did not connect to each other then the answer is connected GSM module GND to Arduino Uno GND.

answered Mar 27, 2021 at 22:31

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.