User's Manual
Table Of Contents
    31 
Appendix I
PROGRAMMING SUPPORT 
You may edit your own code for the mobile computer to communicate with the 8001 3G 
Cradle via the Cradle-IR interface. Refer to a separate programming guide. 
MODEM MODE 
An example is provided below.   
char c; 
SetCommType(1,COMM_IR); /*Set COM1 for  IR*/ 
open_com(1,BAUD_57600|DATA_BIT8|PARITY_NONE|HANDSHAKE_NONE); 
… 
clear_com(1); 
write_com(1,"AT\r"); /* Send string  or char to COM1*/ 
while (!com_eot(1)); 
while (1) { 
if (read_com(1,(void*)&c) )  
 /*read COM1 buffer  data and save it in  the C*/ 
{ 
… 
} 
… 
} 
… 
Note:  If you are programming in BASIC language, make sure the default delimiter 0x0d 
(CR) is in use; otherwise, call COM_DELIMITER(). 










