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;
}