I just bought a Neoway M590E and i cannot make a code to understand what it is saying. I'm using this:
#include <SoftwareSerial.h>
int GSMTX = 3;
int GSMRX = 17;
SoftwareSerial mySerial(GSMRX, GSMTX); // RX, TX
void setup() {
Serial.begin(250000); // COM setup
mySerial.begin(115200); //Baud rate of the GSM/GPRS Module
}
void loop() {
if (mySerial.available()) {
Serial.println(mySerial.read());
}
if (Serial.available()) {
mySerial.println(Serial.read());
}
}
All i get in the serial monitor is a bunch of 0's. I tried different Baud rates, didn't work. Do you have any idea what's wrong? I am using a logic level converter between the modem and the arduino.
have you grounded both GND pins (they might not be connected so need to be joined, grounding only one might be thus an issue) and also the BOOT pin (and of course joined grounds with your arduino)?
software serial at 115200 is shaky sometimes, I would not push it there. 38400 would be better - I would even start at 9600.
If you have a USB to Serial unit, I would use that and terminal emulator to first configure the unit to lower speed (AT+IPR=<baudvalue> will change it) and then connect to the arduino
set it up at 38400 and make sure you send CR from the console and then type ATI)