197
W&T Expanded services of the Com-Server
Subject to error and alteration
struct _commands
{
unsigned char save_command :4; //Save COM-Conguation
//0 = no save
//1 = save without EEPROM Update
//2 = save with EEPROM Update
unsigned char clear_error :1; //1 = clear error in display/lamps
unsigned char set_fact_def :1; //1 = set factory defaults and reset
unsigned char free_cmd :2; //not used
};
union
{ word hs_ags;
struct_hs_ags
{ word f_ cts_connect :1; //
word f_ dsr_connect :1; //
word f_cts_accept :1; //
word f_dsr_accept :1; //
word no_use0 :12;// not used
};
};
union
{ word f_ags;
struct _f_ags
{ word f_rts_disable :1; //RTS will not change at LOCK/UNLOCK
word f_dtr_disable :1; //DTR will not change at LOCK/UNLOCK
word f_outx :1; //Enable softw. handshake while sending
word f_inx :1; //Enable softw. handshake while receiv.
word f_outx_cts :1; //Enable hardware handshake on CTS
word f_outx_dsr :1; //Enable hardware handshake on DSR
word f_inx_dtr :1; //Enable hardware handshake on DTR
word f_inx_rts :1; //Enable hardware handshake on RTS
word f_parity :1; //Enable parity check & error report
word f_pechar :1; //Enable replacement of received char
word f_inxlter :1; //Enable xon/xoff lter while receiving
word f_outxlter :1; //Enable xon/xoff lter while sending
word f_rts_default :1; //1 = While RTS is not used, RTS
//is active
word f_dtr_default :1; //1 = While DTR is not used, DTR
//is active
word f_user_time :1; //not used
word clr_err_char :1; //1= If Com-Server is in client mode,
//serial chars with framing or parity
//errors will not open the connection
};
};
} BOX_CNTRL;
Configuring the serial port
1. Copy the complete structure of an info packet received by
the Com-Server and fill in the BOX_CNTRL structure. This
allows you to read out the default values and only enter
the values you want to change.