# include <termio.h>
# include <fcntl.h>
# include <string.h>
# include <stdio.h>
# include <sys/types.h>
# include <stdlib.h>
# include "../incl/tools.h"
extern int comm_flag ;
char atcmd [ 20 ] = "ATB0E0M0N1S0=1\r" ;
/*
* AT Command :
*
* B : BELL / CCITT
0 -- CCITT
1 -- BELL
* E : Echo On / Off
* M : Sound volumn
* C : get "CONECT OK" or not
*
*/
int tty_open ( tty_name, fd )
char * tty_name;
int * fd;
{
int i, j;
int id;
struct termio arg;
if ( ( id = open ( tty_name , O_RDWR | O_NDELAY ) ) < 0 )
return ( 1 );
# include <fcntl.h>
# include <time.h>
# include <string.h>
# include <stdio.h>
# include <signal.h>
# include <setjmp.h>
# include <sys/types.h>
# include <stdlib.h>
# include "tools.h"
extern int comm_flag;
jmp_buf env_buf;
void timeout_handler ( int );
FILE * fppp;
int rcv ( fd_r, fd_w, buffer, max_count )
unsigned char * buffer;
unsigned max_count;
int fd_r, fd_w;
{
unsigned char * current, lrc;
unsigned int i, lenth , time_out_comm;
char filename [ 80 ];
char date [ 9 ] , time [ 9 ] , tmp [40];