Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
added 3 characters in body; edited title
Source Link
ocrdu
  • 1.8k
  • 3
  • 12
  • 24

serial Serial communication problem with sim7600 with arduino megaArduino Mega

I am just sending the AT command to test if the serial communication works, the response I am getting is a flipped "?" or a square or rectangle symbol. I

I have tested the communication using software provided by waveshareWaveshare connected through on board usbUSB to uartUART.

https://www.waveshare.com/wiki/SIM7600E-H_4G_HAT

int PowerKey = 2;
char answer; 

void setup() 
{
 Serial3.begin(960096u00);
 Serial.begin(9600);
 pinMode(PowerKey, OUTPUT);
 Serial.println("initializing");
 digitalWrite(PowerKey, HIGH);
 delay(1000);
 digitalWrite(PowerKey, LOW);
}

void loop() 
{
  answer = send_at_cmd("AT\r\n");
  Serial.println(answer);
}


uint8_t send_at_cmd(const char* ATcommand)
{
  char response;
  // send test command AT
  Serial3.print(ATcommand);
  Serial.println(ATcommand);
  delay(1000);
  //Check for response from the sim7600E-H
  while(Serial3.available() != 0)
  {
    response = Serial3.read();
  }
  return response;
}

enter image description here

enter image description here

serial communication problem with sim7600 with arduino mega

I am just sending the AT command to test if the serial communication works, the response I am getting is a flipped ? or a square or rectangle symbol. I have tested the communication using software provided by waveshare connected through on board usb to uart.

https://www.waveshare.com/wiki/SIM7600E-H_4G_HAT

int PowerKey = 2;
char answer;
void setup() 
{
 Serial3.begin(9600);
 Serial.begin(9600);
 pinMode(PowerKey, OUTPUT);
 Serial.println("initializing");
 digitalWrite(PowerKey, HIGH);
 delay(1000);
 digitalWrite(PowerKey, LOW);
}

void loop() 
{
  answer = send_at_cmd("AT\r\n");
  Serial.println(answer);
}


uint8_t send_at_cmd(const char* ATcommand)
{
  char response;
  // send test command AT
  Serial3.print(ATcommand);
  Serial.println(ATcommand);
  delay(1000);
  //Check for response from the sim7600E-H
  while(Serial3.available() != 0)
  {
    response = Serial3.read();
  }
  return response;
}

enter image description here

enter image description here

Serial communication problem with sim7600 with Arduino Mega

I am just sending the AT command to test if the serial communication works, the response I am getting is a flipped "?" or a square or rectangle symbol.

I have tested the communication using software provided by Waveshare connected through on board USB to UART.

https://www.waveshare.com/wiki/SIM7600E-H_4G_HAT

int PowerKey = 2;
char answer; 

void setup() 
{
 Serial3.begin(96u00);
 Serial.begin(9600);
 pinMode(PowerKey, OUTPUT);
 Serial.println("initializing");
 digitalWrite(PowerKey, HIGH);
 delay(1000);
 digitalWrite(PowerKey, LOW);
}

void loop() 
{
  answer = send_at_cmd("AT\r\n");
  Serial.println(answer);
}


uint8_t send_at_cmd(const char* ATcommand)
{
  char response;
  // send test command AT
  Serial3.print(ATcommand);
  Serial.println(ATcommand);
  delay(1000);
  //Check for response from the sim7600E-H
  while(Serial3.available() != 0)
  {
    response = Serial3.read();
  }
  return response;
}

enter image description here

enter image description here

Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Formatted the code, because I'm a really nice person
Source Link
Code Gorilla
  • 5.7k
  • 1
  • 17
  • 31

I am just sending the AT command to test if the serial communication works, the response I am getting is a flipped ? or a square or rectangle symbol. I have tested the communication using software provided by waveshare connected through on board usb to uart.

https://www.waveshare.com/wiki/SIM7600E-H_4G_HAT

int PowerKey = 2; char answer; void setup() { Serial3.begin(9600); Serial.begin(9600); pinMode(PowerKey, OUTPUT); Serial.println("initializing"); digitalWrite(PowerKey, HIGH); delay(1000); digitalWrite(PowerKey, LOW);

}

void loop() { answer = send_at_cmd("AT\r\n"); Serial.println(answer); }

uint8_t send_at_cmd(const char* ATcommand) {char response; // send test command AT Serial3.print(ATcommand); Serial.println(ATcommand); delay(1000); //Check for response from the sim7600E-H while(Serial3.available() != 0){ response = Serial3.read(); } return response; }

int PowerKey = 2;
char answer;
void setup() 
{
 Serial3.begin(9600);
 Serial.begin(9600);
 pinMode(PowerKey, OUTPUT);
 Serial.println("initializing");
 digitalWrite(PowerKey, HIGH);
 delay(1000);
 digitalWrite(PowerKey, LOW);
}

void loop() 
{
  answer = send_at_cmd("AT\r\n");
  Serial.println(answer);
}


uint8_t send_at_cmd(const char* ATcommand)
{
  char response;
  // send test command AT
  Serial3.print(ATcommand);
  Serial.println(ATcommand);
  delay(1000);
  //Check for response from the sim7600E-H
  while(Serial3.available() != 0)
  {
    response = Serial3.read();
  }
  return response;
}

enter image description here

enter image description here

I am just sending the AT command to test if the serial communication works, the response I am getting is a flipped ? or a square or rectangle symbol. I have tested the communication using software provided by waveshare connected through on board usb to uart.

https://www.waveshare.com/wiki/SIM7600E-H_4G_HAT

int PowerKey = 2; char answer; void setup() { Serial3.begin(9600); Serial.begin(9600); pinMode(PowerKey, OUTPUT); Serial.println("initializing"); digitalWrite(PowerKey, HIGH); delay(1000); digitalWrite(PowerKey, LOW);

}

void loop() { answer = send_at_cmd("AT\r\n"); Serial.println(answer); }

uint8_t send_at_cmd(const char* ATcommand) {char response; // send test command AT Serial3.print(ATcommand); Serial.println(ATcommand); delay(1000); //Check for response from the sim7600E-H while(Serial3.available() != 0){ response = Serial3.read(); } return response; }

enter image description here

enter image description here

I am just sending the AT command to test if the serial communication works, the response I am getting is a flipped ? or a square or rectangle symbol. I have tested the communication using software provided by waveshare connected through on board usb to uart.

https://www.waveshare.com/wiki/SIM7600E-H_4G_HAT

int PowerKey = 2;
char answer;
void setup() 
{
 Serial3.begin(9600);
 Serial.begin(9600);
 pinMode(PowerKey, OUTPUT);
 Serial.println("initializing");
 digitalWrite(PowerKey, HIGH);
 delay(1000);
 digitalWrite(PowerKey, LOW);
}

void loop() 
{
  answer = send_at_cmd("AT\r\n");
  Serial.println(answer);
}


uint8_t send_at_cmd(const char* ATcommand)
{
  char response;
  // send test command AT
  Serial3.print(ATcommand);
  Serial.println(ATcommand);
  delay(1000);
  //Check for response from the sim7600E-H
  while(Serial3.available() != 0)
  {
    response = Serial3.read();
  }
  return response;
}

enter image description here

enter image description here

Source Link

serial communication problem with sim7600 with arduino mega

I am just sending the AT command to test if the serial communication works, the response I am getting is a flipped ? or a square or rectangle symbol. I have tested the communication using software provided by waveshare connected through on board usb to uart.

https://www.waveshare.com/wiki/SIM7600E-H_4G_HAT

int PowerKey = 2; char answer; void setup() { Serial3.begin(9600); Serial.begin(9600); pinMode(PowerKey, OUTPUT); Serial.println("initializing"); digitalWrite(PowerKey, HIGH); delay(1000); digitalWrite(PowerKey, LOW);

}

void loop() { answer = send_at_cmd("AT\r\n"); Serial.println(answer); }

uint8_t send_at_cmd(const char* ATcommand) {char response; // send test command AT Serial3.print(ATcommand); Serial.println(ATcommand); delay(1000); //Check for response from the sim7600E-H while(Serial3.available() != 0){ response = Serial3.read(); } return response; }

enter image description here

enter image description here