I am trying to learn more about GSM modules so I can eventually use them for my IOT projects. I have a Waveshare SIM7600G-H Module.
I managed to get the UART between Arduino UNO and the GSM module established by following the instructions on the wiki.
I did change a small part in the library SoftwareSerial mySerial(3,4);//RX=3,TX=4 as in the orginal library the pins are 2 and 3 which clash with the pwr pin, being 2.
Here's my code
#include "Waveshare_SIM7600.h"
// Pin definition
int POWERKEY = 2;
char phone_number[] = "7380XXXXXX"; //********** change it to the phone number you want to call
char text_message[] = "www.waveshare.com"; //
void setup() {
sim7600.PowerOn(POWERKEY);
sim7600.SendingShortMessage(phone_number,text_message);
sim7600.ReceivingShortMessage();
}
void loop() {
}
I want to send AT commands from my Serial Monitor to debug, however thats on USB which would go to Serial, and GSM Module communicates via myserial, is there a way to echo data to and fro?
Thanks for your help, this should work, I dont understand whats up with this module, NET LED is flashing quickly so its connected to the network, I managed to send myself an SMS if I hardcode it. Nothing works on serial tho.