A N 9 3
276
Rev. 1.4
COMMTIMEOUTS sCOMMTIMEOUTS;
int iCharCount;
char *cpInputRd, *cpInputRd_temp, cpInput_test[255];
char caUA_PKT_STR[] = {(char)0x30, (char)0x73, (char)0x19, (char)0xb1, (char)0 };
char caRR_PKT_STR[] = {(char)0x30, (char)0x19, (char)0xa0, (char)0x19, (char)0xb1, (char)0 };
char caSNRM_PKT_STR[] = {(char)0x30, (char)0x93, (char)0x19, (char)0xb1, (char)0 };
char caRX_PKT_STR[] = {(char)0x19, (char)0xb1, (char)0 };
void AlternateCall(void);
int main(int argc, char* argv[])
{
// Initialize these buffers.
cpInBuffer = (char *)malloc(100000);
cpOutBuffer = (char *)malloc(100000);
cpErrorString = (char *)malloc(100000);
for (int i= 0; i< 10000; i++)
{
cpInBuffer[i] = 0;
cpOutBuffer[i] = 0;
cpErrorString[i] = 0;
}
cpInputRd = cpInBuffer;
cpInputWr = cpInBuffer;
unsigned long ulNoOfbytes;
SetupSerPort();
LoadAndSendPatch();
AssertDTR(true);// Leave DTR asserted for calling
cpInputRd = SendAndWaitFor("atz\r", cpInputRd, "OK\r\n", 300); // A soft reset Just in case
Delay(300); // Important, AN93 implies this delay must be done after an ATZ.
cpInputRd = SendAndWaitFor("ATE0\r", cpInputRd, "OK\r\n", 300);
cpInputRd_temp = SendAndWaitFor("AT&T6\r", cpInputRd, "OK\r\n", 300);// Get the 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
// +ES=6,,8 enabled synch access, // 6,, enables synch access on initiating a connect // ,,8
enables synch access on answering a connect
// AT+ESA=0,0,0,,1 synch access mode control
Содержание Si2404
Страница 2: ...AN93 2 Rev 1 4 ...
Страница 27: ...AN93 Rev 1 4 27 Figure 7 Parallel Interface Read Timing Figure 8 Parallel Interface Write Timing ...
Страница 200: ...AN93 200 Rev 1 4 Figure 31 TAM Handset and Speakerphone Voice Paths ...
Страница 201: ...AN93 Rev 1 4 201 Figure 32 Si3000 Codec Gain and Signal Selection Options ...
Страница 290: ...AN93 290 Rev 1 4 Figure 57 256 Band Spectral Display Figure 58 2048 Band Spectral Display ...
Страница 305: ...AN93 Rev 1 4 305 Figure 76 Parallel or SPI Port Interrupt Service Flowchart ...