Hello everyone, i'm trying to send data from a micro-controller AT89C52 to Max232 which is connected to a 3G modem via VSPE
My problem is when i catch data from the output its not the same, here is what is shown to me in the picture attached.
Also, the code i'm using :
serial_init();
delayms(5);
if(sw == 1)
{
serial_send_string("AT+CSCA?\r");
serial_send_string("AT+CMGF=1\r");
delayms(1);
serial_send_string("AT+CMGS=\"+212\"\r");
delayms(1);
serial_send_string("MSG\r");
serial_send_string("0x1A\r");
delayms(5);
}
I need someone help please.
My problem is when i catch data from the output its not the same, here is what is shown to me in the picture attached.
Also, the code i'm using :
serial_init();
delayms(5);
if(sw == 1)
{
serial_send_string("AT+CSCA?\r");
serial_send_string("AT+CMGF=1\r");
delayms(1);
serial_send_string("AT+CMGS=\"+212\"\r");
delayms(1);
serial_send_string("MSG\r");
serial_send_string("0x1A\r");
delayms(5);
}
I need someone help please.
Attachments
-
134 KB Views: 7