Hi, my modem is GR64_0001, i test it with windows hyperterminal and it’s ok, i made the code on c18 compiler and i found that the pic don’t send the right \r. I made several test with \r, \n, \r\n, \n\r, and nothing. The pic receives Restart and show it in a LCD, sends AT and the eco works, but when a send the CR returns nothing.
I changed the ATQ and ATE, and ATS3 to 45, aTS4 to 40, that to see if there was any change but nothing again.
My question is if the c18 compiler works to this application or not.
If anybody have any idea, i’ll really appreciate it.
Thanks a lot.
getsUSART(restart,11);//receive restart with \r\n
putrsUSART(“AT\r”);//i tried CR after receive the eco too.