Write_Com(1, "EOT",3);
/* wait for acknowledge */
delay(100);
if (Get2Str()==3) puts(showbuf2);
else { puts("Timeout! channel 2\ n"); goto ERROR_END1; }
/ * user routine for checksum or retrieving data
.
.
.
ERROR_END1:
/ * reset all index */
Reset_Buf();
/ * channel 2 send, channel 1 receive */
/ * send enquiry / request data */
Write_Com(2, "Enquiry from 2", 14);
/* wait for acknowledge */
delay(100);
if (Get1Str()==14) puts(showbuf1);
else { puts("Timeout! channel 1\ n"); goto ERROR_END2; }
/ * send header / command data */
Write_Com(2, "Header Command", 14);
/* wait for acknowledge */
delay(100);
if (Get1Str()==14) puts(showbuf1);
else { puts("Timeout! channel 1\ n"); goto ERROR-END2; }
/ * send data out or receive in data */
Write_Com(2, "Data6 Data7 Data8 Data9 Data10", 30);
/* wait for acknowledge */
delay (100);
if (Get1Str()==30) puts(showbuf1);
else { puts("Timeout! channel 1\ n"); goto ERROR_END2 }
/ * send End of Transmission */
Write_Com(2,"EOT",3);
/* wait for acknowledge */
delay(100);
if (Get1Str()==3) puts(showbuf1);
else { puts("Timeout! channel 1\ n"); goto ERROR_END2; }
/ * user routine for checksum or retrieving data
.
Application
AX10445 Module Series User's Manual
* /
35
Need help?
Do you have a question about the AX10445 Series and is the answer not in the manual?
Questions and answers