Hi, thanks a again
Sorry i wasn´t clear in my last reply, well, i changed the baudrate but again i was unable to debug, also, i am not using port0, i am using an arduino mega 2560 and i am using 3 serial ports (serial1,serial2,serial3) so that the debugging port is free and untouched.
This is the code of the serial.begin
int DVJA::config( unsigned long baudRate, // Velocidad de transmisión de los datos 1200 para este caso.
unsigned char parity, // la paridad que manejarán los datos, 8n1 para nuestro caso.
unsigned int txEnable)
{
_baudRate = baudRate;
_parity = parity;
_txEnable = txEnable;
(*usedPort).begin(_baudRate);
switch (_parity) {
case 'e': // 8E1
UCSR0C |= ((1<<UPM01) | (1<<UCSZ01) | (1<<UCSZ00));
break;
case 'o': // 8O1
UCSR0C |= ((1<<UPM01) | (1<<UPM00) | (1<<UCSZ01) | (1<<UCSZ00));
break;
case 'n': // 8N1
UCSR0C |= ((1<<UCSZ01) | (1<<UCSZ00));
break;
default:
break;
}
return 0;
}
that is a function i made as an object of class dvja
and this is how i call it:
gprs.config(1200,'n',0);
Hope it helps, i am not sure what's wrong, but since it worked with standard settings in the last version, it might be a config problem.
Thanks again for your help!
Greetings
Andrés.