User's Manual

Engineering Test Software Operation
Rev 28_A Sept 2005
60 VIA Telecom, Inc. Proprietary
pParameters – Used only when COM# is selected. The string must contain the following:
Port identifier,
Baud Rate,
0 or 1 to enable or disable the TxPreamble
Preamble delay in milliseconds.
Example: “COM1, 115200, 1, 20” Open COM1 at 115200 baud, enable the TxPreamble with 20
milliseconds.
5.6.1.3 UnloadDefinitions
UnloadDefinitions();
Unloads the definitions that were loaded with the LoadDefinitions call.
5.6.1.4 CloseCommInterface
CloseCommInterface();
Closes the communications interface.
5.6.1.5 GetCommStatus
GetCommStatus([out, retval] BSTR * pStatus);
Returns the communications status. For serial ports this is in the form “COM1 115200 N,8,1”. For the USB port
this is in the form "USB - NOT Connected" or “USB - Connected”.
5.6.1.6 GetCommStatistics
GetCommStatistics([out, retval] BSTR * pStats);
This provides the statistics since either a connection was established or since the last call the
ResetCommStatistics. It provides the following information in a string.
“STATS, SampleTime=0, MsgsRcv=0, MsgsXmt=0, MsgRcvErrors=0, MsgXmtErrors=0,
BytesRcv=0, BytesXmt=0, DrvRxErrors=0, DrvTxErrors=0, DrvRxHighWater=0,
DrvTxHighWater=0, SerFramingErrors=0, SerOverrunErrors=0,
SerParityErrors=0”
5.6.1.7 ResetCommStatistics
ResetCommStatistics();
Resets the statistics provided in the GetCommStatistics call.
5.6.1.8 GetAutoRspQ
GetAutoRspQ([out, retval] IAutoRspQ ** ppAutoRspQ);
Returns a reference to AutoRspQ object. This is identical to the AutoRspQ provided in the EtsIf.ocx interface.
5.6.1.9 RawHex
RawHex([in] BOOL TxHex, [in] BOOL RxHex);
Enables or disables logging of Raw Hex information when logging is active.