motofreek
Junior Member level 2
Hi, I doing a PIC to GSM project to send SMS. I'm ok up to the point where the GSM phone is expecting CTRL-Z to terminate the PDU but its not working. Here's my code...
printf("AT+CMGS=20\n\r");// this is working
delay_ms(1000);
puts("~~~~pdu~~~"); // this is working
delay_ms(1000);
printf("%d",26); //I'm trying to get CTRL-Z here....this is NOT WORKING !!!
I've also tried putc(26) and putc(0x1A) but I cant get it to send CTRL-Z. Doesn't work!
I know the hex value for CTRL-Z is "1A"...
printf("AT+CMGS=20\n\r");// this is working
delay_ms(1000);
puts("~~~~pdu~~~"); // this is working
delay_ms(1000);
printf("%d",26); //I'm trying to get CTRL-Z here....this is NOT WORKING !!!
I've also tried putc(26) and putc(0x1A) but I cant get it to send CTRL-Z. Doesn't work!
I know the hex value for CTRL-Z is "1A"...