Specifications
AN93
Rev. 0.9 213
patch CRC
printf ("%s \n", cpInputRd); cpInputRd=cpInputRd_temp; // Display the
patch CRC
// setup county of operation ********************MODIFY to your
locality******************
// cpInputRd = SendAndWaitFor("at+gci=B5\r", cpInputRd, "OK\r\n", 300);
// &D2 enables escape pin, // X4 enable extended result codes
// \V2 report connect message only // %c0 disable data compression
// %V1 Auto line status detection mode is the fixed method
// +IFC=0,2 No data flow control, Hardware flow control
cpInputRd = SendAndWaitFor("AT&D2x4\\V2%c0%V1+IFC=0,2\r", cpInputRd, "OK\r\n",
300);
// \N0 wire mode, // +FCLASS=1 HDLC mumbo jumbo
cpInputRd = SendAndWaitFor("AT\\N0+FCLASS=1\r", cpInputRd, "OK\r\n", 300);
cpInputRd = SendAndWaitFor("AT:UAA,8004\r", cpInputRd, "OK\r\n", 300);
// +ES=6,,8 enabled synch access, // 6,, enables synch access on
initiating a connect
// ,,8 enables synch access on answering a connect
cpInputRd = SendAndWaitFor("AT+ES=6,,8\r", cpInputRd, "OK\r\n", 300);
// AT+ESA=0,0,0,,1 synch access mode control
// 0,,,, modem transmits SYN if underrun during transparent mode
// ,0... modem tx's flags after underrun after flag happens in framed sub mode
// ,,0,, modem tx's abort on underrun in frame middle during framed sub mode
// ,,,,1 enables CRC generation and checking
cpInputRd = SendAndWaitFor("AT+ESA=0,0,0,,1\r", cpInputRd, "OK\r\n", 300);
// "AT:U87,010A Synch access mode config
// 0x0400 bit 10 Minimal transparency <EM><T1 thru T4> during Rx
// 0x0100 bit 8 Upon connection immediately enter framed sub mode
// 0x000A bits 3:0 Wait for 10 bytes before starting xmission.
cpInputRd = SendAndWaitFor("AT:U87,050A\r", cpInputRd, "OK\r\n", 300);
// :U7A,1 Fast connect
cpInputRd = SendAndWaitFor("AT:U7A,1\r", cpInputRd, "OK\r\n", 300);
AssertRTS(false);
if ((hpTelNoFile = fopen(fnameTelno, "rb")) == NULL)
{
fprintf(stderr, "The Tel. Number File is missing.\n");